Hi Franbck,

I have the same issue on my machine. Just comment out the line 
'(GeomPlate',[],[])' in the script Modules.py and pythonOCC should compile. 
This bug only occurs on Windows.

Thomas

>I should probably add that a large part of the library builds fine, and 
>the error occurs with OCC._GeomPlate. Here is a full dump of the output:
>
>...
>building 'OCC._GeomPlate' extension
>swigging C:\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate.i to 
>C:\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate_wrap.cpp
>C:\Dev\swigwin-1.3.39\swig.exe -python -O -c++ -DWNT -w302,314,509,512 
>-Wall -DCSFDB -DWIN32 -D_WINDOWS -outdir C:\Dev\pythonocc\src\OCC -o 
>C:\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate_wrap.cpp 
>C:\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate.i
>C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c 
>/nologo /Ox /MD /W3 /GX /DNDEBUG -DWNT -DWIN32 -D_WINDOWS -DCSFDB 
>-IC:\OCC\OpenCASCADE6.3.0\ros\inc -IC:\python25\include -IC:\python25\PC 
>/TpC:\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate_wrap.cpp 
>/Fobuild\temp.win32-2.5\Release\Dev\pythonocc\src\SWIG_src_modular_win32\GeomPlate_wrap.obj
> 
>/link
>GeomPlate_wrap.cpp
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(286) : error C2143: syntax error : 
>missing ';' before '*'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(286) : error C2501: 'PCHAR' : 
>missing storage-class or type specifiers
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(330) : error C2143: syntax error : 
>missing ';' before '*'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(330) : error C2501: 'PSHORT' : 
>missing storage-class or type specifiers
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(331) : error C2143: syntax error : 
>missing ';' before '*'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(331) : error C2501: 'PLONG' : 
>missing storage-class or type specifiers
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(8232) : error C2146: syntax error : 
>missing ';' before identifier 'ThunkName'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(8232) : error C2501: 
>'_RTL_VERIFIER_THUNK_DESCRIPTOR::PCHAR' : missing storage-class or type 
>specifiers
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(8232) : error C2501: 
>'_RTL_VERIFIER_THUNK_DESCRIPTOR::ThunkName' : missing storage-class or 
>type specifiers
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinNT.h(8383) : error C2061: syntax error : 
>identifier 'PCHAR'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinBase.h(3283) : error C2061: syntax error 
>: identifier 'PLONG'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinReg.h(531) : error C2061: syntax error : 
>identifier 'PLONG'
>C:\Program Files\Microsoft Visual Studio .NET 
>2003\Vc7\PlatformSDK\Include\WinReg.h(540) : error C2061: syntax error : 
>identifier 'PLONG'

Thanks,
Frank



Frank Conradie wrote:
> I'm trying to compile pythonocc from SVN with VS.NET 2003 SP1, and get a 
> few errors in WinNT.h, starting with this:
>
> C:\Program Files\Microsoft Visual Studio .NET 
> 2003\Vc7\PlatformSDK\Include\WinNT.h(286) : error C2143: syntax error : 
> missing ';' before '*'
> C:\Program Files\Microsoft Visual Studio .NET 
> 2003\Vc7\PlatformSDK\Include\WinNT.h(286) : error C2501: 'PCHAR' : 
> missing storage-class or type specifiers
> ...
>
> The line in WinNT.h looks like this:
>
>     typedef CHAR *PCHAR;
>
> So it looks like CHAR is not defined? I'm running Vista, if that makes 
> any difference.
>
> Just wondering if anybody knows from experience what causes this and how 
> to fix it (before I start Googling away ;-)
>
> Thanks,
> Frank Conradie
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>   

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to