[Gdal-dev] Link error on Windows XP64
Ivan Lucena
ILucena at clarku.edu
Fri Sep 1 11:10:21 EDT 2006
Hi Anders,
I just compiled GDAL in Windows XP64 using Visual Studio 8 (2005) and it
works pretty well.
1) Did you run "C:\Program Files (x86)\Microsoft Visual Studio
8\VC\vcvarsall.bat" first to get the path and environment variables
settings? I did that, so in fact I am using the 32bit version of
compiler, maybe is that what you need. Check the variables and you can
see the "(x86)" after "Program Files";
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8\VC
VS80COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio
8\Common7\Tools\
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 8
2) Anyway, I not am compiling netCDF for now. It could be it, I don't
know. But you can try to comment it back on nmake.opt and try again.
3) The error that your log shows doesn't give me any clue, maybe someone
else in the list.
4) Another issue is you folder name with spaces. It could get messy...
But there is some workaround to make it work, like using the "~", ex.:
GDAL_HOME = "E:\Progra~1\Gdal-1.3.2"
Good luck and lets us know what works for you Anders,
Ivan Lucena
________________________________
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Anders Moe
Sent: Friday, September 01, 2006 5:15 AM
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] Link error on Windows XP64
Hi all
I'm building gdal 1.3.2 in a win 64XP using MSVC 2005. However, I'm
getting linking errors, given below. Can anyone see whats wrong ? This
is my first time building gdal, and I find it rather difficult to
navigate all the makefiles etc.
Thanks,
Anders
--- - - - - -
C:\Documents and Settings\Anders\My Documents\src\gdal-1.3.2\frmts>cd
netcdf && nmake /NOLOGO /f makefile.vc && cd ..
copy *.obj ..\o
gmtdataset.obj
netcdfdataset.obj
2 file(s) copied.
cd ..
cd vb6
nmake /nologo /f makefile.vc
cd ..
if exist gdal.lib del gdal.lib
lib /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj
frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
vb6\vb6_support.obj
Microsoft (R) Library Manager Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
ogrsf_frmts.lib(parsexsd.obj) : warning LNK4221: no public symbols
found; archive member will be inaccessible
link /dll /debug /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate /INCLUDE:_OPTGetProjectionMethods
/INCLUDE:_OGR_G_GetPointCount /INCLUDE:_OGRRegisterAll
/INCLUDE:_GDALSimpleImageWarp at 36 /INCLUDE:_GDALReprojectImage at 48
/INCLUDE:_GDALComputeMedianCutPCT at 32 /INCLUDE:_GDALDitherRGB2PCT at 28
/INCLUDE:_vbSafeArrayToPtr at 16
/INCLUDE:_OCTNewCoordinateTransformation at 8 port\*.obj gcore\*.obj
alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
vb6\vb6_support.obj odbc32.lib "C:\Documents and
Settings\Anders\My
Documents\src\netcdf-3.6.1\src\win32\NET\x64\debug\netcdf.lib"
gcore\Version.res /out:gdal13.dll /implib:gdal_i.lib
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Creating library gdal_i.lib and object gdal_i.exp
LINK : error LNK2001: unresolved external symbol
_OCTNewCoordinateTransformation at 8
LINK : error LNK2001: unresolved external symbol _vbSafeArrayToPtr at 16
LINK : error LNK2001: unresolved external symbol _GDALDitherRGB2PCT at 28
LINK : error LNK2001: unresolved external symbol
_GDALComputeMedianCutPCT at 32
LINK : error LNK2001: unresolved external symbol _GDALReprojectImage at 48
LINK : error LNK2001: unresolved external symbol _GDALSimpleImageWarp at 36
LINK : error LNK2001: unresolved external symbol _OGRRegisterAll
LINK : error LNK2001: unresolved external symbol _OGR_G_GetPointCount
LINK : error LNK2001: unresolved external symbol
_OPTGetProjectionMethods
LINK : error LNK2001: unresolved external symbol _OSRValidate
LINK : error LNK2001: unresolved external symbol _OGRFeatureStylePuller
gdal13.dll : fatal error LNK1120: 11 unresolved externals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060901/86395d5e/attachment.html
More information about the Gdal-dev
mailing list