User forums > Help
[SOLVED] Problem with GTK3
Lebuin:
Hi,
I just started using Codeblocks to create a GTK3 application. Unfortunately, while compiling, Code::Blocks keeps giving me the error: "fatal error: gtk/gtk.h: No such file or directory"
I have added `pkg-config --cflags gtk+-3.0` to the compiler options and `pkg-config --libs gtk+-3.0` to the linker options. When I change these two options to gtk+-2.0, compiling is successfull. Also, compiling on the command line with
--- Code: ---gcc `pkg-config --cflags gtk+-3.0` -o hello hello.c `pkg-config --libs gtk+-3.0`
--- End code ---
does work. What might be the problem here?
<i>Edit:</i> closing and reopening Code::Blocks solved my problem. Maybe because I installed GTK3 while Code::Blocks was already opened. Anyway, this is solved.
oBFusCATed:
--- Quote from: Lebuin on September 25, 2012, 12:53:07 pm ---<i>Edit:</i> closing and reopening Code::Blocks solved my problem. Maybe because I installed GTK3 while Code::Blocks was already opened. Anyway, this is solved.
--- End quote ---
Yes, C::B caches the results from backtick expressions.
MortenMacFly:
--- Quote from: oBFusCATed on September 25, 2012, 03:12:01 pm ---
--- Quote from: Lebuin on September 25, 2012, 12:53:07 pm ---<i>Edit:</i> closing and reopening Code::Blocks solved my problem. Maybe because I installed GTK3 while Code::Blocks was already opened. Anyway, this is solved.
--- End quote ---
Yes, C::B caches the results from backtick expressions.
--- End quote ---
...but not across sessions. ;-)
dmoore:
hmm... this has bitten me before. Is there any way to flush the cache short of restarting C::B?
oBFusCATed:
--- Quote from: dmoore on September 25, 2012, 07:36:50 pm ---hmm... this has bitten me before. Is there any way to flush the cache short of restarting C::B?
--- End quote ---
I think, I couldn't find a way to make it flush itself every time the project is rebuilt.
Navigation
[0] Message Index
[#] Next page
Go to full version