Title: RE: swig help with wtsapi32

Hi Mark,

I have no experience with SWIG but we used Boost.Python to wrap a C++ framework.
And I know C++.

The error looks like it is a problem of your project configuration, i.e. somebody is defining the symbols before WtsApi32.h is processed by the C/C++ preprocessor. Or the header file is included twice.

If you want me to check I would need a copy of your project (preferably offline to [EMAIL PROTECTED])

Peter

> -----Original Message-----
> From: Roach, Mark R. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 27, 2002 12:17 AM
> To: [EMAIL PROTECTED]
> Subject: swig help with wtsapi32
>
>
> I am completely unskilled WRT python extensions, but was hoping that
> someone has either already made a python module for wtsapi32
> or can help
> me in my pitiful attempts to do so.
>
> My hope was to be able to use swig against the header file
> (WtsApi32.h)
> to generate the module, but the errors that pop up don't make a lot of
> sense to me
>
> the error says
> WtsApi32.h:376: Syntax error in input
> WtsApi32.h:737: Syntax error in input             
>
> The strange thing is that the file only has 731 lines. I've
> seen errors
> indicate EOF+1 as location of the error when there is a
> missing brace or
> something, but this just seems odd.
>
> The other strange thing is that, this is the location in the file that
> the error corresponds to:
> ...
> 374: #ifdef UNICODE
> 375: #define WTSEnumerateServers WTSEnumerateServersW
> 376: #else
> 377: #define WTSEnumerateServers WTSEnumerateServersA
> 378: #endif
>
> even weirder, if I completely delete that block from the
> file, the error
> stays.
>
> My apologies if  this is something I should take to the swig list, I'm
> just a little confused here.
>
> Thanks,
>
> Mark Roach
>
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options:
> http://listserv.ActiveState.com/mailman/listinfo/ActivePython
>

Reply via email to