Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3631 closed task (invalid)

Undefined GDAL references on compile

Reported by: firani41 Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: 1.7.1
Severity: normal Keywords:
Cc:

Description

I'm attempting to compile and link an example from: http://www.gdal.org/gdal_tutorial.html using g++ test.cpp >& fmistderr Strange: Compiler seems to recognize GDALDataset but not GDALAllRegister or GDALOpen (see attached files.)

Anyway, I am a very new user: Managed to build and install GDAL, but now trying to incorporate I/O into existing C and C++ code.

Is there something very basic that I'm missing here?

Attachments (2)

fmistderr (212 bytes) - added by firani41 10 years ago.
test.cpp (210 bytes) - added by firani41 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by firani41

Attachment: fmistderr added

Changed 10 years ago by firani41

Attachment: test.cpp added

comment:1 Changed 10 years ago by firani41

Version: unspecified1.7.1

comment:2 Changed 10 years ago by Even Rouault

Resolution: invalid
Status: newclosed

Please do not use Trac for such basic questions about how to use GDAL. They belong to the mailing list.

It seems that you didn't link to the GDAL library. Add -L/path/to/gdal/lib -lgdal to your command line

comment:3 Changed 10 years ago by warmerdam

Component: defaultConfigBuild
Note: See TracTickets for help on using tickets.