Config
Log for #openttd.dev on 15th December 2013:
Times are UTC Toggle Colours
00:17:06  *** adf88 has quit IRC
00:20:35  *** TheIJ has quit IRC
00:22:11  *** TheIJ has joined #openttd.dev
00:48:03  *** Hirundo has quit IRC
00:48:06  *** Hirundo has joined #openttd.dev
00:48:11  *** Terkhen has quit IRC
00:48:19  *** planetmaker has quit IRC
00:48:36  *** Terkhen has joined #openttd.dev
00:48:36  *** planetmaker has joined #openttd.dev
00:48:37  *** ChanServ sets mode: +v Terkhen
00:48:37  *** ChanServ sets mode: +v planetmaker
01:55:54  *** orudge has quit IRC
01:55:55  *** orudge has joined #openttd.dev
02:27:07  *** Yexo has quit IRC
02:27:36  *** Yexo has joined #openttd.dev
03:21:43  *** Supercheese has quit IRC
03:31:28  *** Supercheese has joined #openttd.dev
03:31:28  *** ChanServ sets mode: +v Supercheese
08:25:58  *** Supercheese has quit IRC
08:26:46  *** adf88 has joined #openttd.dev
08:26:46  *** ChanServ sets mode: +v adf88
10:36:57  *** Alberth has joined #openttd.dev
10:36:58  *** ChanServ sets mode: +v Alberth
10:37:42  *** adf88 has quit IRC
10:37:42  *** orudge has quit IRC
10:37:42  *** Terkhen has quit IRC
10:37:42  *** TheIJ has quit IRC
10:39:00  *** adf88 has joined #openttd.dev
10:39:00  *** orudge has joined #openttd.dev
10:39:00  *** Terkhen has joined #openttd.dev
10:39:00  *** coulomb.oftc.net sets mode: +vv adf88 Terkhen
10:40:28  *** TheIJ has joined #openttd.dev
10:45:36  *** adf88 has quit IRC
10:54:11  *** orudge has quit IRC
10:54:11  *** Terkhen has quit IRC
10:55:12  *** orudge has joined #openttd.dev
10:55:12  *** Terkhen has joined #openttd.dev
10:55:12  *** coulomb.oftc.net sets mode: +v Terkhen
10:59:14  *** orudge has quit IRC
10:59:18  *** orudge has joined #openttd.dev
11:25:36  *** Ristovski has joined #openttd.dev
11:43:18  *** adf88 has joined #openttd.dev
11:43:18  *** ChanServ sets mode: +v adf88
11:56:40  *** DorpsGek has quit IRC
11:57:15  *** DorpsGek has joined #openttd.dev
11:57:15  *** ChanServ sets mode: +v DorpsGek
12:06:06  *** Webster has joined #openttd.dev
12:06:07  *** ChanServ sets mode: +v Webster
12:13:57  *** fonsinchen has quit IRC
12:14:07  *** fonsinchen has joined #openttd.dev
12:34:13  *** michi_cc has quit IRC
12:34:30  *** michi_cc has joined #openttd.dev
12:34:30  *** ChanServ sets mode: +v michi_cc
12:48:24  *** adf89 has joined #openttd.dev
12:51:15  *** adf88 has quit IRC
13:24:05  *** frosch123 has joined #openttd.dev
13:24:05  *** ChanServ sets mode: +v frosch123
14:08:53  *** LordAro has joined #openttd.dev
14:08:53  *** ChanServ sets mode: +v LordAro
14:09:28  <LordAro> question: how does OTTD deal with library linking in Visual Studio?
14:09:48  <LordAro> are things statically linked? or how do you get the libraries in the right place?
14:11:16  <frosch123> does the .zip bundle contain any libraries?
14:11:55  <LordAro> i have no idea, i can't (haven't tried to set up) compile ottd
14:11:58  <LordAro> :L
14:13:32  <frosch123> no, i mean the finished binaries
14:13:46  <frosch123> if the .zip contains no libs, apparently everything must have been statically linked
14:14:10  <LordAro> o right
14:17:08  <LordAro> there are indeed no .dll or .lib files
14:17:13  <LordAro> so i guess static it is :)
14:19:39  <michi_cc> LordAro: You add the path where you store the libs to the VS IDE. Compile farm uses static libs for the official binaries, but it doesn't really matter if the .lib file is the full static lib or just a DLL import lib. Static libs just make life easier on many points.
14:20:06  <michi_cc> And as a GPL project we don't have any with statically linking (L)GPL libs either.
14:20:13  <michi_cc> s/any/any problems/
14:20:20  <LordAro> indeed
14:20:45  <LordAro> now, i've just got to work out how to make cmake generate project files that link statically :)
14:21:17  *** JGR has quit IRC
14:21:44  *** JGR has joined #openttd.dev
14:23:41  <michi_cc> There's no magic at all in it. You give the linker a lib file, eg libz.lib or whatever. Only the contents of the lib file decides if the lib is static or not. A few libs do require special defines to make static libs work (e.g. disableing __declspec(dllimport)). The only special lib is the MSVCR libc, and that is changed by a command line switch (/MD versus /MT).
15:31:23  *** Ristovski has quit IRC
15:31:52  *** Ristovski has joined #openttd.dev
18:08:29  <LordAro> i'm still having trouble getting it to link statically. maybe i'm linking against the wrong library file? how can i tell?
19:15:25  *** adf89 has quit IRC
19:50:29  *** adf88 has joined #openttd.dev
19:50:29  *** ChanServ sets mode: +v adf88
20:00:18  <LordAro> "msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)" mean anything to anyone?
20:12:49  <Rubidium> did you make the libraries yourself?
20:25:20  <LordAro> no, this is only attempting to link SDL (and SDL_ttf)
20:25:32  <LordAro> which i donwloaded a windows binary of
20:26:20  <Rubidium> then that library isn't compiled in a manner that it can be linked to openttd; for some reasons there are several ways to compile libraries
20:26:37  <Rubidium> ... and for some reason openttd seems to use the hard one, or at least an uncommon one or so
20:29:42  <LordAro> oh, this isn't ottd :L
20:29:52  <LordAro> i'm just asking for help :)
20:31:43  <Rubidium> there's some linking or omitting standard functions setting somewhere that might need to be toggled
20:43:04  <LordAro> it would seem so

Powered by YARRSTE version: svn-trunk