[Pyrex] visual studio c/cpp problem

horace horace3d at gmail.com
Thu May 28 07:28:11 CEST 2009


hello,

i try to wrap a c library.

when trying to compile with setup.py, the visual studio compiler always
gives me hundreds of those error messages: "error C2059: syntax error :
'string'"

i did some experiments with a manually created visual studio project and
figured out that compiling works if i rename the generated .c file to .cpp.
i guess the pure c compiling mode of visual studio is a bit touchy about the
files of the library i want to wrap?

is there a way (some setup.py setting?) to cause pyrex/cython to create .cpp
files instead of .c files? or can the c++ mode of visual studio be forced
somehow?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20090528/9848485a/attachment.html 


More information about the Pyrex mailing list