visual studio c/cpp problem
horace <[email protected]> Thu, 28 May 2009 07:28:11 +0200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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? _______________________________________________ Pyrex mailing list [email protected] http://lists.copyleft.no/mailman/listinfo/pyrex