Strange behavior when linking with gcc

Alexandre Oliva aoliva@redhat.com
Tue Sep 5 08:14:00 GMT 2000


On Sep  5, 2000, "Marcos Lyra" <mlyra@netune.com.br> wrote:

> If I use the option -x c the links works well. My question is: How can I
> link in C++ style a library that was made/built in C style?

Declare the C functions with `extern "C"'

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list