문제

I want to import a test GUI I made in glade into a project in code::blocks. I followed a guide to import it as an xml into the project, whether that works or not, I bumped into a problem, code::blocks can't find the header file <glade/glade.h>, which is located at /usr/include/libglade-2.0/glade/glade.h.

If I set the include path to that absolute path, I get the same problem with other files which glade.h needs to include.

Do I need to export glade into the environment variable, if so how do I do it?

도움이 되었습니까?

해결책

You'll have to add /usr/include/libglade-2.0 into your list of include directories; this is an option in Code::Blocks somewhere.

You then write #include <glade/glade.h>.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top