GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is it easy to package the GTK+ Libraries with an application
Goto page Previous  1, 2
 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
wheels53
Familiar Face


Joined: 13 Feb 2007
Posts: 13

PostPosted: Fri Apr 27, 2007 5:01 pm    Post subject: Reply with quote

Figured it out last night, thanks.
Back to top
wheels53
Familiar Face


Joined: 13 Feb 2007
Posts: 13

PostPosted: Tue May 01, 2007 2:30 am    Post subject: Reply with quote

Is there a way to prevent g_debug messages from being compiled?
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 376
Location: State College, Pennsylvania

PostPosted: Tue May 01, 2007 8:10 pm    Post subject: Reply with quote

The "glib/gmessages.h" file defines g_debug() as follows:

Code: (Plaintext)
1
2
3
4
5
6
7
#ifndef G_DEBUG_DISABLE
#define g_debug(...)    g_log (G_LOG_DOMAIN,         \
                               G_LOG_LEVEL_DEBUG,    \
                               __VA_ARGS__)
#else
#define g_debug(...)
#endif


So, adding "#define G_DEBUG_DISABLE" will disable g_debug() messages.
Back to top
wheels53
Familiar Face


Joined: 13 Feb 2007
Posts: 13

PostPosted: Thu May 31, 2007 10:46 pm    Post subject: Reply with quote

Disabling Debug stopped working so I checked the header file and it doesn't have the #ifdef G_DEBUG_DISABLE.

It's defined as follows:

Code: (Plaintext)
1
2
3
#define g_debug(...)    g_log (G_LOG_DOMAIN,         \
                               G_LOG_LEVEL_DEBUG,    \
                               __VA_ARGS__)


Any idea what happened? Am I using the wrong header file version?[/code]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP