This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: Mixing C/C++ code


I'm a CS student working on a project that mixes C/C++ compiling both with
g++. If you have the time I was hoping you could help. I've described the
problem with some depth here:

http://forums.devshed.com/c-programming-42/calling-c-function-from-c-492886.
html

Also, I'm a bit unclear on how the: extern "C" / extern "C++" notation
works. If I am using g++ to compile both my C and C++ code...when and which
of these should I use? Also, I read somewhere that I shouldn't use these
externs if I'm on a solaris machine, is that right?

Thank you for your time.

Robert Wong





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]