Re: g++ linking to gcc compiled libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frederich, Eric P21322 writes:
 > Hello guys.
 > I'm hoping you can tell me what I'm doing wrong here.
 > I have a library written in C that I'd like to link to from both c
 > programs and c++ programs.
 > I'm guessing that this is possible.
 > 
 > If I compile both the library and program using g++ it works fine, but
 > then I can't link to the c library from c programs.
 > 
 > Here is the output of me trying to use g++ to link to a c library
 > compiled with gcc.
 > What am I doing wrong?  Or is it even possible to do?

Have you ever heard of

   extern "C"

?

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux