This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Strange behavior when linking with gcc
- To: "Marcos Lyra" <mlyra at netune dot com dot br>
- Subject: Re: Strange behavior when linking with gcc
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Sep 2000 12:14:20 -0300
- Cc: <gcc-help at gcc dot gnu dot org>, <gsoueidy at saphirnet dot com>, <Christopher dot Broms at netgiro dot com>, "Dominique Moayedpour" <dom at netgiro dot fr>
- Organization: GCC Team, Red Hat
- References: <00e701c01748$4eb5df00$b606dbc8@marcos>
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