R: [Mapserver-users] Compiling mapserver with gdal
mschulz at webgis.de
Wed Mar 31 09:21:29 EST 2004
i succeeded compiling mapserver-4.0.1 with the /MD switch and following
OPTFLAGS = /MD /Zi /nologo $(WARNING_LEVEL)
BASE_CFLAGS = $(OPTFLAGS) -DWIN32 -D_WIN32
LDFLAGS = /NODEFAULTLIB:libc winmm.lib
I had(?) to add the winmm.lib because of an unresolved symbol
timeGetTime used in libcurl (in the libcurl vc-project this lib is also
added as an extra lib), after that everything worked. I could as well
To your question: I haven't changed anything in the makefile or
nmake.opt besides the switch. Are you using proj4 stuff in gdal directly
(i didn't)? If so, how did you compile that?
Ballini Yvain schrieb:
> What is strange is that I get your unresolved symbol but precisly if I try to compile gdal-1.2.0 in /MT and with NODEFAULTLIB: libcmt:
> Creating library gdal_i.lib and object gdal_i.exp
> ogr.lib(ogrct.obj) : error LNK2019: unresolved external symbol __HUGE referenced in function "public: virtual int __thiscall OGRProj4CT::TransformEx(int,double *,double *,double *,int *)" (?TransformEx at OGRProj4CT@@UAEHHPAN00PAH at Z)
> gdal12.dll : fatal error LNK1120: 1 unresolved externals
> I get this error with the following options in the makefile of gdal-1.2.0:
> OPTFLAGS= /nologo /Ox /MT $(WARNING_LEVEL) $(DEBUG)
> LINKER_FLAGS = /NODEFAULTLIB:libcmt /DEBUG
> How did you compile gdal-1.2.0 in /MT, have you changed something else in the source, or have you set other options?
> -----Messaggio originale-----
> Da: Michael Schulz [mailto:mschulz at webgis.de]
> Inviato: mercoledì 31 marzo 2004 9.35
> A: Ballini Yvain
> Cc: mapserver-users at lists.gis.umn.edu
> Oggetto: Re: [Mapserver-users] Compiling mapserver with gdal
> i am also at the moment trying to compile mapserver-4.0.1 with VC7 and current versions of gd (2.0.21), gdal (1.2.0) ...
> I changed all support libraries to compile with the /MT switch and succeeded in building gdal with that option. But building mapserver didn't work, there were some unresolved external symbols, e.g. __HUGE.
> Now i am starting over with the /MD flag.
> Could someone give some advice which compiler flag should be used or is "better" suited for the needs of mapserver on windows? And could someone confirm that it is necessary to have all libs compiled with the same flags?
> Thanks, Michael
> Ballini Yvain schrieb:
>>I'm looking for a version of gdal which can be compiled with the
>>static multithread option (switch /MT in the makefile.vc).
>>Indeed, I've compiled mapserver 4.0 (with VC7 on XP) like this, and
>>the current version I've downloaded for gdal (gdal-1.2.0) seems not to
>>be compilable with the compiler options that I still have used for
>>compiling mapserver and other utilities:
>>OPTFLAGS= /nologo /Ox /MT $(WARNING_LEVEL) $(DEBUG)
>>LDFLAGS = /NODEFAULTLIB:libc /DEBUG
>>Has someone any idea or any gdal source version which is still
>>compilable with these options...?
>>Thanks a lot.
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
> Michael Schulz in medias res
> Dipl.-Geologe Gesellschaft für
> Informationstechnologie mbH
> In den Weihermatten 66
> 79108 Freiburg
> 0761 55695-95 (Fax 96)
> mschulz at webgis.de www.webgis.de/www.zopecms.de
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft für
In den Weihermatten 66
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de/www.zopecms.de
More information about the mapserver-users