<div class="gmail_quote">Hi developer community<br><br>Could you help me??<br><br><br>I am trying to add a new keyword in MapServer (Only for experimental purpose).. but I could not do it. I just want that my keyword is detected (recognized) by the MapServer (mapserv) when I write the keyword in the mapfile (.map) <br>
<br>Until now I have modified the next files: <br><br><ul><li><b>maplexer.l </b>: I added this declaration <INITIAL,URL_VARIABLE>start { return(START); } */ I am using this syntax: flex -Pmsyy -i -omaplexer.c maplexer.l for compiling maplexer.l</li>
</ul><ul><li><b>mapfile.h</b> : I added new keyword and id # Define START 1300 <br></li><li><b>mapfile.c</b>: only I added the new keyword in a SWITCH of loadclass function CASE START: printf ("Keyword is here");break; */<br>
</li></ul><br> After I did MAKE in the command line for compiling these files. And inmediatly these errors appear:<br><br><br>./libmapserver.a(mapfile.o): In function `msUpdateQueryMapFromString':<br>mapfile.c:(.text+0x65af): undefined reference to `msyylex_destroy'<br>
./libmapserver.a(mapfile.o): In function `msUpdateReferenceMapFromString':<br>mapfile.c:(.text+0x69f2): undefined reference to `msyylex_destroy'<br>./libmapserver.a(mapfile.o): In function `msUpdateStyleFromString':<br>
mapfile.c:(.text+0x705f): undefined reference to `msyylex_destroy'<br>./libmapserver.a(mapfile.o): In function `msUpdateScalebarFromString':<br>mapfile.c:(.text+0x7daf): undefined reference to `msyylex_destroy'<br>
./libmapserver.a(mapfile.o): In function `msUpdateLegendFromString':<br>mapfile.c:(.text+0x81d5): undefined reference to `msyylex_destroy'<br>./libmapserver.a(mapfile.o):mapfile.c:(.text+0x8258): more undefined references to `msyylex_destroy' follow<br>
collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1<br><br><br><br><b>My questions are:</b><br><br>Should I modify other files for adding a new keyword? or Should I need to do another thing ( maybe write "special command" or declaration)?<br>
<br><br><b>Additional information</b><br><br>I have installed on my pc<br><br>Mapserver 5.2.1 <br>Flex 2.5.4a.-41 <br>S.O. CentOS 5<br>Bison 2.3.2.1<br><br><br><br>Thank you so much!<br><font color="#888888"><br>Mauricio<br>
</font></div><br>