Bessiere Julien wrote:
Hi, i'm trying to install shapelib in the process to installMapServer but... I have this message:[EMAIL PROTECTED] shapelib-1.2.10]# makecc -g -c shpopen.c cc -g shpcreate.c shpopen.o -o shpcreate shpcreate.c: In function ‘main’: shpcreate.c:68: attention : incompatible implicit declaration of built-in function ‘exit’ shpcreate.c:85: attention : incompatible implicit declaration of built-in function ‘exit’ shpcreate.c:96: attention : incompatible implicit declaration of built-in function ‘exit’ cc -g shpadd.c shpopen.o -o shpadd cc -g shpdump.c shpopen.o -o shpdump shpdump.c: In function ‘main’: shpdump.c:93: attention : incompatible implicit declaration of built-in function ‘exit’ shpdump.c:104: attention : incompatible implicit declaration of built-in function ‘exit’ shpdump.c:198: attention : incompatible implicit declaration of built-in function ‘exit’ cc -g shprewind.c shpopen.o -o shprewind shprewind.c: In function ‘main’: shprewind.c:61: attention : incompatible implicit declaration of built-in function ‘exit’ shprewind.c:72: attention : incompatible implicit declaration of built-in function ‘exit’ shprewind.c:85: attention : incompatible implicit declaration of built-in function ‘exit’ shprewind.c:108: attention : incompatible implicit declaration of built-in function ‘exit’ cc -g -c dbfopen.c cc -g dbfcreate.c dbfopen.o -o dbfcreate cc -g dbfadd.c dbfopen.o -o dbfadd cc -g dbfdump.c dbfopen.o -o dbfdump cc -g shptest.c shpopen.o -o shptestAs said in the INSTALL file, i have to set CFLAGS and CC.But i don't know what to write. For the moment it's : CFLAGS = -g I'm on fedora core 5.
Julien, First, shapelib is not used by MapServer. MapServer has a morphed version of the shapelib code included internally. So perhaps you don't need shapelib. Second, it seems all the "Attemption" messages are advisory. Certainly it looks like stuff such as shptest linked successfully. CFLAGS=-g should be fine unless you need optimization in which case you could use CFLAGS=-O2 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org
