FW: Mixing C/C++ code

Robert Wong rgwong@cs.ucla.edu
Fri Nov 30 10:50:00 GMT 2007


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






More information about the Gcc-help mailing list