Re: Compiling Guppy-PE extension modules




"Sverker Nilsson" <sverker.is@xxxxxxx> schrieb im Newsbeitrag
news:1133294011.245923.218130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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




.



Relevant Pages

  • Re: hmm..interesting
    ... you've got a discussion of ARM vs Intel architecture here: ... And ARM is rapidly running away from RISC. ... mainstream (many netbooks and smartphones run Linux instead of Windows ... And hardly any C compiler does. ...
    (comp.sys.acorn.hardware)
  • Re: Stalin ported to Windows.
    ... Therefore, the compiler ... Stalin from Scheme sources; it took six hours to generate the C ...   Junia and Reane  got a working Windows port from the C ...
    (comp.lang.scheme)
  • Re: hmm..interesting
    ... work out at more power per Watt than x86. ... mainstream (many netbooks and smartphones run Linux instead of Windows ... the fact that Visual Studio allows you to get away with fairly sloppy ... difficult to find a C compiler that *doesn't* have vendor-specific ...
    (comp.sys.acorn.hardware)
  • Re: C++ programming migration from DOS to Windows
    ... compiler, so the current compiler is quite competitive WRT to ... There are a couple of ports of gcc to Windows. ... Comeau is more or less unique: the best language conformance you can ... IDEs: Microsoft and Borland have both produced decent IDEs in the past, ...
    (comp.lang.cpp)
  • Re: a problem porting an application from linux to windows, oh the agony -- please help?
    ... > I'm working on porting a monstrosity written in Python, C, an Fortran ... This really looks like a question for a Windows programming group ... MinGW C compiler, but you don't say whose C runtime you're linking ... Microsoft C compiler products ...
    (comp.programming)