Re: static link on Ubuntu
On Wed, 26 Aug 2020, Mike via curl-library wrote: if I add -lGL -lGLEW -lfreetype -lcurl Eclipse uses the shared libs not the static. What to do? Thanks This is not a how to use the linker list, but I would probably start out by using -static ... Of course, you then probably also need to specify a whole series of more libs on that command line as well. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
Re: static link on Ubuntu
if I add -lGL -lGLEW -lfreetype -lcurl Eclipse uses the shared libs not the static. What to do? Thanks Am Mi., 26. Aug. 2020 um 08:43 Uhr schrieb Ray Satiro via curl-library < curl-library@cool.haxx.se>: > On 8/25/2020 1:41 PM, Mike via curl-library wrote: > > g++ -L/usr/lib/x86_64-linux-gnu/libfreetype.a > -L/usr/lib/x86_64-linux-gnu/libcurl.a -m64 -static-libgcc -DCURL_STATICLIB > -I/usr/lib/x86_64-linux-gnu/libcurl.a -Wl,--version-script=exports.txt > -shared -o "lin.xpl" ./BitmapSupport.o ./fontmgr.o ./image.o ./main.o > ./myList.o ./rain.o ./shader.o -lGL -lGLEW > > and get the runtime error: > > dlerror:/home/michael/xplane/aircarft/plugin/lin.xpl: undefined symbol: > curl_easy_perform > > > -L is to add to the library search path and -l (lowercase L) is to add > libraries. /usr/lib/x86_64-linux-gnu/ should be searched by default on > Ubuntu. You probably want something like -lGL -lGLEW -lfreetype -lcurl > > > --- > Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library > Etiquette: https://curl.haxx.se/mail/etiquette.html --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
Re: static link on Ubuntu
On 8/25/2020 1:41 PM, Mike via curl-library wrote: g++ -L/usr/lib/x86_64-linux-gnu/libfreetype.a -L/usr/lib/x86_64-linux-gnu/libcurl.a -m64 -static-libgcc -DCURL_STATICLIB -I/usr/lib/x86_64-linux-gnu/libcurl.a -Wl,--version-script=exports.txt -shared -o "lin.xpl" ./BitmapSupport.o ./fontmgr.o ./image.o ./main.o ./myList.o ./rain.o ./shader.o -lGL -lGLEW and get the runtime error: dlerror:/home/michael/xplane/aircarft/plugin/lin.xpl: undefined symbol: curl_easy_perform -L is to add to the library search path and -l (lowercase L) is to add libraries. /usr/lib/x86_64-linux-gnu/ should be searched by default on Ubuntu. You probably want something like -lGL -lGLEW -lfreetype -lcurl --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html