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


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



Relevant Pages

  • Re: Cpp Considered Harmful
    ... >> means of doing some of the things the CPP is currently used for. ... > syntax of #include for the language specified libraries. ... believe it would be trickier in C++ than in Java to accomplish what I'm ... there is often a need to compile a class before it can be ...
    (comp.lang.cpp)
  • Re: class wizard / conditional compilation
    ... Of course you need the above line if you want to access types in that ... You will add .cpp files to the project. ... compile the files, you must add these to the project. ... > found error, but when I do add these settings per configuration, it ...
    (microsoft.public.vc.mfc)
  • including c libs in c++ code?
    ... Hi I am trying to compile a cpp ap that runs on the system tray and checks ... or should i write a small lib that checks buffers ... and just use my lib with extern? ...
    (comp.lang.cpp)
  • Re: how i can print the values of argv[] under unix environment.Plz help me
    ... when i compile the cpp filei attached the output below ... cmdargs asd fgh jkl ...
    (comp.lang.c)
  • Re: c++ delete operator parameters
    ... TypeConstructor,' why is it not allowed to deallocate by invoking ... invoke the destructor explicitly and invoke the static delete operator ... but I cannot get it to compile without some error. ... BTW, get rid of the parens; the "delete" keyword is not a function, it is ...
    (microsoft.public.vc.language)