Opened 12 years ago

Last modified 12 years ago

#1461 closed defect (fixed)

Error in MS Visual C++ 2005 Express Build Instructions

Reported by: steve2@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:


The FAQ build instructions for MS Visual C++ 2005 Express has an error that prevents GDAL from building.  The "Patch atlbase.h header" section is based on this gdal-dev post:

referencing this solution:

The FAQ is missing the # before all the define statements, and the new macros are missing the re-defined functions.  The below code (from the Yahoo Groups post) is correct and has been tested on a clean install of MS Visual C++ 2005 Express with the latest code from SVN.  The current code in the FAQ does not work and results in a compile error.

/* ***************************************************
PVOID __stdcall __AllocStdCallThunk(VOID);
VOID  __stdcall __FreeStdCallThunk(PVOID);

#define AllocStdCallThunk() __AllocStdCallThunk()
#define FreeStdCallThunk(p) __FreeStdCallThunk(p)

#pragma comment(lib, "atlthunk.lib")
**************************************************** */

#define AllocStdCallThunk() HeapAlloc(GetProcessHeap(),0,sizeof(_stdcallthunk))
#define FreeStdCallThunk(p) HeapFree(GetProcessHeap(), 0, p)

Change History (1)

comment:1 Changed 12 years ago by warmerdam


I have moved some of the contents of doc/faq.dox into a \verbatim environment
instead of using the html <pre> which seems to still let doxygen do some
dangerous pre-processing of the contents.  The problem seems to be resolved

Note: See TracTickets for help on using tickets.