curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: static link on Ubuntu

From: Mike via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 26 Aug 2020 14:11:47 +0200

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_at_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
Received on 2020-08-26