IRC logs for #opendune on OFTC at 2009-12-30
            
00:36:33 <Xaroth> 40000 avatar posts on ftd..
03:21:49 *** glx has quit IRC
13:10:54 *** glx has joined #openDune
13:10:55 *** ChanServ sets mode: +o glx
13:11:44 <glx> hello
13:16:03 <Xaroth> o/
16:31:53 *** Yexo has quit IRC
16:32:00 *** Yexo has joined #openDune
16:32:00 *** ChanServ sets mode: +v Yexo
16:33:39 *** Yexo has quit IRC
16:33:51 *** Yexo has joined #openDune
16:33:51 *** ChanServ sets mode: +v Yexo
16:39:38 *** Yexo has quit IRC
16:39:39 *** Yexo has joined #openDune
16:39:39 *** ChanServ sets mode: +v Yexo
21:10:04 <Xaroth> technically, right, do you need to allocate memory for every 'global' var?
21:12:40 <glx> what do you mean ?
21:14:13 <Xaroth> I'm trying to fiddle with lua (my ever lasting playtoy to keep reminding me how little i know of C(++) ) .. and want to see how to best handle object data (like f.ex units etc).. so I want to have some global arrays that get filled with dummy data at init, which is then manipulatable by lua (or something like that)
21:17:53 <Xaroth> so I'm trying to figure out how to best handle the object data, and to do the implementation with lua.
21:28:40 <Xaroth> thought I could abuse this time of not as busyness to actually learn some C :P
22:06:19 <Xaroth> why oh why is msvc so annoying in creating an empty project
22:06:54 <Xaroth> it adds 4 files to turn #include <stdio.h> #include <tchar.h> into #include somedodgy.h
22:31:37 <glx> then you didn't create an empty project :)
22:32:35 <Xaroth> no, i had hoped it wouldn't be so annoyingly bloated :P
22:33:02 <Xaroth> i DID find the compile-as option
22:33:09 * Xaroth wonders if msvc likes C that much
22:33:54 *** planetmaker is now known as bugmaker
22:34:16 <glx> there's no files in general/empty project
22:34:44 *** bugmaker is now known as planetmaker
22:35:38 <Xaroth> error LNK2001: unresolved external symbol _luaL_newstate
22:35:51 <glx> add the lib in linker options
22:35:53 <Xaroth> msvc hates me already :P
22:36:56 <Xaroth> ah, so it stores that stuff THERE
22:37:02 <Xaroth> I've been looking for that spot for ages :P
22:40:50 <Xaroth> ok, that doesn't seem to fix much :o
22:44:17 <Xaroth> hrnf
22:44:38 <Xaroth> ok, that's somewhat odd
22:44:54 <Xaroth> lua_State *l; works
22:44:59 <Xaroth> adding
22:44:59 <Xaroth> l = lua_open();
22:45:00 <Xaroth> lua_close(l);
22:45:11 <Xaroth> causes the compile error to pop up
22:50:02 <glx> compile error or link error ?
22:50:13 <Xaroth> link
22:50:48 <glx> what did you add in link options ?
22:50:55 <Xaroth> lua51.lib
22:51:07 <Xaroth> as additional dep
22:51:38 <glx> where is the lib?
22:51:54 <Xaroth> same directory as the project file
22:52:00 <Xaroth> if i move it out, it bitches about file not found
22:52:09 <glx> so it finds it
22:52:22 <Xaroth> yeh, that's why I tested that
22:52:35 <glx> hmm there are 2 lua libs IIRC
22:53:25 <Xaroth> with a C++ test I made I managed to get away by just adding the two files into the project
22:53:31 <Xaroth> so not even had the issue of linker options
22:54:09 <Xaroth> no wait, that's false
22:54:17 <Xaroth> odd
22:56:21 <Xaroth> and there are two libs, lua51 and lua5.1 which are both identical
22:56:47 <Xaroth> which could pose issues if i use other libraries that depend on the <other> formatted library
22:57:07 <Xaroth> but seeing I'm not using any includes it shouldn't cause any issues
23:00:48 <glx> pack the dir and put it somewhere :)
23:07:40 <Xaroth> http://devs.opendune.org/~xaroth/luatesting.zip
23:13:22 <glx> ok first I needed to add ../include to includes :)
23:13:58 <glx> oh it was set for release, not for debug
23:14:13 <Xaroth> er yes
23:14:22 <Xaroth> I didn't trust msvc's debug :P
23:14:33 <glx> and no need to put terminating / nor ; ;)
23:14:56 <Xaroth> I tested with all 3 options :P
23:22:48 <glx> ok update the libs :)
23:22:56 <glx> http://luaforge.net/frs/?group_id=110
23:23:14 <glx> these works, the one on download page of lua.org don't
23:23:52 <glx> btw lua51 and lua5.1 have different sizes
23:23:56 <Xaroth> aha
23:24:02 <Xaroth> odd
23:24:36 <Xaroth> they fail at making a functional compilefarm then :P
23:25:05 * Xaroth hugs glx
23:25:07 <glx> different versions I guess, the libs you used were 1 year old
23:25:23 <Xaroth> I had 5.1.4.0 as well tho :o
23:25:36 <Xaroth> these show as 5.1.4.0 as well
23:26:20 <glx> but release 2 vs release 1
23:26:25 <Xaroth> ye
23:37:25 <Xaroth> note to self
23:37:28 <Xaroth> manifests are mandatory
23:38:40 <Xaroth> LDR: LdrpWalkImportDescriptor() failed to probe c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\luatesting\luatesting\lua51.dll for its manifest, ntstatus 0xc0150002
23:38:44 <Xaroth> Debugger:: An unhandled non-continuable exception was thrown during process load
23:38:47 <Xaroth> The program '[7852] luatesting.exe: Native' has exited with code 128 (0x80).
23:38:51 <Xaroth> o_O
23:39:17 <glx> yes but a sane build should have it builtin :)
23:40:37 <Xaroth> that shouldn't be it though
23:42:33 <Xaroth> even with the manifest it fails, gah
23:43:11 <glx> yes it doesn't find the dll :)
23:43:18 <Xaroth> how can it -not- find the dll
23:43:25 <Xaroth> it's in a directory with just 5 files
23:43:26 <Xaroth> the .exe
23:43:45 <glx> well it works for me and I don't have the manifest
23:43:58 <Xaroth> the 5.1.dll, the 5.1.dll.manifest, the 51.dll and the exe
23:44:04 <Xaroth> and a copy of the manifest.
23:45:00 <glx> it just works for me
23:45:01 <Xaroth> could it be with the fact i'm on x64
23:45:34 <glx> I'm on x64 but building x86 (express version can't build for x64)
23:46:00 <Xaroth> er
23:46:03 <Xaroth> wasn't that the other way around?
23:46:10 <Xaroth> as in, express only builds for the platform it's on?
23:46:22 <glx> no express only build for x86
23:48:15 <Xaroth> for the love of
23:51:56 <Xaroth> ah, that fixes it
23:51:59 <Xaroth> linking 5.1
23:52:03 <Xaroth> rather than 51