linux/4.3/../../../../x86_64-suse-linux/bin/ld:
cannot find -lcurl
collect2: ld returned 1 exit status
Error in compiling and linking file EUROLTST.c
Curl is installed on the system:
uschizlifa4004:/app/csw/jobs> rpm -qa | grep curl
curl-7.19.7-1.51.1
libcurl4-7.19.7-1.51.1
And libcurl.so exists
uschizl
$filename `
cat $CSW_HOME/jobs/proc32.cmp` -lcurl -lcsigen -lcsigen2 -lcsidbo -lcsiunx
-lcsiingr -lingeurol -lingpri
nt -lsockunx -limo2000 -lingfrght -lingfedx -lingesms
Which gives:
Compiling and Linking EUROLTST.c SUSE 11. . .
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/l
/ld.exe:
cannot find -lcurl
collect2.exe: error: ld returned 1 exit status
Any help would be be greatly appreciated :)
---
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
/mingw32/4.7.0/../../../../mingw32/bin/ld.exe:
cannot find -lcurl
The '-L' option (ld search-path) is supposed to contain a directory
(not a file). IMHO it's better to explicitly tell the linker what lib to use;
gcc -o live live.c -DCURL_STATICLIB -I/usr/local/include /usr/local/lib/libcurl.a
program which uses libcurl with Mingw
using
Msys. Here is my command and the output given:
Chris@Chris-HP ~
$ gcc -L/usr/local/lib/libcurl.a -o live live.c -DCURL_STATICLIB
-I/usr/local/include -lcurl
c:/mingw/bin/../lib/gcc/**mingw32/4.7.0/../../../../**mingw32/bin/ld.exe:
cannot find
Chris Ch charc...@gmail.com wrote:
Chris@Chris-HP ~
$ gcc -o live live.c -DCURL_STATICLIB -I/usr/local/include
/usr/local/lib/libcu
From your prompt, I thought you were not on Win32. How come
you have /usr/local/lib on MingW? Sure you don't use MSys?
In any case use:
gcc -o live live.c
Oh yes, sorry I am using msys. I have tried that too, but when I do I get
the __imp__ errors even though we are using the -DCURL_LIBSTATIC flag.
This is really frustrating! Here is the MSYS output:
$ gcc -o live live.c -DCURL_STATICLIB -I/usr/local/include \
/usr/local/lib/libcurl.a -lws2_32
I found the solution on a codeblocks help site, the command: $ gcc -o live
live.c -DCURL_STATICLIB -I/usr/local/include -L/usr/local/lib -lcurl
-lws2_32 -lwinmm works like a charm! Thanks for all your help Gisle!
Chris
On Tue, Jul 31, 2012 at 8:54 AM, Chris Ch charc...@gmail.com wrote:
Oh yes,
Just so everyone know, I compiled curl again with disabling all the
optional libraries(ssh, ssl, etc) and tried Gisle's command. It worked
perfectly and is statically linked! Thank you Gisle!
On Tue, Jul 31, 2012 at 9:05 AM, Chris Ch charc...@gmail.com wrote:
Oh nevermind, that causes a
I think this problem maybe the tool I used to cross compile . So I
changed to use gcc to compile the rtsp.c ,but another trouble frustrated me.
rtsp.c: In function ‘rtsp_options’:
rtsp.c:75: error: ‘CURLOPT_RTSP_STREAM_URI’ undeclared (first use in
this function)
rtsp.c:75: error: (Each
On Fri, Dec 30, 2011 at 04:03:11PM +0800, Gabriel wrote:
I think this problem maybe the tool I used to cross compile . So I
changed to use gcc to compile the rtsp.c ,but another trouble frustrated me.
rtsp.c: In function ¡®rtsp_options¡¯:
rtsp.c:75: error: ¡®CURLOPT_RTSP_STREAM_URI¡¯
Hi
When I have already download the latest curl(7.23.1), and tried to
compile the rtsp.c . There was an error: cannot find -lcurl.
But in the makefile the path of libs is : LIBS = -L/usr/local/curl/lib
-lcurl and in this path there are libcurl.a , libcurl.so , libcurl.so.4
, libcurl.so.4.2.0 . So
12 matches
Mail list logo