| Subject: | Re: Shared Library in C,C++,PRO *C |
|---|---|
| From: | "chets" |
| Date: | 24 Jul 2006 23:13:34 -0700 |
| Newsgroups: | gnu.gcc.help |
Can we provide any compiler option which doesn't allow g++ compiler mangling of symbol names. Bye Thanks Paul Pluzhnikov wrote: > "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> |
|---|---|---|
| ||
| Previous by Date: | strange warnings, asdf |
|---|---|
| Next by Date: | Re: strange warnings, Michael Mair |
| Previous by Thread: | Re: Shared Library in C,C++,PRO *C, Paul Pluzhnikov |
| Next by Thread: | Re: Shared Library in C,C++,PRO *C, Paul Pluzhnikov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |