[Gdal-dev] Re: how to insert all the GDAL code into one VC project
Frank Warmerdam
warmerdam at pobox.com
Thu Dec 30 10:00:56 EST 2004
swandream wrote:
> I can build the GDAL source code with nmake command from the DOS command line
> prompt under Windows platform, but when using it, I can't debug or trace into
> the gdal12.dll, because I can not insert all the GDAL source code as another
> dll project into my own project, I wonder whether all the GDAL source code can
> be added into one workspace and form a dll project in the VC++ environment,
> please help me. thanks.
Swan Dream,
I don't know if I responded to this already privately. But the answer is that
I am not making any effort to maintain a project file for GDAL. You could
prepare one yourself, but I think it would be a significant effort since the
source is spread over so many directories, and since there are files in some
directories which must not be compiled in (test mainlines for instance).
What I would suggest is that you rebuild using the NMAKE files, but with
debug enabled (comment out the default OPTFLAGS and uncomment the one with
/Zi). The build will then produce a gdal.pdb. If you put that whereever
you put the gdal12.dll you should find you have debug info available in
visual studio. You may need to point the debugger to the source files if it
doesn't know where they are.
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