• 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!

Solved Errors while compiling TFS 0.4

JNLP

Hail Odin!
Joined
Aug 4, 2008
Messages
54
Reaction score
0
Location
Brazil
Hello guys! I'm trying to compile a TFS 0.4, but I'm getting some errors:
Code:
33 C:\Downloads\trunk.r4137\otserv.cpp openssl/rsa.h: No such file or directory. 

34 C:\Downloads\trunk.r4137\otserv.cpp openssl/bn.h: No such file or directory. 

35 C:\Downloads\trunk.r4137\otserv.cpp openssl/err.h: No such file or directory. 

90 C:\Downloads\trunk.r4137\otserv.cpp expected constructor, destructor, or type conversion before '*' token 

C:\Downloads\trunk.r4137\otserv.cpp In function `void otserv(StringVec, ServiceManager*)': 

547 C:\Downloads\trunk.r4137\otserv.cpp `g_RSA' was not declared in this scope 

547 C:\Downloads\trunk.r4137\otserv.cpp `RSA_new' was not declared in this scope 

549 C:\Downloads\trunk.r4137\otserv.cpp `BN_dec2bn' was not declared in this scope 

556 C:\Downloads\trunk.r4137\otserv.cpp `RSA_check_key' was not declared in this scope 

561 C:\Downloads\trunk.r4137\otserv.cpp `BN_CTX' was not declared in this scope 

561 C:\Downloads\trunk.r4137\otserv.cpp `ctx' was not declared in this scope 

561 C:\Downloads\trunk.r4137\otserv.cpp `BN_CTX_new' was not declared in this scope 

562 C:\Downloads\trunk.r4137\otserv.cpp `BN_CTX_start' was not declared in this scope 

564 C:\Downloads\trunk.r4137\otserv.cpp `BIGNUM' was not declared in this scope 

564 C:\Downloads\trunk.r4137\otserv.cpp `r1' was not declared in this scope 

564 C:\Downloads\trunk.r4137\otserv.cpp `BN_CTX_get' was not declared in this scope 

564 C:\Downloads\trunk.r4137\otserv.cpp `r2' was not declared in this scope 

565 C:\Downloads\trunk.r4137\otserv.cpp `BN_mod' was not declared in this scope 

568 C:\Downloads\trunk.r4137\otserv.cpp `BN_mod_inverse' was not declared in this scope 

572 C:\Downloads\trunk.r4137\otserv.cpp `RSA_check_key' was not declared in this scope 

577 C:\Downloads\trunk.r4137\otserv.cpp `ERR_load_crypto_strings' was not declared in this scope 

578 C:\Downloads\trunk.r4137\otserv.cpp `ERR_get_error' was not declared in this scope 

578 C:\Downloads\trunk.r4137\otserv.cpp `ERR_error_string' was not declared in this scope 

 C:\Downloads\trunk.r4137\dev-cpp\Makefile.win [Build Error]  [obj//otserv.o] Error 1

What's wrong? ;S (Rep+ if you help me)
 
Last edited:
in your Dev c++
Help > About Dev-Cpp > Check For Updates > Devpaks.org > Check For Updates > OpenSSL > Download > Restart Dev-Cpp
 
in your Dev c++
Help > About Dev-Cpp > Check For Updates > Devpaks.org > Check For Updates > OpenSSL > Download > Restart Dev-Cpp

I can't update my Dev, when I click "Check for updates", after a little time, it disconnects automatically. =/ I tried to download the OpenSSL lib 0.9.8 and 0.1, but I don't know how to install it.
 
I've installed the lib 0.1.0, and was giving errors, then uninstalled it, and installed the 0.9.8, but it's giving errors too.

Code:
33 C:\Downloads\trunk.r4137\otserv.cpp openssl/rsa.h: No such file or directory. 

34 C:\Downloads\trunk.r4137\otserv.cpp openssl/bn.h: No such file or directory. 

35 C:\Downloads\trunk.r4137\otserv.cpp openssl/err.h: No such file or directory. 

90 C:\Downloads\trunk.r4137\otserv.cpp expected constructor, destructor, or type conversion before '*' token 

 C:\Downloads\trunk.r4137\otserv.cpp In function `void otserv(StringVec, ServiceManager*)': 

etc and etc.

I've heard that I need the version 0.7.0 of the OpenSsl Lib, but I couldn't find it in anywhere.
 
Last edited:
Ok, let's try to compil it again xD

EDIT:

Oh sh*t, still having the same errors. =/

Code:
33 C:\Downloads\trunk.r4137\otserv.cpp openssl/rsa.h: No such file or directory. 

34 C:\Downloads\trunk.r4137\otserv.cpp openssl/bn.h: No such file or directory. 

35 C:\Downloads\trunk.r4137\otserv.cpp openssl/err.h: No such file or directory. 

90 C:\Downloads\trunk.r4137\otserv.cpp expected constructor, destructor, or type conversion before '*' token 

 C:\Downloads\trunk.r4137\otserv.cpp In function `void otserv(StringVec, ServiceManager*)': 

547 C:\Downloads\trunk.r4137\otserv.cpp `g_RSA' was not declared in this scope 

547 C:\Downloads\trunk.r4137\otserv.cpp `RSA_new' was not declared in this scope 
...

It's strange, I've downloaded the rsa.h and put it into the openssl folder.

EDIT²:

I'm using the Stian's dev c++ repack 0.2 64bit, but my Windows is 32bit, can be because that, the problems?
 
Last edited:
lol, true, had two Dev. I excluded the old and tried to compil again, but now it's getting errors in the end. Look:

Code:
  cannot find -leay32 
  ld returned 1 exit status 
  *** [TheForgottenServer.exe] Error 1
 
Now you should try installing that OpenSSL devpak again, you're missing the library and the devpak includes it.
 
Back
Top