Hi
how to link curl and sdl statically?
Building file: ../myList.cpp
Invoking: GCC C++ Compiler
g++ /usr/lib/x86_64-linux-gnu/libcurl.a /usr/lib/x86_64-linux-gnu/libSDL.a -fPIC -fvisibility=hidden -static -DCURL_STATICLIB -DLIN=1 -DLWM=0 -DREF=1 -DXPLM200 -DXPLM210 -DIBM=0 -DAPL=0 -I/usr/include/GL -I/usr/include/SDL -I/home/michael/CPP64/SDK/CHeaders/XPLM -O3 -Wall -c -fmessage-length=0 -pthread -std=c++11 -MMD -MP -MF"myList.d" -MT"myList.o" -o "myList.o" "../myList.cpp"
g++: warning: /usr/lib/x86_64-linux-gnu/libcurl.a: linker input file unused because linking not done
g++: warning: /usr/lib/x86_64-linux-gnu/libSDL.a: linker input file unused because linking not done
Finished building: ../myList.cpp
if I remove the -c I get:
Invoking: GCC C++ Compiler
g++ /usr/lib/x86_64-linux-gnu/libcurl.a /usr/lib/x86_64-linux-gnu/libSDL.a -fPIC -fvisibility=hidden -static -DCURL_STATICLIB -DLIN=1 -DLWM=0 -DREF=1 -DXPLM200 -DXPLM210 -DIBM=0 -DAPL=0 -I/usr/include/GL -I/usr/include/SDL -I/home/michael/CPP64/SDK/CHeaders/XPLM -O3 -Wall -fmessage-length=0 -pthread -std=c++11 -MMD -MP -MF"BitmapSupport.d" -MT"BitmapSupport.o" -o "BitmapSupport.o" "../BitmapSupport.cpp"
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
subdir.mk:24: recipe for target 'BitmapSupport.o' failed
collect2: error: ld returned 1 exit status
make: *** [BitmapSupport.o] Error 1
Many thanks and regards