"Marcelo Gosling" <[EMAIL PROTECTED]> wrote:
>
>Hi, everyone.
>
>This is on WinXP SP2, with Python 2.4.3 and DJGPP gcc 4.1.0.
>
>I'm having trouble including Python.h in a C file. The following C
>code:
>
>#include "Python.h"
>
>int main()
>{
> return 0;
>}
>
>when compiled with "gcc -I..\Python2.4\include\", gives more than 1000
>lines of errors, beginning with:
>
>c:/documents and settings/marcelo.gosling/my
>documents/djgpp/bin/as.exe: BFD 2.16.1 assertion fail
>../../bfd/coff-i386.c:576
>c:/documents and settings/marcelo.gosling/my
>documents/djgpp/tmp/ccACtxBR.s: Assembler messages:
>c:/documents and settings/marcelo.gosling/my
>documents/djgpp/tmp/ccACtxBR.s:28: Error: cannot represent relocation
>type BFD_RELOC_386_PLT32
>In file included from ../../Python2.4/include/Python.h:74,
> from example_wrap.c:112:
>../../Python2.4/include/pymem.h: In function '__declspec':
>../../Python2.4/include/pymem.h:51: error: expected declaration
>specifiers before '__declspec'
>../../Python2.4/include/pymem.h:52: error: expected declaration
>specifiers before '__declspec'
__declspec is a Microsoft extension. Are you trying to build the Visual
C++ source with gcc?
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list