curl-library
Re: Link error in Sun5.6, why should gcc lib must needed?
Date: Thu, 16 Dec 2004 10:00:32 -0800
On Thu, Dec 16, 2004 at 06:13:32PM +0800, hzhijun wrote:
> one more question, I can choose CC as complier, but why CC can't compile the curl source file?
Isn't CC a C++ compiler? That makes the following error make more sense:
> Below is the part of make information:
>
> CC -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/home/hezy/FREE_LIB/ssl/include/openssl -I/home/hezy/FREE_LIB/ssl/inclu
> de -g -c file.c -o file.o
> "urldata.h", line 875: Error: Identifier expected instead of "private".
> "urldata.h", line 875: Error: Identifier expected instead of "private".
There is a struct member called 'private' in there. That's a C++ reserved
word and is probably what's causing this problem. That member should
really be renamed.
> "urldata.h", line 875: Error: Use ";" to terminate declarations.
> "urldata.h", line 875: Error: Use ";" to terminate declarations.
> "urldata.h", line 875: Error: No ":" found following "private".
> "urldata.h", line 875: Error: "}" expected instead of ";".
> "urldata.h", line 928: Error: A declaration was expected instead of "}".
> "file.c", line 159: Error: upload is not a member of UserDefined.
> "file.c", line 294: Error: upload is not a member of UserDefined.
> "file.c", line 310: Error: include_header is not a member of UserDefined.
> 10 Error(s) detected.
> make[2]: *** [file.lo] Error 1
> make[2]: Leaving directory `/home/hzj/curl-7.12.2/lib'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/hzj/curl-7.12.2/lib'
> make: *** [all-recursive] Error 1
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2004-12-16