Static linking libs?

Linux specific forum
Motu
Enthusiast
Enthusiast
Posts: 160
Joined: Tue Oct 19, 2004 12:24 pm

Static linking libs?

Post by Motu »

Hi Guys and Girls :)

I have a server Apllication that is compiled under Ubuntu and has to run on a debian/GNU Server - that's no problem so far as Ubuntu is a debian distribution.

Anyway, when linking in dynamic libarys (in my case libmysqlclient.so.15) it comes to a problem.

Most debian/GNU Servers are 64 Bit system - also they don't have any problems executing pb files, the dynamic link in of the shared object does not work because mySQL Servers in 64 Bit system are 64 bit so and not 32 bit.

Know the question: can I link an .so file static to the executable instead of the common dynamic typ?
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

You can't link a .so static, as that is like .dll in the windowsworld..

But you might try your luck with either libmysqlclient.a or libmysqlclient_r.a, (those are the static libs *.a).

Just don't ask me how to do it. :roll:
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

May be via Import or ImportC like Windows ?
Post Reply