Advertisement

statically link curl on Ubuntu

Started by August 25, 2020 01:28 PM
11 comments, last by MikeCyber 4 years, 3 months ago

Alberth said:

SuperVGA said:
Am I missing something? -l is most definitely used when linking: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options​

lowecrase ell yes, the OP however uses uppercase I which his for finding include files. The font is broken here, see the image I took after copy/pasting some text to my computer.

Nice catch! Alright, I guess that's what we get for not having serifs to make things easier ?
(or using code blocks when posting)

got it finally working except freetype which is no problem as I'll have users install this with synaptic.

Building target: lin.xpl

Invoking: GCC C++ Linker

g++ -L/home/michael/eclipse-workspace/curl-7.72.0/lib/.libs/libcurl.a -L/home/michael/eclipse-workspace/glew-2.1.0/lib/libGLEW.a -L/usr/lib/x86_64-linux-gnu/libfreetype.a -Wl,--whole-archive /home/michael/eclipse-workspace/curl-7.72.0/lib/.libs/libcurl.a /home/michael/eclipse-workspace/glew-2.1.0/lib/libGLEW.a -DCURL_STATICLIB -DGLEW_STATIC -Wl,--no-whole-archive,-Bdynamic -shared -o "lin.xpl" ./BitmapSupport.o ./fontmgr.o ./image.o ./main.o ./myList.o ./rain.o ./shader.o -lGL -lfreetype

Finished building target: lin.xpl

This topic is closed to new replies.

Advertisement