[Gdal-dev] linking error with gdal 1.2.4 dll

Chapman, Martin MChapman at sanz.com
Mon Nov 15 22:50:07 EST 2004


Chad,

You need to link to gdal_i.lib.  Then place the gdal12.dll some where in
your path or in the same directory as your exe.  Let me know if that was
the problem.

Martin

-----Original Message-----
From: Chad Berkley [mailto:berkley at nceas.ucsb.edu] 
Sent: Monday, November 15, 2004 6:59 PM
To: gdal-dev at xserve.flids.com
Subject: [Gdal-dev] linking error with gdal 1.2.4 dll


Hello,

I'm trying to link code against the gdal12.dll file that is built with 
nmake.  I am getting a linking error from MSVC++6.0 that says: 
c:\GDALBuild\bin\gdal12.dll: fatal error LNK1136: invalid or corrupt 
file.  Error executing link.exe.

I have tried building the dll cleanly several times and I can't figure 
out why VC++6.0 (nmake) builds the dll without error but then won't 
allow me to link against it.  I have tried this with 1.2.4 and 1.2.3 
with the same result.  Has anyone seen this error or know how to fix it?

Thanks in advance for any help.

Chad Berkley
National Center for Ecological Analysis and Synthesis
berkley at nceas.ucsb.edu _______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev



More information about the Gdal-dev mailing list