[Gdal-dev] about VRTDataset

Frank Warmerdam warmerdam at pobox.com
Fri Oct 31 10:17:11 EST 2003


Fu Chen wrote:
> Frank,
> 
> Yeah, it is the trouble of different generate mode. This is the first time I face this problem in my life. Does
> Microsoft have any idea to bypass this trap? I formerly believe using dll would cooperate between different generate
> mode. Now it is a mistake. I hope you can note this in the document of GDAL. Somebody using VC will face the same
> problem, I think.

Fu Chen,

Well, by default I think Visual Studio now builds applications with the runtime
library, avoiding this issue.  In the NMAKE files I still default to not using
the C runtime library but it can be easily enough controlled once you are aware
of the issues.

I will add a note in the "building GDAL for windows" document to address this
issue.

> BTW, do you know how to debug the gdal11.dll in VC IDE? Up to now, I use CPLDebug to do my work. It seems waste the
> ability of IDE. But I really don't know how to debug a dll outside of workspace built by command line nmake. Thank!!

As long as gdal11.dll was built with debugging turned on, and a .pdb file
produced you should be able to debug right into GDAL.  I do that all the time.
Of course, there may be issues with relation Visual Studio finding the .pdb
file.  If you copy gdal11.dll somewhere else to use in your project, I
would suggest copying gdal11.pdb to the same location.

While I to have used printf/CPLDebug style debugging in many environments, it
is an immense help to be able to debug in a proper interactive environment.

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