Strange behavior when linking with gcc

Alexandre Oliva
Tue Sep 5 08:14:00 GMT 2000

On Sep  5, 2000, "Marcos Lyra" <> 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
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Gcc-help mailing list