gnu.gcc.help
[Top] [All Lists]

Re: Shared Library in C,C++,PRO *C

Subject: Re: Shared Library in C,C++,PRO *C
From: Paul Pluzhnikov
Date: Mon, 24 Jul 2006 09:23:44 -0700
Newsgroups: gnu.gcc.help
"chets" <gautamchetana1982@xxxxxxxxx> writes:

...
> ./ EXECUTE: undefined symbol: fun
>
> Moreover I am taking care of  all the C linkage while compiling by
> putting them as extern "C".

I would estimate a 99.99% chance that you are *not* taking care of
C linkage correctly.

Just do 'nm -A EXECUTE abc.so' | grep fun
and you'll see that EXECUTE wants a C-linkage 'fun'; but abc.so
exports C++ linkage 'fun__Fi' or some such.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy