error LNK2001: gdal.lib

classic Classic list List threaded Threaded
4 messages Options
Nelson A. Cysneros Nelson A. Cysneros
Reply | Threaded
Open this post in threaded view
|

error LNK2001: gdal.lib

Is anyone else having linking problems with gdal?  

I'm having problems building the debug version of osgEarth, something to do with the gdal.lib.  I built the Release version on the first try.  

I'm using gdal v1.6.1 and successfully built a much older version of osgEarth with it (before 1.0).  But can't build the latest trunck.  

I'm using VS2008 SP1 and OSG 2.8.1

Any suggestion would be appreciated.

The Error MSG I get is:

Creating library C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\trunck\lib\Debug\osgEarthd.lib and object C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\trunck\lib\Debug\osgEarthd.exp

2>gdal.lib(pcrasterutil.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: void __thiscall std::vector<struct GDALColorEntry,class std::allocator<struct GDALColorEntry> >::clear(void)" (?clear@?$vector@UGDALColorEntry@@V?$allocator@UGDALColorEntry@@@std@@@std@@QAEXXZ)
2>gdal.lib(pcrasterrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dec_jpeg2000.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtderivedrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtrawrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtfilters.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtsources.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtwarped.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtsourcedrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcrasterdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcidsktiledrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalproxydataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalproxypool.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(intergraphband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ingrtypes.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rmflzw.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ilwiscoordinatesystem.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_rat.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterize.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(usgsdem_create.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rawdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hfa_overviews.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil_gzip.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsi_mem.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil_win32.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(geotiff.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtdriver.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(overview.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gt_overview.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sar_ceosdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hfadataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rpftocdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(nitfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(elasdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gff_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jaxapalsardataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ceosdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dteddataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sdtsdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(aaigriddataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(aigdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jdemdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(memdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jpgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pngdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(bsbdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(envisatdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(biggifdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gifdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(airsardataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dimapdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(bmpdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(xpmdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ilwisdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcrastermisc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcidskdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rs2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(terragendataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(levellerdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(srtmhgtdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sgidataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ersdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pdsdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(isis2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(isis3dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rmfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gribdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fitdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(l1bdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gsagdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(intergraphdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(idrisiDataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(msgndataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(tsxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cosar_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gs7bgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gsbgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(doq2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(doq1dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pnmdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(coasp_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pauxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(genbindataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ehdrdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(envidataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gscdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fujibasdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hkvdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(mffdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(landataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(btdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fastdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dipxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(eirdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ndfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(idadataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gxfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(usgsdemdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rikdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(lcpdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalgeoloc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_rpc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(blxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(adrgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalopeninfo.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamproxydb.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalmultidomainmetadata.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldefaultoverviews.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_misc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalnodatavaluesmaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldriver.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldrivermanager.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaltransformer.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rasterio.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalallvalidmaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalnodatamaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalmajorobject.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterblock.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalcolortable.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\head\lib\Debug\osgEarthd.dll : fatal error LNK1120: 1 unresolved externals
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: error LNK2001: gdal.lib

Hi Nelson,

Where did you get the version of GDAL you are linking against?  I just did a full rebuild in Debug against GDAL 1.6 and it worked fine.

Thanks,

Jason

On Thu, Jul 16, 2009 at 8:07 PM, Nelson A. Cysneros (via Nabble) <[hidden email]> wrote:
Is anyone else having linking problems with gdal?  

I'm having problems building the debug version of osgEarth, something to do with the gdal.lib.  I built the Release version on the first try.  

I'm using gdal v1.6.1 and successfully built a much older version of osgEarth with it (before 1.0).  But can't build the latest trunck.  

I'm using VS2008 SP1 and OSG 2.8.1

Any suggestion would be appreciated.

The Error MSG I get is:

Creating library C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\trunck\lib\Debug\osgEarthd.lib and object C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\trunck\lib\Debug\osgEarthd.exp

2>gdal.lib(pcrasterutil.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: void __thiscall std::vector<struct GDALColorEntry,class std::allocator<struct GDALColorEntry> >::clear(void)" (?clear@?$vector@UGDALColorEntry@@V?$allocator@UGDALColorEntry@@@std@@@std@@QAEXXZ)
2>gdal.lib(pcrasterrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dec_jpeg2000.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtderivedrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtrawrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtfilters.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtsources.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtwarped.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtsourcedrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcrasterdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcidsktiledrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalproxydataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalproxypool.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(intergraphband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ingrtypes.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rmflzw.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ilwiscoordinatesystem.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_rat.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterize.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(usgsdem_create.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rawdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hfa_overviews.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil_gzip.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsi_mem.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil_win32.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(geotiff.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(vrtdriver.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(overview.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gt_overview.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sar_ceosdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hfadataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rpftocdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(nitfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(elasdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gff_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jaxapalsardataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ceosdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dteddataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sdtsdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(aaigriddataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(aigdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jdemdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(memdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(jpgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pngdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(bsbdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(envisatdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(biggifdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gifdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(airsardataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dimapdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(bmpdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(xpmdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ilwisdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcrastermisc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pcidskdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rs2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(terragendataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(levellerdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(srtmhgtdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(sgidataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ersdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pdsdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(isis2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(isis3dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rmfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gribdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fitdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(l1bdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gsagdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(intergraphdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(idrisiDataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(msgndataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(tsxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cosar_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gs7bgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gsbgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(doq2dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(doq1dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pnmdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(coasp_dataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(pauxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(genbindataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ehdrdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(envidataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gscdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fujibasdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(hkvdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(mffdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(landataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(btdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(fastdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(dipxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(eirdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(ndfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(idadataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gxfdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(usgsdemdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rikdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(lcpdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalgeoloc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_rpc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(blxdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(adrgdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalopeninfo.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamdataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalpamproxydb.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalmultidomainmetadata.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldefaultoverviews.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdal_misc.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(cpl_vsil.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalnodatavaluesmaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldriver.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldrivermanager.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaltransformer.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(rasterio.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalallvalidmaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalnodatamaskband.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalmajorobject.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdaldataset.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalrasterblock.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>gdal.lib(gdalcolortable.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo
2>C:\Documents and Settings\cysneros\My Documents\dev\osgEarth\head\lib\Debug\osgEarthd.dll : fatal error LNK1120: 1 unresolved externals


View message @ http://n2.nabble.com/error-LNK2001%3A--gdal.lib-tp3269758p3269758.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


Nelson A. Cysneros Nelson A. Cysneros
Reply | Threaded
Open this post in threaded view
|

Re: error LNK2001: gdal.lib

Thanks Jason for taking a look at it.

I finally got both version to compile.   The problem was in how I built the gdal libraries.

For the record:

1) Edited the gdal  nmake.opt file compilation flags section

From:
------------------------------

# Compilation flags
!IFNDEF OPTFLAGS
!IF $(MSVC_VER) >= 1400
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MD /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ELSE
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MD /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ENDIF  #MSVC_VER
!ENDIF  # OPTFLAGS

To This:
----------------------------------------------------------
# Compilation flags
!IFNDEF OPTFLAGS
!IF $(MSVC_VER) >= 1400
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MDd /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ELSE
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MDd /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ENDIF  #MSVC_VER
!ENDIF  # OPTFLAGS

2)Edit the nmake-wince.opt File OPTFLAGS section

From this:
--------------------------------------------------------------------------
# Uncomment the first for an optimized build or the second for a debug build.
#OPTFLAGS= /MD /GX /Ox /nologo
OPTFLAGS = /W3 /GR /GX /Zi /Od /nologo /D "DEBUG"

To this:
----------------------------------------------------------------------------
# Uncomment the first for an optimized build or the second for a debug build.
#OPTFLAGS= /MD /GX /Ox /nologo
OPTFLAGS = /MDd /W3 /GR /GX /Zi /Od /nologo /D "DEBUG"

and uncomment depending on the build you want.







jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: error LNK2001: gdal.lib

Hi Nelson,

Great to hear you got it working!

Thanks,

Jason

On Mon, Jul 20, 2009 at 1:21 PM, Nelson A. Cysneros (via Nabble) <[hidden email]> wrote:
Thanks Jason for taking a look at it.

I finally got both version to compile.   The problem was in how I built the gdal libraries.

For the record:

1) Edited the gdal  nmake.opt file compilation flags section

From:
------------------------------

# Compilation flags
!IFNDEF OPTFLAGS
!IF $(MSVC_VER) >= 1400
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MD /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ELSE
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MD /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ENDIF  #MSVC_VER
!ENDIF  # OPTFLAGS

To This:
----------------------------------------------------------
# Compilation flags
!IFNDEF OPTFLAGS
!IF $(MSVC_VER) >= 1400
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MDd /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ELSE
!IFNDEF DEBUG
OPTFLAGS= /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG
!ELSE
OPTFLAGS= /nologo /MDd /EHsc /GR /Zi /W4 /Fd$(GDAL_ROOT)\gdal$(VERSION).pdb
!ENDIF
!ENDIF  #MSVC_VER
!ENDIF  # OPTFLAGS

2)Edit the nmake-wince.opt File OPTFLAGS section

From this:
--------------------------------------------------------------------------
# Uncomment the first for an optimized build or the second for a debug build.
#OPTFLAGS= /MD /GX /Ox /nologo
OPTFLAGS = /W3 /GR /GX /Zi /Od /nologo /D "DEBUG"

To this:
----------------------------------------------------------------------------
# Uncomment the first for an optimized build or the second for a debug build.
#OPTFLAGS= /MD /GX /Ox /nologo
OPTFLAGS = /MDd /W3 /GR /GX /Zi /Od /nologo /D "DEBUG"

and uncomment depending on the build you want.










View message @ http://n2.nabble.com/error-LNK2001%3A--gdal.lib-tp3269758p3290298.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.