cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: installation problem on solaris

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Apr 2002 14:03:17 +0200 (MET DST)

On Fri, 12 Apr 2002, Vishal_garg wrote:

> The first steps goes through successfully,but when I run 'make' it gives
> many error and warnings.Some of the error messages are following:

> cc -DHAVE_CONFIG_H -I. -I../../lib -I.. -I../src -I../../include -g -c
> ../../lib/file.c -KPIC -DPIC ucbcc: Warning: Option
> -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/us
> r/lib passed to ld, if ld is invoked, ignored otherwise
> "../../include/curl/curl.h", line 190: invalid token: ##

This error happens because the header file uses the ## operator, which it
turns out your compiler doesn't support.

Jonatan Lander gratiously fixed this particular problem just recently, and
this should work better in the 7.9.6 pre-releases. I'd advice you to try the
latest.

If not, you can patch your include/curl/curl.h file with Jonatan's patch:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/curl/curl/include/curl/curl.h.diff?r1=1.132&r2=1.133&diff_format=u

Good luck!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-12