[Proj] problems with windows include

Mateusz Loskot mateusz at loskot.net
Fri Apr 25 10:16:26 EDT 2008


Frank Warmerdam wrote:
> 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.

Frank,

AFAIR, there has been some fixes applied to projects.h with Windows CE 
port. Anyway, I can include projects.h and compile programs with Visual 
C++ 8.0 without any problems. I've just checked this test:

#include <projects.h>
int main()
{
    aacos(1);
    return 0;
}

Greetings
-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the Proj mailing list