"Sverker Nilsson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) > has failed to compile its extension modules with a Microsoft .NET 2003 > compiler under Windows 2000. > > [To the person who informed me about this in an email per 27 Nov: > Thanks for your message. > I couldn't reply to you because your email address bounced my > mail.] > > One of the problems, seems to be string constants in the C source that > contain newlines. I am using GCC on Linux so, I missed this with the > standard warning options. Compiling with -pedantic reveals 'a lot' of > places where this is a problem. > > I could fix this but it takes some work and it makes the source code > less readable so I was wondering ... > > Is this a common problem? Or maybe it is just the compiler version > mentioned that doesn't handle it? > > Does someone know of some switch to enable the Microsoft compiler to > accept strings with newlines? > > If so, the setup could perhaps be made to pass this switch to the > compiler when building under Windows. > > Or else,.. > > somebody knows about a script to convert the files to the format the > Microsoft compiler wants? I guess the build compilation could then be > setup to pipe them through this or otherwise convert the files as > needed. > > Otherwise, I guess I'll just have to hand-hack around this problem, > write a conversion script, or whatever. I will see. > > Sorry for any inconvenience so far. > > Regards, > > Sverker Nilsson > > PS. I know it's not ANSI-correct but why do we have to work to make > our source codes less clear? >
Thank you for posting to comp.lang.python . Beside the problem with the multiline strings in sets.c I was getting also: src\sets\sets.c(70) : error C2099: initializer is not a constant src\sets\sets.c(71) : error C2099: initializer is not a constant src\sets\sets.c(71) : warning C4028: formal parameter 1 different from declaration src\sets\sets.c(72) : error C2099: initializer is not a constant src\sets\sets.c(72) : warning C4047: 'initializing' : 'PyTypeObject *' differs in levels of indirection from 'int (__cdecl *)(PyObject *)' src\sets\sets.c(72) : warning C4028: formal parameter 1 different from declaration error: command 'E:\VisualC++NET2003\Vc7\bin\cl.exe' failed with exit status 2 Anyone here who succeeded to compile and use this module with Python 2.4.2 on Windows 2000/XP? Please share your experience. Claudio -- http://mail.python.org/mailman/listinfo/python-list