User forums > Help
glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
(1/1)
Nasheayahu:
Hi,
I'm new to using the IDE and having trouble during build to find this include header and I assume adding them to the search path would solved the problem.
I did a fine and added these paths to the projects Build Option / Seach Directories:
--- Code: ---[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name glibmm.h -type f -print
/usr/include/glibmm-2.4/glibmm.h
[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name glibmmconfig.h -type f -print
/usr/lib/glibmm-2.4/include/glibmmconfig.h
[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name gtkmm.h -type f -print
find: ‘/usr/lib/firmware/b43’: Permission denied
/usr/include/gtkmm-2.4/gtkmm.h
/usr/include/gtkmm-3.0/gtkmm.h
--- End code ---
Program:
Build Output:
Build Option / Search Directories:
What do I need to do to correct this error?
Thanks!...
stahta01:
Post a build log in code tags.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Please read this CB FAQ http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F
NOTE: Changing the project settings is the better why than changing the Global Compiler settings.
EDIT: From the image posted I think you did it correctly in the CB Project settings.
EDIT2: Your problem looks like it might be a Linux programming question instead of a CB Question; but, I am far from being an Linux expert. Please read the rules and decide yourself if it is a valid question for this site.
http://forums.codeblocks.org/index.php/topic,9996.0.html
Tim S.
Jenna:
On linux it's almost always better to use pkg-config, than to add the includes manually.
You can add the appropriate lines for compiler (and linker) to the other-options tabs (in backticks).
And is there a special cause, you added it for the debug-target?
Wouldn't it be better to use it for the whole project, so you do not need to add it twice (which is harder to maintain and probably error-prone) ?
Navigation
[0] Message Index
Go to full version