1

Topic: Compile errors

Hi

I have compile error "error LNK209: unresolved external symbol" error when i compiled.  I tried deleting objs file and compiling again but I got nothing. It is a a problem noone has given an answer to yet so its no problem if you cant help.

I copied and pasted someone else's error code from the forums because i cant copy from my console.

=== Setup by Botox ===
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

=== Building Teeworlds Server ===
Процесс не найден: teeworlds_srv
[1/2] #1 c++ src/game/server/gamecontext.cpp
c:\tee\tee\src\game\server\gamecontext.cpp(648) : warning C4700: uninitialized l
ocal variable 'msqQueryReg' used
[2/2] #1 link teeworlds_srv.exe
mysqlclient.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__
RegCloseKey@4 referenced in function _win_init_registry
mysqlclient.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__
RegEnumValueA@32 referenced in function _win_init_registry
mysqlclient.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__
RegOpenKeyExA@20 referenced in function _win_init_registry
mysqlclient.lib(common.obj) : error LNK2019: unresolved external symbol __imp__I
sValidSid@4 referenced in function "public: bool __thiscall Sid::is_valid(void)c
onst " (?is_valid@Sid@@QBE_NXZ)
mysqlclient.lib(common.obj) : error LNK2019: unresolved external symbol __imp__E
qualSid@8 referenced in function "public: bool __thiscall Sid::operator==(class
Sid const &)" (??8Sid@@QAE_NABV0@@Z)
mysqlclient.lib(common.obj) : error LNK2019: unresolved external symbol __imp__L
ookupAccountNameW@28 referenced in function "public: __thiscall Sid::Sid(wchar_t
 const *)" (??0Sid@@QAE@PB_W@Z)
mysqlclient.lib(common.obj) : error LNK2019: unresolved external symbol __imp__G
etTokenInformation@20 referenced in function "public: __thiscall Sid::Sid(void *
)" (??0Sid@@QAE@PAX@Z)
mysqlclient.lib(random.obj) : error LNK2019: unresolved external symbol __imp__C
ryptAcquireContextA@20 referenced in function "public: __thiscall TaoCrypt::OS_S
eed::OS_Seed(void)" (??0OS_Seed@TaoCrypt@@QAE@XZ)
mysqlclient.lib(random.obj) : error LNK2019: unresolved external symbol __imp__C
ryptReleaseContext@8 referenced in function "public: __thiscall TaoCrypt::OS_See
d::~OS_Seed(void)" (??1OS_Seed@TaoCrypt@@QAE@XZ)
mysqlclient.lib(random.obj) : error LNK2019: unresolved external symbol __imp__C
ryptGenRandom@12 referenced in function "public: void __thiscall TaoCrypt::OS_Se
ed::GenerateSeed(unsigned char *,unsigned int)" (?GenerateSeed@OS_Seed@TaoCrypt@
@QAEXPAEI@Z)
teeworlds_srv.exe : fatal error LNK1120: 10 unresolved externals
bam: 'teeworlds_srv.exe' error 1120
bam: error: a build step failed
Не удается найти файл teeworlds_srv.exe.
=== Finished ===

Help would be appreciated. Thanks smile

2

Re: Compile errors

Are you compiling the official Teeworlds or a modified version of it?

Not Luck, Just Magic.

3 (edited by mousecat 2013-10-06 22:23:58)

Re: Compile errors

Nothing was modified.

EDIT: If you could help that would be great because I seem to recall you having the exact same problem smile

4 (edited by TT <3 2013-10-06 22:55:56)

Re: Compile errors

Where did you downloaded it and what did you wanted to download? Because it seems to be a modified version of the teeworlds server with mysql-features

5

Re: Compile errors

I downloaded it from this link:

http://www.teeworlds.com/files/teeworld … source.zip

I wanted to compile it to make sure I can do it before making any modifications however It gave me that error.

6

Re: Compile errors

Are you sure that you unzip the version downloaded from "http://www.teeworlds.com/files/teeworld … source.zip" ???

Official Teeworlds haven't sql integration :\

Copy here (http://pastebin.com) your "bam.lua" and give me the link...