discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to compile in debug mode? (I'm on WIndows)


From: Nicola Pero
Subject: Re: how to compile in debug mode? (I'm on WIndows)
Date: Thu, 23 Jun 2005 01:15:06 +0100 (BST)

> I have a memory access exception while using GNUstep.
> In fact I have a .NET binding to ObjectiveC and, in some situation, when I 
> write this simple statement:
> LoadLibrary("gnustep-base.dll")
> I get SIGSEGV on malloc()
> 
> I was able to use gdb on my .NET program ;) and backtrace up to GNUstep code, 
> but of course there are no method name...
> I would like to recompile them with debug info!
> 
> Fortunately there is a source version which just happen to work on
> windows (you type 'make' and it works!), what parameter should I pass to
> make to have a debug version?

make debug=yes

Warning: if you compile libraries sometimes with debug, and sometime
without, you might confuse the system, particularly if you are
absent-minded or if you are not 100% sure of what you're doing ... (it
often happens to me for example when I mix the two types of libraries).

So the main suggestion is ... either build everything without debug, or 
build everything with debug, but try avoiding mixing the two types of 
builds. :-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]