[Gdal-dev] visual c++

Frank Warmerdam fwarmerdam at gmail.com
Tue Jun 28 10:33:01 EDT 2005


On 6/27/05, Sergio Liminiana Bernat <pfcsergioliminiana at yahoo.es> wrote:
> In my first progamme in visual Studio c++ 6.0 and GDAL
> I have problems when I try to rebuild all. It's a
> simple code, only  for exemple. I build GDAL like
> "Building GDAL From Source" says changing nmake.opt
> file. Can you help me??
> 
> 
> 
> #include <gdal_priv.h>
> 
> int main()
> {
>     GDALDataset  *poDataset;
> 
>     GDALAllRegister();
> 
>      if( poDataset == NULL )
>     {
>        }
>          return 0;
> }
> 
> 
> prueba.obj : error LNK2001: unresolved external symbol
> _GDALAllRegister
> prueba.obj : error LNK2001: unresolved external symbol
> "public: virtual enum CPLErr __thiscall
> GDALMajorObject::SetMetadataItem(char const *,char
> const *,char const *)"

Sergio, 

It looks like you are not linking in gdal_i.lib. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list