Silentfood
10-31-2012, 06:59 AM
Hi, so I've loaded up the projects in Code::Blocks and compiled the iniparser with Cygwin's "make". I'm running on a Windows machine, and my current output when I compile vaultmp itself is this huge block.
Compiling: iniparser\src\dictionary.c
cc1.exe: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C [enabled by default]
Compiling: iniparser\src\iniparser.c
cc1.exe: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C [enabled by default]
Compiling: vaultmp.cpp
Compiling: vaultmp.rc
Linking executable: vaultmp.exe
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `.objs\Release\vaultmp.res' is incompatible with i386 output
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x12ff) : undefined reference to `__Z18iniparser_freedictP12_dictionary_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x20c7) : undefined reference to `__Z14iniparser_loadPKc'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x20e4) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2106) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2128) : undefined reference to `__Z16iniparser_getintP12_dictionary_PKci'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x214a) : undefined reference to `__Z20iniparser_getbooleanP12_dictionary_PKci'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2170) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .objs\Release\vaultmp.o: bad reloc address 0x2 in section `.text$_ZN6RakNet27FileListTransferCBInterfaceD1Ev[__ZN6RakNet27FileListTransferCBInterfaceD1Ev]'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (2 minutes, 54 seconds)
7 errors, 13 warnings
:C
What am I doing so wrong to cause all this.
Thanks.
Compiling: iniparser\src\dictionary.c
cc1.exe: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C [enabled by default]
Compiling: iniparser\src\iniparser.c
cc1.exe: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C [enabled by default]
Compiling: vaultmp.cpp
Compiling: vaultmp.rc
Linking executable: vaultmp.exe
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `.objs\Release\vaultmp.res' is incompatible with i386 output
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x12ff) : undefined reference to `__Z18iniparser_freedictP12_dictionary_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x20c7) : undefined reference to `__Z14iniparser_loadPKc'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x20e4) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2106) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2128) : undefined reference to `__Z16iniparser_getintP12_dictionary_PKci'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x214a) : undefined reference to `__Z20iniparser_getbooleanP12_dictionary_PKci'
.objs\Release\vaultmp.o:vaultmp.cpp:(.text+0x2170) : undefined reference to `__Z19iniparser_getstringP12_dictionary_PKcS2_'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .objs\Release\vaultmp.o: bad reloc address 0x2 in section `.text$_ZN6RakNet27FileListTransferCBInterfaceD1Ev[__ZN6RakNet27FileListTransferCBInterfaceD1Ev]'
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (2 minutes, 54 seconds)
7 errors, 13 warnings
:C
What am I doing so wrong to cause all this.
Thanks.