Can anyone help me with the compile line(s) to link a c++ object file generated from a .cc to a c main?
Thanks!
Compile each file to an object file (you probably know how to do this), and then, if you have GNU Binutils, try using ld.
-Albatross
I don't have GNU Binutils but I tried:
g++ -g foo.c foo2.cc foo3.cc -lm -o foo
...and I keep getting undefined reference to functions in foo.c that are defined in foo2.cc, specifying C linkage with extern "C".
Any suggestions?
Ah... then we'll need to see your code, sah. :)
-Albatross
P.S.- No GNU Binutils, but you have g++? Weird...