Project

General

Profile

Static Wt Linking

Added by Hard Coder almost 12 years ago

After testing wt for a while now I want to statically link my app to the wt library. I am fed up with various instructions of building wt statically none of which works for me. Is it possible to just link with the existing wt library in /usr/libwt.a etc.... and giving -static as a compiler arguement to g and successfully make a static app?.. I have tried this but a bunch of error message has been popping up.... So far I have tried

g -o main.exe main.cpp -static /usr/lib/libwtfcgi.a /usr/lib/libwt.a /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/libstdc.a /usr/lib/libboost_signals.a /usr/lib/i386-linux-gnu/libz.a /usr/lib/libssl.a /usr/lib/libcrypto.a /usr/lib/libboost_thread.a /usr/lib/libboost_filesystem.a /usr/lib/libboost_date_time.a /usr/lib/i386-linux-gnu/libpthread.a /usr/lib/libboost_regex.a /usr/lib/libboost_system.a /usr/lib/i386-linux-gnu/librt.a /usr/lib/i386-linux-gnu/libdl.a /usr/lib/libicudata.a /usr/lib/libicui18n.a /usr/lib/libicuuc.a /usr/lib/i386-linux-gnu/libm.a /usr/lib/i386-linux-gnu/libc.a

If I cant go this way, please guide me on making my static wt app. I have installed wt from the ubuntu repositories via sudo apt-get install witty witty-dev etc......