• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Błąd przy Kompilacji TFS 0.3.6

Kamikaz

New Member
Joined
Nov 4, 2010
Messages
112
Reaction score
0
Location
Poland
Witam.
Mam taki błąd przy kompilacji TFS'a, Devlanda sobie odpusciłem, ponieważ nie mogłem znaleść biblioteki Regex.


Oto błąd:
Code:
ASD\Makefile.win [Build Error]  [obj//databasemysql.o] Error 1

A oto log z kompilacji:
Code:
Compiler: MinGW GCC 4.6.2 32-bit
Building Makefile: "ASD\Makefile.win"
Executing  make...
make.exe -f "ASD\Makefile.win" all
g++.exe -c ../databasemysql.cpp -o obj//databasemysql.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__   -fexpensive-optimizations -O3

../databasemysql.cpp: In constructor `DatabaseMySQL::DatabaseMySQL()':
../databasemysql.cpp:44: error: `MYSQL_OPT_READ_TIMEOUT' was not declared in this scope
../databasemysql.cpp:48: error: `MYSQL_OPT_WRITE_TIMEOUT' was not declared in this scope

../databasemysql.cpp: In member function `virtual bool DatabaseMySQL::rollback()':
../databasemysql.cpp:96: error: `mysql_rollback' was not declared in this scope
../databasemysql.cpp: In member function `virtual bool DatabaseMySQL::commit()':
../databasemysql.cpp:110: error: `mysql_commit' was not declared in this scope

make.exe: *** [obj//databasemysql.o] Error 1

Execution terminated

Błąd wywala w linijce 44 oto ona:
Code:
		mysql_options(&m_handle, MYSQL_OPT_READ_TIMEOUT, (const char*)&readTimeout);

Z góry dziękuję i pozdrawiam, Kamikaz
 
../databasemysql.cpp:44: error: `MYSQL_OPT_READ_TIMEOUT' was not declared in this scope
../databasemysql.cpp:48: error: `MYSQL_OPT_WRITE_TIMEOUT' was not declared in this scope

../databasemysql.cpp: In member function `virtual bool DatabaseMySQL::rollback()':
../databasemysql.cpp:96: error: `mysql_rollback' was not declared in this scope
../databasemysql.cpp: In member function `virtual bool DatabaseMySQL::commit()':
../databasemysql.cpp:110: error: `mysql_commit' was not declared in this scope
Pachnie mi tutaj brakiem biblioteki MySQL, ponieważ system nie może znaleźć jej funkcji oraz stałych. Zobacz, czy są one dołączone do pliku cpp, lub czy są w ogóle w twoim kompilatorze.
 
To może to jest za stara wersja - nie wiem jaka jest aktualna, ale te funkcje, które brakuje są do obsługi "transakcji" w bazie MySQL i są one domyślnie w bibliotece.
 
mingw czyli winda
the forgotten dev c++, stians repack też dawał radę, możesz też użyć poradnika na otfans jak w msvc to robić, najwyżej zmienisz nazwę biblioteki lua i powinno działać
 
Odświeżam, skorzystałem z poradnika Baabuseek'a i niestety mam jakiś dziwny błąd.

Oto temat Baabuska z Tibia.tv:

Łatwy Dev C++ - Zrób to sam.

Mianowicie nie wykrywa mi Liba o nazwie:

Code:
-libboost_regex-mgw-mt-s-1_33_1

Ale oczywiście w folderze lib mam ten plik.

Co jest grane ?? Oto log z Kompilacji:

Code:
Compiler: MinGW GCC 4.6.2 32-bit
Building Makefile: "ASDASD\Makefile.win"
Executing  make...
make.exe -f "ASDASD\Makefile.win" all
windres.exe -i DevLand-XML_private.rc --input-format=rc -o DevLand-XML_private.res -O coff 

g++.exe ../account.o ../actions.o ../admin.o ../allocator.o ../ban.o ../baseevents.o ../chat.o ../combat.o ../commands.o ../condition.o ../configmanager.o ../container.o ../creature.o ../cylinder.o ../depot.o ../exception.o ../fileloader.o ../game.o ../house.o ../housetile.o ../ioaccount.o ../ioaccountxml.o ../iomapotbm.o ../iomapserialize.o ../iomapserializexml.o ../iomapxml.o ../ioplayer.o ../ioplayerxml.o ../item.o ../items.o ../logger.o ../luascript.o ../mailbox.o ../map.o ../md5.o ../monster.o ../monsters.o ../movement.o ../networkmessage.o ../npc.o ../otserv.o ../outfit.o ../player.o ../position.o ../raids.o ../rsa.o ../scriptmanager.o ../spawn.o ../spells.o ../status.o ../talkaction.o ../teleport.o ../thing.o ../tile.o ../tools.o ../trashholder.o ../vocation.o ../waitlist.o ../weapons.o ../party.o ../itemloader.o ../pvparena.o ../quests.o ../protocol80.o ../creatureevent.o DevLand-XML_private.res -o "DevLand-XML.exe" -L"lib" -L"C:/Dev-Cpp/others/lua-5.1/lib" -L"C:/Dev-Cpp/others/boost_1_33_1/libregex" -lwsock32 -Wl,-Map=otserv.map -llibboost_regex-mgw-mt-s-1_33_1 C:/Dev-Cpp/bin/libxml2.dll C:/Dev-Cpp/bin/lua5.dll C:/Dev-Cpp/bin/lualib5.dll  

g++.exe: C:/Dev-Cpp/bin/libxml2.dll: No such file or directory

g++.exe: C:/Dev-Cpp/bin/lua5.dll: No such file or directory
g++.exe: C:/Dev-Cpp/bin/lualib5.dll: No such file or directory

make.exe: *** [DevLand-XML.exe] Error 1

Execution terminated

A jak wskaże plik poprzez funkcje "Add Library or Object" to wyskakuje taki log:

Code:
Compiler: MinGW GCC 4.6.2 32-bit
Building Makefile: "ASDASD\Makefile.win"
Executing  make...
make.exe -f "ASDASD\Makefile.win" all
windres.exe -i DevLand-XML_private.rc --input-format=rc -o DevLand-XML_private.res -O coff 

g++.exe ../account.o ../actions.o ../admin.o ../allocator.o ../ban.o ../baseevents.o ../chat.o ../combat.o ../commands.o ../condition.o ../configmanager.o ../container.o ../creature.o ../cylinder.o ../depot.o ../exception.o ../fileloader.o ../game.o ../house.o ../housetile.o ../ioaccount.o ../ioaccountxml.o ../iomapotbm.o ../iomapserialize.o ../iomapserializexml.o ../iomapxml.o ../ioplayer.o ../ioplayerxml.o ../item.o ../items.o ../logger.o ../luascript.o ../mailbox.o ../map.o ../md5.o ../monster.o ../monsters.o ../movement.o ../networkmessage.o ../npc.o ../otserv.o ../outfit.o ../player.o ../position.o ../raids.o ../rsa.o ../scriptmanager.o ../spawn.o ../spells.o ../status.o ../talkaction.o ../teleport.o ../thing.o ../tile.o ../tools.o ../trashholder.o ../vocation.o ../waitlist.o ../weapons.o ../party.o ../itemloader.o ../pvparena.o ../quests.o ../protocol80.o ../creatureevent.o DevLand-XML_private.res -o "DevLand-XML.exe" -L"lib" -L"C:/Dev-Cpp/others/lua-5.1/lib" -L"C:/Dev-Cpp/others/boost_1_33_1/libregex" -lwsock32 -Wl,-Map=otserv.map D:/Programy/Dev-Cpp-Baabusek/bin/libxml2.dll D:/Programy/Dev-Cpp-Baabusek/bin/lua5.dll D:/Programy/Dev-Cpp-Baabusek/bin/lualib5.dll ../../../../Programy/Dev-Cpp-Baabusek/lib/libboost_regex-mgw-mt-s-1_33_1.lib  

../ioplayerxml.o:ioplayerxml.cpp:(.bss+0x0): multiple definition of `_xmlmutex'
../game.o:game.cpp:(.bss+0xc): first defined here
../ban.o:ban.cpp:(.text+0x2753): undefined reference to `_Database::instance()'
../ban.o:ban.cpp:(.text+0x2764): undefined reference to `DBQuery::DBQuery()'
../ban.o:ban.cpp:(.text+0x277c): undefined reference to `DBResult::DBResult()'
../ban.o:ban.cpp:(.text+0x2791): undefined reference to `DatabaseMySQL::connect()'
../ban.o:ban.cpp:(.text+0x27ad): undefined reference to `DBResult::~DBResult()'
../ban.o:ban.cpp:(.text+0x27c5): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x2816): undefined reference to `DatabaseMySQL::storeQuery(DBQuery&, DBResult&)'
../ban.o:ban.cpp:(.text+0x2832): undefined reference to `DBResult::~DBResult()'
../ban.o:ban.cpp:(.text+0x284a): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x28f3): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x29e4): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x2aeb): undefined reference to `DBResult::getDataString(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x2c2d): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x2d1e): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x2ec2): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'

../ban.o:ban.cpp:(.text+0x305c): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
../ban.o:ban.cpp:(.text+0x3310): undefined reference to `DBResult::~DBResult()'
../ban.o:ban.cpp:(.text+0x3328): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x3358): undefined reference to `DBResult::~DBResult()'
../ban.o:ban.cpp:(.text+0x3388): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x341b): undefined reference to `_Database::instance()'
../ban.o:ban.cpp:(.text+0x342c): undefined reference to `DBQuery::DBQuery()'
../ban.o:ban.cpp:(.text+0x3441): undefined reference to `DatabaseMySQL::connect()'
../ban.o:ban.cpp:(.text+0x345d): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x348b): undefined reference to `DBTransaction::DBTransaction(DatabaseMySQL*)'
../ban.o:ban.cpp:(.text+0x34a3): undefined reference to `DBTransaction::start()'
../ban.o:ban.cpp:(.text+0x34bf): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x34d7): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x351e): undefined reference to `DatabaseMySQL::executeQuery(DBQuery&)'
../ban.o:ban.cpp:(.text+0x353a): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x3552): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x35c9): undefined reference to `DBSplitInsert::DBSplitInsert(DatabaseMySQL*)'
../ban.o:ban.cpp:(.text+0x3623): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
../ban.o:ban.cpp:(.text+0x382a): undefined reference to `DBSplitInsert::addRow(std::string const&)'
../ban.o:ban.cpp:(.text+0x38a2): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x38d2): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x38ea): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x3a1c): undefined reference to `DBSplitInsert::executeQuery()'
../ban.o:ban.cpp:(.text+0x3a38): undefined reference to `DBSplitInsert::~DBSplitInsert()'

../ban.o:ban.cpp:(.text+0x3a68): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x3a80): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x3af0): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
../ban.o:ban.cpp:(.text+0x3cc2): undefined reference to `DBSplitInsert::addRow(std::string const&)'
../ban.o:ban.cpp:(.text+0x3d3a): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x3d6a): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x3d82): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x3eb4): undefined reference to `DBSplitInsert::executeQuery()'
../ban.o:ban.cpp:(.text+0x3ed0): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x3f00): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x3f18): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x3f88): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
../ban.o:ban.cpp:(.text+0x415a): undefined reference to `DBSplitInsert::addRow(std::string const&)'
../ban.o:ban.cpp:(.text+0x41d2): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x4202): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x421a): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x4454): undefined reference to `DBSplitInsert::executeQuery()'
../ban.o:ban.cpp:(.text+0x4470): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x44a0): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x44b8): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x44df): undefined reference to `DBTransaction::success()'
../ban.o:ban.cpp:(.text+0x4500): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x4530): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x4548): undefined reference to `DBQuery::~DBQuery()'
../ban.o:ban.cpp:(.text+0x457d): undefined reference to `DBSplitInsert::~DBSplitInsert()'
../ban.o:ban.cpp:(.text+0x45dd): undefined reference to `DBTransaction::~DBTransaction()'
../ban.o:ban.cpp:(.text+0x460d): undefined reference to `DBQuery::~DBQuery()'
../configmanager.o:configmanager.cpp:(.text+0x29b): undefined reference to `_luaL_newstate'
../configmanager.o:configmanager.cpp:(.text+0x82ab): undefined reference to `_lua_getfield'
../configmanager.o:configmanager.cpp:(.text+0x82f3): undefined reference to `_lua_objlen'
../configmanager.o:configmanager.cpp:(.text+0x8329): undefined reference to `_lua_tolstring'
../configmanager.o:configmanager.cpp:(.text+0x8466): undefined reference to `_lua_getfield'
../configmanager.o:configmanager.cpp:(.text+0x852f): undefined reference to `_lua_getfield'
../configmanager.o:configmanager.cpp:(.text+0x85b5): undefined reference to `_lua_tolstring'
../ioaccount.o:ioaccount.cpp:(.text+0x162): undefined reference to `IOAccountSQL::IOAccountSQL()'
../iomapserialize.o:iomapserialize.cpp:(.text+0x162): undefined reference to `IOMapSerializeSQL::IOMapSerializeSQL()'
../ioplayer.o:ioplayer.cpp:(.text+0x162): undefined reference to `IOPlayerSQL::IOPlayerSQL()'
../luascript.o:luascript.cpp:(.text+0x23ab): undefined reference to `_lua_getfield'
../luascript.o:luascript.cpp:(.text+0x2414): undefined reference to `_lua_getfield'
../luascript.o:luascript.cpp:(.text+0x24e5): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x2ae0): undefined reference to `_lua_getfield'
../luascript.o:luascript.cpp:(.text+0x2bb6): undefined reference to `_luaL_newstate'
../luascript.o:luascript.cpp:(.text+0x2be6): undefined reference to `_luaL_openlibs'
../luascript.o:luascript.cpp:(.text+0x2d1a): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x2d38): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x33c7): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x34a7): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x370b): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x37a1): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x3b62): undefined reference to `_lua_tolstring'

../luascript.o:luascript.cpp:(.text+0x3caa): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x3ce6): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x3d22): undefined reference to `_lua_setfield'

../luascript.o:luascript.cpp:(.text+0x3d5e): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x3d9a): undefined reference to `_lua_setfield'
../luascript.o:luascript.cpp:(.text+0x3dd6): more undefined references to `_lua_setfield' follow
../luascript.o:luascript.cpp:(.text+0x80f5): undefined reference to `_lua_createtable'
../luascript.o:luascript.cpp:(.text+0x17040): undefined reference to `_lua_createtable'
../npc.o:npc.cpp:(.text+0x35fb): undefined reference to `_lua_setfield'
../npc.o:npc.cpp:(.text+0x3637): undefined reference to `_lua_setfield'
../npc.o:npc.cpp:(.text+0x3673): undefined reference to `_lua_setfield'
../npc.o:npc.cpp:(.text+0x36af): undefined reference to `_lua_setfield'
../npc.o:npc.cpp:(.text+0x36eb): undefined reference to `_lua_setfield'
../npc.o:npc.cpp:(.text+0x3727): more undefined references to `_lua_setfield' follow

../npc.o:npc.cpp:(.text+0x59c2): undefined reference to `_lua_tolstring'
../rsa.o:rsa.cpp:(.text+0x12f): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x145): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x15b): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x171): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x187): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x19d): more undefined references to `___gmpz_init2' follow
../rsa.o:rsa.cpp:(.text+0x284): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x292): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x2a0): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x2ae): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x2bc): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x2ca): more undefined references to `___gmpz_clear' follow
../rsa.o:rsa.cpp:(.text+0x48a): undefined reference to `___gmpz_set_str'
../rsa.o:rsa.cpp:(.text+0x4a7): undefined reference to `___gmpz_set_str'
../rsa.o:rsa.cpp:(.text+0x4c4): undefined reference to `___gmpz_set_str'
../rsa.o:rsa.cpp:(.text+0x4d7): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x4ea): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x507): undefined reference to `___gmpz_sub_ui'
../rsa.o:rsa.cpp:(.text+0x524): undefined reference to `___gmpz_sub_ui'
../rsa.o:rsa.cpp:(.text+0x546): undefined reference to `___gmpz_invert'
../rsa.o:rsa.cpp:(.text+0x565): undefined reference to `___gmpz_mod'
../rsa.o:rsa.cpp:(.text+0x584): undefined reference to `___gmpz_mod'
../rsa.o:rsa.cpp:(.text+0x5a6): undefined reference to `___gmpz_mul'
../rsa.o:rsa.cpp:(.text+0x5b1): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x5bc): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x6ac): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x6bf): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x6d2): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x6e5): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x6f8): undefined reference to `___gmpz_init2'
../rsa.o:rsa.cpp:(.text+0x732): undefined reference to `___gmpz_import'

../rsa.o:rsa.cpp:(.text+0x74e): undefined reference to `___gmpz_mod'
../rsa.o:rsa.cpp:(.text+0x774): undefined reference to `___gmpz_powm'
../rsa.o:rsa.cpp:(.text+0x790): undefined reference to `___gmpz_mod'
../rsa.o:rsa.cpp:(.text+0x7b6): undefined reference to `___gmpz_powm'
../rsa.o:rsa.cpp:(.text+0x7cf): undefined reference to `___gmpz_sub'

../rsa.o:rsa.cpp:(.text+0x7eb): undefined reference to `___gmpz_mul'
../rsa.o:rsa.cpp:(.text+0x807): undefined reference to `___gmpz_mod'
../rsa.o:rsa.cpp:(.text+0x829): undefined reference to `___gmpz_add'
../rsa.o:rsa.cpp:(.text+0x83b): undefined reference to `___gmpz_set'
../rsa.o:rsa.cpp:(.text+0x861): undefined reference to `___gmpz_mul'
../rsa.o:rsa.cpp:(.text+0x874): undefined reference to `___gmpz_set_ui'

../rsa.o:rsa.cpp:(.text+0x88d): undefined reference to `___gmpz_add'
../rsa.o:rsa.cpp:(.text+0x8a0): undefined reference to `___gmpz_sizeinbase'
../rsa.o:rsa.cpp:(.text+0x90a): undefined reference to `___gmpz_export'
../rsa.o:rsa.cpp:(.text+0x915): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x920): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x92b): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x936): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x941): undefined reference to `___gmpz_clear'
../rsa.o:rsa.cpp:(.text+0x9f2): undefined reference to `___gmpz_sizeinbase'
../rsa.o:rsa.cpp:(.text+0xa28): undefined reference to `___gmpz_sizeinbase'
../rsa.o:rsa.cpp:(.text+0xa95): undefined reference to `___gmpz_export'

make.exe: *** [DevLand-XML.exe] Error 1

Execution terminated
 
Polecam linuxa, bo na nim nie ma żadnych problemów z bibliotekami.
Albo poszukaj sobie jakiegoś porządnego dev-cpp.
 
Co ma związanego zmiana OS'a z bibliotekami ?
Ma na linuxie nie ma problemy z znajdowaniem bibliotek, a jak widać właściciel tematu ma z tym problem. A takie coś w najłatwiejszy sposób rozwiązuje go. Przecież wiadomo, że żeby ściągnąć jakąś paczuszkę wystarczy wpisać apt-get install package, a na Windowsie: google, nie ma w googlach - to kompilacja itd.
 
Ma na linuxie nie ma problemy z znajdowaniem bibliotek, a jak widać właściciel tematu ma z tym problem. A takie coś w najłatwiejszy sposób rozwiązuje go. Przecież wiadomo, że żeby ściągnąć jakąś paczuszkę wystarczy wpisać apt-get install package, a na Windowsie: google, nie ma w googlach - to kompilacja itd.

Debugger dev'a woła o pomstę do nieba, nigdy nie wiadomo czy mówi prawdę czy nie, autor ma problem z IDE a nie z libami imo.
 
Jeżeli polecacie Linux, to prosiłbym o jakiś rozsądny i łatwy do ogarnięcia Poradnik o tibi na linuxie. Z Linuxem bedzie to moj 1 raz :D
 
Na Windzie dev-cpp, bo najłatwiej - na linuxie najlepiej nie instalować żadnego IDE (choć nie wiem czy istnieje pod CLI).
 
Back
Top