Results 1 to 4 of 4
I'm trying to compile & run this test code :
http: //curl.haxx dot se/mail/lib-2010-07/0249.html
It should work but when I do
PHP Code:
gcc test . c - o test . o
...
- 08-03-2010 #1
Out of scope .. random ? [solved]
I'm trying to compile & run this test code :
http: //curl.haxx dot se/mail/lib-2010-07/0249.html
It should work but when I do
I getPHP Code:gcc test.c -o test.o
I can't see why it doesn't work I'm quite new to c/c++ programming. It only happens when calling some functions and not with others ...PHP Code:test.c: In function 'int main(int, char**)':
test.c:39: error: 'CURLOPT_RTSP_STREAM_URI' was not declared in this scope
test.c:42: error: 'CURLOPT_INTERLEAVEFUNCTION' was not declared in this scope
test.c:43: error: 'CURLOPT_INTERLEAVEDATA' was not declared in this scope
test.c:47: error: 'CURLOPT_RTSP_REQUEST' was not declared in this scope
test.c:47: error: 'CURL_RTSPREQ_OPTIONS' was not declared in this scope
test.c:59: error: 'CURLOPT_RTSPHEADER' was not declared in this scope
test.c:60: error: 'CURL_RTSPREQ_DESCRIBE' was not declared in this scope
test.c:73: error: 'CURLOPT_RTSP_TRANSPORT' was not declared in this scope
test.c:74: error: 'CURL_RTSPREQ_SETUP' was not declared in this scope
test.c:86: error: 'CURL_RTSPREQ_PLAY' was not declared in this scope
test.c:109: error: 'CURL_RTSPREQ_TEARDOWN' was not declared in this scope
I guess it is something very simple and basic but I have no clue
Any help is truly appreciated. Thansk in advance
JessicaLast edited by SingleFemaleLawyer; 08-04-2010 at 06:40 AM. Reason: solved :)
- 08-03-2010 #2Just Joined!
- Join Date
- Jul 2010
- Location
- Zagreb, Croatia
- Posts
- 9
hello,
you forget to link it with curl lib
Code:gcc test.c -o test.o -lcurl
- 08-04-2010 #3
Hi, thank you for your reply. I already did that linking and it happens the same thing when I run
that's why I think it is so odd, because even when linking the lib happens thatPHP Code:gcc test.c -o test.o -lcurl
- 08-04-2010 #4
I just found out by chance. The curl version installed was a previous one so the changes introduced in the new version made some of the functions there unavailable because they didn't exist


Reply With Quote