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

Code generation failed

DJSzaman

New Member
Joined
Aug 21, 2016
Messages
7
Reaction score
0
When i try to rebuild otclient in Microsoft Visual Studio this shows.

>LINK : fatal error C1047: The object or library file 'C:\otclient-msvc13-libs\libvorbis-1.3.3\lib\libvorbis_static.lib' was created with an older compiler than other objects; rebuild old objects and libraries
1>LINK : fatal error LNK1257: code generation failed
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I don't know what to do with this , pls help
 
Okay, so i solved the problem that was before, but now i have something like this, i have no idea what to do with this.

1>crypt.obj : error LNK2001: unresolved external symbol _BN_mod_inverse
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Update
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Update
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_error_string
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_generate_key_ex
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_free
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Final
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Update
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_check_key
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Update
1>crypt.obj : error LNK2001: unresolved external symbol _BN_set_word
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Init
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_load_crypto_strings
1>crypt.obj : error LNK2001: unresolved external symbol _BN_MONT_CTX_free
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_private_decrypt
1>crypt.obj : error LNK2001: unresolved external symbol _BN_div
1>crypt.obj : error LNK2001: unresolved external symbol _BN_bn2dec
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Init
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_size
1>crypt.obj : error LNK2001: unresolved external symbol _BN_dec2bn
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Init
1>crypt.obj : error LNK2001: unresolved external symbol _BN_new
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Final
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_get_error
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_get
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Init
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_new
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_new
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Final
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Final
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_start
1>crypt.obj : error LNK2001: unresolved external symbol _BN_clear_free
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_public_encrypt
1>C:\otclient-master\vc12\Release\otclient.exe : fatal error LNK1120: 33 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 
This is a linking problem, you are compiling in a debug/win32/x64 type that is not including or referencing the libraries needed. Check again how to link libraries properly or at which version you are trying to compile.
 
Looks like you either dont have openssl library on your pc or you didnt add it to linker
 
I will give links to the pictures of the linking because when i add them they are to small.
1. http://postimg.org/image/b7dk936yn
2. http://postimg.org/image/rwf0503jz/
Thats what i get:
1>crypt.obj : error LNK2001: unresolved external symbol _BN_mod_inverse
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Update
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Update
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_error_string
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_generate_key_ex
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_free
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Final
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Update
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_check_key
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Update
1>crypt.obj : error LNK2001: unresolved external symbol _BN_set_word
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Init
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_load_crypto_strings
1>crypt.obj : error LNK2001: unresolved external symbol _BN_MONT_CTX_free
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_private_decrypt
1>crypt.obj : error LNK2001: unresolved external symbol _BN_div
1>crypt.obj : error LNK2001: unresolved external symbol _BN_bn2dec
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Init
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_size
1>crypt.obj : error LNK2001: unresolved external symbol _BN_dec2bn
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Init
1>crypt.obj : error LNK2001: unresolved external symbol _BN_new
1>crypt.obj : error LNK2001: unresolved external symbol _SHA512_Final
1>crypt.obj : error LNK2001: unresolved external symbol _ERR_get_error
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_get
1>crypt.obj : error LNK2001: unresolved external symbol _SHA1_Init
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_new
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_new
1>crypt.obj : error LNK2001: unresolved external symbol _MD5_Final
1>crypt.obj : error LNK2001: unresolved external symbol _SHA256_Final
1>crypt.obj : error LNK2001: unresolved external symbol _BN_CTX_start
1>crypt.obj : error LNK2001: unresolved external symbol _BN_clear_free
1>crypt.obj : error LNK2001: unresolved external symbol _RSA_public_encrypt
1>C:\otclient-master\vc12\Release\otclient.exe : fatal error LNK1120: 33 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 
You are looking at the wrong place. Go to linker/input/additional dependencies. There is where you name the libraries the linker should look for.
 
The only one thing I have more than you in there is this : libeay32MD.lib
 
So i added the libeay32MD.lib and now i have these error: 1>LINK : fatal error LNK1181: cannot open input file 'libeay32MD.lib'
 
i've been trying to compile otc lately and i am getting the same kind of errors.. it says i have to rebuild my librairies. if someone know about that error please let me know !

thanks!
 
Back
Top