This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multipy-defined function


> lib1.a: fatal error : symbol 'SQLTransact' multiply-defined , also in
> lib2.a.
> 
> I use gcc 2.95.2 on Sco 5.
> 
> Is there any way to pass this error ?

I don't see a simple solution to this. You may succeed linking each of
these libraries into a different shared library. In that case, you'd
need to use the -Bsymbolic linker option, to make sure SQLTransact in
lib1 is really treated independently from SQLTransact in the other
shared library.

It may be simpler to ask one of your suppliers to change the name of
the function, or to provide you with the source code so you can change
it yourself.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]