[SOLVED] Problems building Ogre 1.7 on MinGW
Posted: Tue Feb 23, 2010 12:15 pm
Hi there,
while trying to compile Ogre 1.7 with the latest MinGW Dependencies-Package (2010-02-16) i'm encountering the following error while linking the dynamic library:
I believe that the reason for the undefined references in libFreeImage might be solved by linking to WinSock (wsock32 i guess?!). What really
puzzles me is the "<unknown-file>:0: syntax error" right at the beginning of the error messages.
Anyone got more information about that? I'm racking my brains but I'm really not making any progress here...
EDIT: I forgot to state some related specs: I'm running GCC 4.4.1 (TDM-2) on Windows 7.
while trying to compile Ogre 1.7 with the latest MinGW Dependencies-Package (2010-02-16) i'm encountering the following error while linking the dynamic library:
Code: Select all
Linking CXX shared library ..\bin\libOgreMain.dll
Creating library file: ..\lib\libOgreMain.dll.a
h:/devel/cpp/bin/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.1536 ' unrecognized
h:/devel/cpp/bin/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.1541 ' unrecognized
..\..\Dependencies\lib\release\libFreeImage.a(libraw_cxx.o):libraw_cxx.cpp:(.text+0x27c7): undefined reference to `htons@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x346): undefined reference to `ntohs@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x440): undefined reference to `ntohs@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0xd81a): undefined reference to `htonl@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0xdbb1): undefined reference to `ntohs@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0xdc7b): undefined reference to `ntohs@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x26090): undefined reference to `htonl@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x2731b): undefined reference to `htonl@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x275e0): undefined reference to `ntohl@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x27f70): undefined reference to `htons@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x28234): undefined reference to `ntohl@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_common.o):dcraw_common.cpp:(.text+0x28594): undefined reference to `htons@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_fileio.o):dcraw_fileio.cpp:(.text+0x818): undefined reference to `ntohs@4'
..\..\Dependencies\lib\release\libFreeImage.a(dcraw_fileio.o):dcraw_fileio.cpp:(.text+0x8bc): undefined reference to `ntohs@4'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libOgreMain.dll] Error 1
mingw32-make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
mingw32-make: *** [all] Error 2
puzzles me is the "<unknown-file>:0: syntax error" right at the beginning of the error messages.
Anyone got more information about that? I'm racking my brains but I'm really not making any progress here...
EDIT: I forgot to state some related specs: I'm running GCC 4.4.1 (TDM-2) on Windows 7.