Re: static link on Ubuntu
Date: Wed, 26 Aug 2020 02:40:56 -0400
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
Received on 2020-08-26