RE: Problem compiling VC++ module with XS

2005-02-23 Thread thomas . hoffmann
> > Without knowing the specifics, could you do a >#ifdef problem_function >#undef problem_function >#endif > at an appropriate place in the xs file? > > -- > best regards, > randy kobes > Hi Randy, that did it! Thanks a lot Thomas ___

RE: Problem compiling VC++ module with XS

2005-02-22 Thread thomas . hoffmann
Hi Rob, Thanks for the hint. But the option -TP directs vc++ to handle all files as C++. The problems are maros defined in lib\CORE\win32iop.h that redefine standard C function declarations. The same functions (i.e. eof) are declared in some standard classes but with a different signature. The pre

Problem compiling VC++ module with XS

2005-02-21 Thread thomas . hoffmann
Hi List,   I'm trying to compile a C++ XS module with MS VC++ 6.0. Due to defines (redifinition of standard c funktions like eof) in win32iop.h several VC++ standard headers throw errors: cl -c -I. -TP -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-ID:\Perl\lib\CORE" -DWIN3