[Mapserver-users] MapServer Windows external symbol problem
Howard Butler
hobu at iastate.edu
Mon Jun 21 13:33:41 PDT 2004
Thanks Brent, that was it. I also had to drop the /debug from the link
line in the MS_LIB target because the compiler would complain about
printchar.obj not having debug info (which I don't understand).
>printchar.obj : fatal error LNK1202: "D:\cvs\mapserver\vc60.pdb" is
>missing debu
>gging information for referencing module
>NMAKE : fatal error U1077: 'link' : return code '0x4b2'
>Stop.
It's kind baffling that the GNU folks write code that depends on the test
code beneath it to work....
Anyway, to those who follow... It's much easier to just use PHP's regex, as
the makefile is already setup for it. If you don't want PHP, add the line
that Brent replied with and turn off all of the debugging switches on the
link line and it should work.
Thanks all for the help.
Howard
At 03:16 PM 6/21/2004, you wrote:
>Howard,
>
>printchar.c can be found in regex-0.12\test
>
>compile it and add to mapserver's nmake.opt (around line 431):
>REGEX_OBJ=$(REGEX_DIR)\regex.obj $(REGEX_DIR)\test\printchar.obj
>
>I don't remember having to do this before, but then I skipped a couple of
>releases...
>
>Brent Fraser
>bfraser at geoanalytic.com
>
>----- Original Message -----
>From: "Howard Butler" <hobu at iastate.edu>
>To: <assefa at dmsolutions.ca>
>Cc: <mapserver-users at lists.gis.umn.edu>
>Sent: Monday, June 21, 2004 1:17 PM
>Subject: [Mapserver-users] MapServer Windows external symbol problem
>
>
> > Assefa,
> >
> > I am trying to compile Windows MapServer, but I am having trouble getting
> > regex to behave when it comes time to link. Apparently, many others have
> > had trouble as well
> >
><http://www.google.com/search?q=regex.obj+:+error+LNK2001:+unresolved+extern
>al+symbol+_printchar&hl=en&lr=&ie=UTF-8&c2coff=1&start=10&sa=N&filter=0>.
> >
> > Here is the link error:
> > regex.obj : error LNK2001: unresolved external symbol _printchar
> >
> > I have tried every permutation of putting that symbol in the header,
>making
> > sure it is extern'ed properly (in both the C file and the header), but I
>am
> > having no luck. I grepped through my VC++ include files and my cygwin
> > include files for that function prototype (printchar), but I cannot find
>it
> > anywhere.
> >
> > If you have any ideas of other things I might try, I'd greatly appreciate
>it.
> >
> > Thanks
> >
> > Howard
> >
> > --------------------------------------------------------
> > Howard Butler
> > Department of Statistics
> > Center for Survey Statistics and Methodology
> > Iowa State University
> > 212 Snedecor Hall
> > Ames, IA 50011
> > --------------------------------------------------------
> > http://hobu.biz
> > --------------------------------------------------------
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list