From: Francesco M. <f18...@ya...> - 2006-01-18 23:21:33
|
Hi, I've grepped all my wxLua (and wxArt2d) updated CVS repositories and I did find only one occurrence of the "/NODEFAULTLIB" string: in app_wxlua, Win32 debug: # ADD LINK32 /VERBOSE:LIB /NODEFAULTLIB:MSVCRT.lib wxluadebug.lib wxluasocket.lib wxlua.lib is it right ? or I'm missing some other occurrences ? Also, is someone so kind to explain me (maybe just quoting the text from other mails) why that setting is so dangerous ? Thanks a lot, Francesco |
From: John L. <jla...@gm...> - 2006-01-19 03:34:32
|
On 1/18/06, Francesco Montorsi <f18...@ya...> wrote: > Hi, > I've grepped all my wxLua (and wxArt2d) updated CVS repositories and > I did find only one occurrence of the "/NODEFAULTLIB" string: > > in app_wxlua, Win32 debug: > > # ADD LINK32 /VERBOSE:LIB /NODEFAULTLIB:MSVCRT.lib wxluadebug.lib > wxluasocket.lib wxlua.lib > > is it right ? or I'm missing some other occurrences ? > Also, is someone so kind to explain me (maybe just quoting the text from > other mails) why that setting is so dangerous ? It's actually necessary so that the wxLua app doesn't immediately crash when run in VC 2003 (at least). I don't really understand it all that well. This fixes some problem with the compiler's debug vs. nondebug libs being linked with incorrectly. Regards, John Labenski |
From: k. h. <kla...@nl...> - 2006-01-19 07:59:30
|
Hi Francesco, I think the problem might be related to the fact that lua is a non windows/wxWidgets application ( plain C ). As i said Cmake does not have the switch in wxLua, and also i can debug into Lua itself, which is a problem on bakefile. Maybe you can compare the two, to see where things go different. Not having the switch in bakefile, makes application crash at the first stages of initialization, and people told me the warning is not to be ignored. Klaas Francesco Montorsi wrote: > Hi, > I've grepped all my wxLua (and wxArt2d) updated CVS repositories > and I did find only one occurrence of the "/NODEFAULTLIB" string: > > in app_wxlua, Win32 debug: > > # ADD LINK32 /VERBOSE:LIB /NODEFAULTLIB:MSVCRT.lib wxluadebug.lib > wxluasocket.lib wxlua.lib > > is it right ? or I'm missing some other occurrences ? > Also, is someone so kind to explain me (maybe just quoting the text > from other mails) why that setting is so dangerous ? > -- Unclassified |
From: Francesco M. <f18...@ya...> - 2006-01-19 18:25:21
|
Hi, k. holwerda ha scritto: > I think the problem might be related to the fact that lua is a non > windows/wxWidgets application ( plain C ). yes, that could be. > As i said Cmake does not have the switch in wxLua, and also i can debug > into Lua itself, which is a problem on bakefile. I think this is related to something else: that setting should be used only with app_wxlua not with wxlua library... did you tried to use WX_DEBUG=1 from command line when compiling wxLua ? It should set all debug info on... > Maybe you can compare > the two, to see where things go different. I'll do. > Not having the switch in bakefile, makes application crash at the first > stages of initialization, and people told me the warning is not to be > ignored. that is strange, right. But for "application" you mean only wxLua application (wxlua/apps/wxlua), right ? Francesco Montorsi ------------------ Homepage: http://home.tele2.it/f18m Any sufficiently advanced bug is indistinguishable from a feature. ------------------ > > Klaas > > Francesco Montorsi wrote: > >> Hi, >> I've grepped all my wxLua (and wxArt2d) updated CVS repositories >> and I did find only one occurrence of the "/NODEFAULTLIB" string: >> >> in app_wxlua, Win32 debug: >> >> # ADD LINK32 /VERBOSE:LIB /NODEFAULTLIB:MSVCRT.lib wxluadebug.lib >> wxluasocket.lib wxlua.lib >> >> is it right ? or I'm missing some other occurrences ? >> Also, is someone so kind to explain me (maybe just quoting the text >> from other mails) why that setting is so dangerous ? >> > |
From: klaas.holwerda <kho...@xs...> - 2006-01-19 19:35:22
|
Francesco Montorsi wrote: > >> As i said Cmake does not have the switch in wxLua, and also i can >> debug into Lua itself, which is a problem on bakefile. > > I think this is related to something else: that setting should be used > only with app_wxlua not with wxlua library... > did you tried to use WX_DEBUG=1 from command line when compiling wxLua ? > It should set all debug info on... I am talking lua not wxLua. So wxLua library i can debug, but in the underlying lua code i can not. I used project files, and in there the debug config, so all is set right. I still thing this not being able to debug into the lua library is related to the switch. Try it in app_wxLua, and put a break inside lua code. > >> Not having the switch in bakefile, makes application crash at the >> first stages of initialization, and people told me the warning is >> not to be ignored. > > that is strange, right. But for "application" you mean only wxLua > application (wxlua/apps/wxlua), right ? Any application, like teto in wxArt2d too. apps/wxLua for instance crashed when removing the switch in question. Some People say that normally this switch tells us that something is not set up right. And with Cmake it becomes clear it can be done somehow, but i do not know where the problem is exactly. Klaas |
From: Francesco M. <f18...@ya...> - 2006-01-20 13:25:26
|
Hi, klaas.holwerda ha scritto: > Francesco Montorsi wrote: > >> >>> As i said Cmake does not have the switch in wxLua, and also i can >>> debug into Lua itself, which is a problem on bakefile. >> >> >> I think this is related to something else: that setting should be used >> only with app_wxlua not with wxlua library... >> did you tried to use WX_DEBUG=1 from command line when compiling wxLua ? >> It should set all debug info on... > > > I am talking lua not wxLua. So wxLua library i can debug, but in the > underlying lua code i can not. ops; probably I understood the problem. I'll soon (as soon as I fix other compilation problems under linux) do a commit which will fix this. > I used project files, and in there the debug config, so all is set right. > I still thing this not being able to debug into the lua library is > related to the switch. > > Try it in app_wxLua, and put a break inside lua code. as soon as linux version compiles, installs and uninstalls correctly, I'll begin win32 testing. >>> Not having the switch in bakefile, makes application crash at the >>> first stages of initialization, and people told me the warning is >>> not to be ignored. >> >> >> that is strange, right. But for "application" you mean only wxLua >> application (wxlua/apps/wxlua), right ? > > > Any application, like teto in wxArt2d too. > apps/wxLua for instance crashed when removing the switch in question. > > Some People say that normally this switch tells us that something is not > set up right. > And with Cmake it becomes clear it can be done somehow, but i do not > know where the problem is exactly. ok, hopefully my last changes should have fixed this removing that switch. Francesco |