[gdal-dev] problems with compilation in vs2012

Darrel Maddy darrel.maddy at newcastle.ac.uk
Tue Aug 27 06:51:06 PDT 2013


Hi all,

I'm not entirely sure what I can do next.

We use gdal to input and output grids from our Landscape Evolution Model. Everything is working fine under linux but we are trying to develop cross-platform.

I downloaded the gdal-1.10.0 zip and altered the #win64 element of the options file and compiled using nmake -f makefile.vc MSCV_VER=1700 after running the vcvarsall.bat for amd64 . The library looks fine.

I have all the project properties setup to see the source directories (includes : default, plus gcore and port) and the linker is shown the way to the gdal.lib file.  Despite knowing where the library is I am getting the following linker errors

1>     Creating library E:\vs2012 projects\iwaveVS\x64\Release\iwaveVS.lib and object E:\vs2012 projects\iwaveVS\x64\Release\iwaveVS.exp
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_closesocket
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_connect
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_recv
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_send
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_socket
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_WSAStartup
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_WSACleanup
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_getaddrinfo
1>gdal.lib(gdalclientserver.obj) : error LNK2001: unresolved external symbol __imp_freeaddrinfo
1>E:\vs2012 projects\iwaveVS\x64\Release\iwaveVS.exe : fatal error LNK1120: 9 unresolved externals
1>
1>Build FAILED.

I have done this many times against earlier gdal libraries using VS2010 and not had this problem ( note I did however, in desperation compile against VER=1600 and set the toolset in VS2012 to 2010 but that had the same issue).

What am I missing?

Apologies if this is a stupid question.

Darrel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130827/de8d30ab/attachment.html>


More information about the gdal-dev mailing list