How to invoke to other applications from 'c' files and compile shared library from .cpp files?
From: Boaz (boazter_at_hotmail.com)
Date: 12/17/04
- Next message: Friedhelm Neyer: "Re: Number of nfsd"
- Previous message: jizwang_at_yahoo.com: "fsck and ESS flashcopy, oracle 9i"
- Next in thread: Paul Pluzhnikov: "Re: How to invoke to other applications from 'c' files and compile shared library from .cpp files?"
- Reply: Paul Pluzhnikov: "Re: How to invoke to other applications from 'c' files and compile shared library from .cpp files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Dec 2004 09:01:42 -0800
Hi All,
I'm writing some applications upon AIX 5.1 and Power_604, using 'cc'
compiler.
I have some questions:
1)I'm writing an application in C.
How can i invoke other application from my own code?
(In windows you can include 'windows.h' and then perform 'WinExec')
2)Does the application i want to invoke from my code, can use memory
areas i allocated in my code?
3)When compiling .cpp code, does it better to compile it using gcc, or
to compile it using cc (and rename the .cpp files to .C files)?
4)When i built a shared library from .c source files, it was easy, and
i was able to link to this shared library methods straight from .s
files using: .exterm .my_function{PR}.
Now, when i'm trying to build the shared library from .cpp files, the
latter linkage doesn't work, because it looks like the symbol table
names of the .cpp methods, are different then their names in the .cpp
source files. So maybe the process of creation shared object from .cpp
files is different than doing it out of .c files?
Thanks a lot for your help
Boaz
- Next message: Friedhelm Neyer: "Re: Number of nfsd"
- Previous message: jizwang_at_yahoo.com: "fsck and ESS flashcopy, oracle 9i"
- Next in thread: Paul Pluzhnikov: "Re: How to invoke to other applications from 'c' files and compile shared library from .cpp files?"
- Reply: Paul Pluzhnikov: "Re: How to invoke to other applications from 'c' files and compile shared library from .cpp files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|