ch3ll0v3k / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

pybox2d not installing in Python 2.7.3 #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using Windows 7 32-bit and using the SVN repository for the build.

I build using MINGW32 as described in the "Source Section". It build fines with 
gcc but when it gets to building with g++, i get the following :

c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: 
build\temp                                                                      
       .win32-2.7\Release\box2d\box2d_wrap.o: bad reloc address 0x48 in section 
`.data'
collect2.exe: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1

Please tell me what can be the cause for this problem?? am i missing something??

Original issue reported on code.google.com by 08beeuah...@seecs.edu.pk on 16 Jan 2013 at 5:28

GoogleCodeExporter commented 8 years ago
I can't say I've seen that error before. Can you perhaps try an older version 
of mingw?  (maybe 4.6.2-1) Failing that, visual studio express will definitely 
work. Please let me know what you find out.

Original comment by sir...@gmail.com on 2 Feb 2013 at 7:22

GoogleCodeExporter commented 8 years ago
I have a similar problem, but in my case I cannot build with gcc:

    (...)
    build\temp.win-amd64-2.7\Release\pypybox2d\src\vec2module.o:vec2module.c:(.text+0x4be5): undefined reference to `_imp__PySequence_Size'
    (...)
    build\temp.win-amd64-2.7\Release\pypybox2d\src\vec2module.o:vec2module.c:(.text+0x4ce3): undefined reference to `_imp__PyErr_SetString'
    c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\pypybox2d\src\vec2module.o: bad reloc address 0x0 in section `.data'
    collect2.exe: error: ld returned 1 exit status
    error: command 'C:\\MinGW\\bin\\gcc.exe' failed with exit status 1

Original comment by m.herrae...@gmail.com on 23 Apr 2015 at 11:04