LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2008, 07:53 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Rep: Reputation: 32
Can I call or execute objects files from C code???


Hello

I am newbie, so I do not if my question is stupid or not.

Well I have general task (main) and several other task.
Now I compile and linker to obtain a unique bin file.

Now I am interesting in create a several objects, and main process call other extern objects to execute it.

Can I do it??

Best regards
John
 
Old 07-09-2008, 08:24 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I'm not sure what you mean, but you can always link to object files as long as you have the headers:

gcc fileA.o fileB.c -o test

If you mean a 'plugin', that is an extensive subject covered in books. You can also look at existing code such as FireFox or the GIMP. (I don't know of any simple code that uses plugins.)
 
Old 07-09-2008, 08:39 AM   #3
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by pinniped View Post
I'm not sure what you mean, but you can always link to object files as long as you have the headers:

gcc fileA.o fileB.c -o test

If you mean a 'plugin', that is an extensive subject covered in books. You can also look at existing code such as FireFox or the GIMP. (I don't know of any simple code that uses plugins.)
Hi pinniped,

The first option is that I use now.

And now I am looking for some idea to lunch other objects like "plugins".
Well, it is a good idea.

I have supposed that .o file can call or execute for other process.

Thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute my own Kernel Call in Minix jianelisj Programming 1 04-05-2008 03:39 PM
In perl is there a way when i call exit function to execute a subroutine alix123 Programming 3 06-01-2007 05:38 AM
C++: intereferencing header files and Objects eantoranz Programming 9 12-20-2006 09:01 AM
How to see of which objects files is particular shared library made of? halturata Programming 4 04-12-2006 01:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration