This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: multipy-defined function
- To: vuqpham at hcmc dot netnam dot vn
- Subject: Re: multipy-defined function
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 1 Jan 2000 16:42:09 +0100
- CC: gcc at gcc dot gnu dot org
- References: <001d01bf542d$d56e7270$3803a8c0@athome.com>
> 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