• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Compiling error

Evan

A splendid one to behold
Senator
Premium User
Joined
May 6, 2009
Messages
7,018
Solutions
1
Reaction score
1,040
Location
United States
This is my first time compiling, so I'm sorry if its a stupid situation.
I am using Stian's compiler.

Here is the error, it is massive:
View attachment compile_error.txt

PS: I remove some parts of the error due to the fact that the file is heavy.
I was careful on what to remove, however, most of the file all had the same error.

Shit like this, was commonly repeated:
Code:
obj//actions.o:actions.cpp:(.text+0x13d): undefined reference to `__Unwind_Resume'
obj//actions.o:actions.cpp:(.text+0x581): undefined reference to `__Unwind_Resume'
obj//actions.o:actions.cpp:(.text+0xb2c): undefined reference to `__Unwind_Resume'obj//actions.o:actions.cpp:(.text+0xbf6): undefined reference to `__Unwind_Resume'
obj//actions.o:actions.cpp:(.text+0xcb8): more undefined references to `__Unwind_Resume' follow
obj//actions.o:actions.cpp:(.text+0x132f): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//actions.o:actions.cpp:(.text+0x1535): undefined reference to `__Unwind_Resume'
obj//actions.o:actions.cpp:(.text+0x185f): undefined reference to `__Unwind_Resume'
obj//actions.o:actions.cpp:(.text+0x1883): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//actions.o:actions.cpp:(.text+0x18a5): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*,
 
Looks like the compiler doesn't like long paths/paths that contain spaces/special characters.
For optimal chance of success, relocate devcpp to C:\Devcpp and (optionally, if first doesn't do the trick) sources to C:\Devcpp\src
 
Looks like the compiler doesn't like long paths/paths that contain spaces/special characters.
For optimal chance of success, relocate devcpp to C:\Devcpp and (optionally, if first doesn't do the trick) sources to C:\Devcpp\src

He's using Stian's Compiler, never really heard of anyone having path problems with it unless they have the wrong libs.
Not saying that your wrong, because your like God or something lol.
 
He's using Stian's Compiler, never really heard of anyone having path problems with it unless they have the wrong libs.
Not saying that your wrong, because your like God or something lol.
I had such problems myself, and that fixed it.

the only other cause for problems like these is if he has multiple installations of devcpp
(could happen if he used talaturen's devcpp release before, for instance)
 
Looks like the compiler doesn't like long paths/paths that contain spaces/special characters.
For optimal chance of success, relocate devcpp to C:\Devcpp and (optionally, if first doesn't do the trick) sources to C:\Devcpp\src
Wanna add something to this post, it might also be because you have multiple dev-cpp's in your HDD (Dev-cpp should give you a warning when installing...), it does that, because... can't really explain...
 
I had such problems myself, and that fixed it.

the only other cause for problems like these is if he has multiple installations of devcpp
(could happen if he used talaturen's devcpp release before, for instance)

This is a possibility, I have downloaded compilers before, should I be deleting them all?
I will try doing your first suggestion too.

@Sonik, it is Windows 7.
 
Okay, so, Cykotitans idea of putting the sources in the Devcpp folder, where the Devcpp folder is put in the :C\ section.
That worked.

Came across with a few programming errors, rather than linking errors or whatever shit I had before (I think).

Code:
Compiler: Default compiler
Building Makefile: "C:\Stian's Repack Dev-Cpp 0.2, 64bit\trunk.r4556\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Stian's Repack Dev-Cpp 0.2, 64bit\trunk.r4556\dev-cpp\Makefile.win" all
g++.exe -c ../actions.cpp -o obj//actions.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../admin.cpp -o obj//admin.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../allocator.cpp -o obj//allocator.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../baseevents.cpp -o obj//baseevents.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../beds.cpp -o obj//beds.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../chat.cpp -o obj//chat.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../combat.cpp -o obj//combat.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../condition.cpp -o obj//condition.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../configmanager.cpp -o obj//configmanager.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../connection.cpp -o obj//connection.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../container.cpp -o obj//container.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../creature.cpp -o obj//creature.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

../creature.cpp: In member function `virtual void Creature::onGainExperience(double&, Creature*, bool)':
../creature.cpp:1334: warning: passing `double' for converting 1 of `MessageDetails::MessageDetails(int32_t, Color_t)'

../creature.cpp: In member function `virtual void Creature::onGainSharedExperience(double&, Creature*, bool)':

../creature.cpp:1382: warning: passing `double' for converting 1 of `MessageDetails::MessageDetails(int32_t, Color_t)'

g++.exe -c ../creatureevent.cpp -o obj//creatureevent.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../cylinder.cpp -o obj//cylinder.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../database.cpp -o obj//database.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

In file included from ../database.cpp:22:
../databasemysql.h:88:7: warning: no newline at end of file
In file included from ../database.cpp:25:
../databasesqlite.h:85:7: warning: no newline at end of file

g++.exe -c ../databasemanager.cpp -o obj//databasemanager.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../databasemysql.cpp -o obj//databasemysql.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

In file included from ../databasemysql.cpp:24:

../databasemysql.h:88:7: warning: no newline at end of file
../databasemysql.cpp:338:7: warning: no newline at end of file

g++.exe -c ../databasesqlite.cpp -o obj//databasesqlite.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

In file included from ../databasesqlite.cpp:26:
../databasesqlite.h:85:7: warning: no newline at end of file
../databasesqlite.cpp:273:7: warning: no newline at end of file

g++.exe -c ../depot.cpp -o obj//depot.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../dispatcher.cpp -o obj//dispatcher.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../exception.cpp -o obj//exception.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../fileloader.cpp -o obj//fileloader.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../game.cpp -o obj//game.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../gameservers.cpp -o obj//gameservers.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../globalevent.cpp -o obj//globalevent.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../group.cpp -o obj//group.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../house.cpp -o obj//house.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../housetile.cpp -o obj//housetile.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../ioban.cpp -o obj//ioban.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../ioguild.cpp -o obj//ioguild.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../iologindata.cpp -o obj//iologindata.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../iomap.cpp -o obj//iomap.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../iomapserialize.cpp -o obj//iomapserialize.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../item.cpp -o obj//item.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../itemattributes.cpp -o obj//itemattributes.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../items.cpp -o obj//items.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../luascript.cpp -o obj//luascript.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../mailbox.cpp -o obj//mailbox.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../manager.cpp -o obj//manager.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../map.cpp -o obj//map.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../monster.cpp -o obj//monster.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../monsters.cpp -o obj//monsters.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../movement.cpp -o obj//movement.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../networkmessage.cpp -o obj//networkmessage.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../npc.cpp -o obj//npc.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

g++.exe -c ../otserv.cpp -o obj//otserv.o -I"include"  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2   -fexpensive-optimizations -O1

../otserv.cpp:35:25: openssl/rsa.h: No such file or directory
../otserv.cpp:36:24: openssl/bn.h: No such file or directory
../otserv.cpp:37:25: openssl/err.h: No such file or directory
../otserv.cpp:92: error: expected constructor, destructor, or type conversion before '*' token

../otserv.cpp: In function `void otserv(StringVec, ServiceManager*)':
../otserv.cpp:572: error: `g_RSA' was not declared in this scope
../otserv.cpp:572: error: `RSA_new' was not declared in this scope

../otserv.cpp:574: error: `BN_dec2bn' was not declared in this scope
../otserv.cpp:581: error: `RSA_check_key' was not declared in this scope

../otserv.cpp:586: error: `BN_CTX' was not declared in this scope
../otserv.cpp:586: error: `ctx' was not declared in this scope
../otserv.cpp:586: error: `BN_CTX_new' was not declared in this scope
../otserv.cpp:587: error: `BN_CTX_start' was not declared in this scope
../otserv.cpp:589: error: `BIGNUM' was not declared in this scope
../otserv.cpp:589: error: `r1' was not declared in this scope
../otserv.cpp:589: error: `BN_CTX_get' was not declared in this scope
../otserv.cpp:589: error: `r2' was not declared in this scope
../otserv.cpp:590: error: `BN_mod' was not declared in this scope
../otserv.cpp:593: error: `BN_mod_inverse' was not declared in this scope
../otserv.cpp:598: error: `ERR_load_crypto_strings' was not declared in this scope
../otserv.cpp:601: error: `ERR_get_error' was not declared in this scope
../otserv.cpp:601: error: `ERR_error_string' was not declared in this scope

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

Execution terminated
 
you need openssl, also stop using dev-cpp, it's out-dated and you will experience lots of crashes, i had to make Cykotitan upgrad to latest GCC to fix these crashes (std::string copy constructor if he remembers...), you can add my skype/msn and i will help you later on...
 
Back
Top