[Proj] problems with windows include

Frank Warmerdam warmerdam at pobox.com
Fri Apr 25 09:17:15 EDT 2008


Matthias Schneider wrote:
> Hi all,
> 
> I used the the proj.4 some time ago. Now I want to use it in a VC++ 
> project were I need windows includes like "windows.h" and there is the 
> problem. If I do that, ther are some errors:
> 
> * redeclaration of "PVALUE"
> * different use of "LPWSTR"
> 
> Is there a possibility to use both - windows includes and proj.4 at the 
> same time? Without the windows includes, there are no errors - but I 
> need it :(

Matthias,

The proj_api.h include file should not conflict with windows.h, though it is
known that projects.h can.  So, just include proj_api.h, which is intended
to be the public interface to PROJ.4.

If you really need projects.h for some internal thing ... well good luck.

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    | President OSGeo, http://osgeo.org



More information about the Proj mailing list