User forums > Help

GTK+ with C - code completation not for all functions

<< < (3/3)

ollydbg:

--- Quote from: Meiner on February 15, 2012, 09:00:31 pm ---But I got the warning "G_OS_WIN32" redefinend" (glibconfig.h, line 163) when adding such a dummy header file. Moreover I don't see any changes, so I think it makes no difference whether adding the header file or not. Did I miss someting?

--- End quote ---
Ok, I find that G_OS_WIN32 was defined in the file: glibconfig.h, so you can only put the filename: glibconfig.h in the cc's option->priority header files list, did you do this? then restart C::B.

My suggestion in my previous post did create a dummy header file "aaa.h", but you don't need to include this file in any of your translate unit, adding the dummy header file to your project is just to let our CC's parser to parse it. It is NOT used in building your projects.

As you said, glibconfig.h has already G_OS_WIN32 defined, so you don't need this "aaa.h" file anymore.



Jenna:
On linux it seems to be enough to do the token-replacement stuff.
And obviously G_OS_WIN32 is not defined in glibconfig.h on linux anyway.

MortenMacFly:

--- Quote from: jens on February 16, 2012, 06:37:17 am ---On linux it seems to be enough to do the token-replacement stuff.

--- End quote ---
Actually this should really be enough. However, if not - a better way to do it is to provide this as compiler define switch, not as a file.

Navigation

[0] Message Index

[*] Previous page

Go to full version