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.

static link on Ubuntu

From: Mike via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 25 Aug 2020 19:41:21 +0200

Hi

I do:

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

Many thanks for help

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-08-25