Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: JianQing Zou on August 19, 2008, 03:44:13 pm
-
the project hierarchy is as follows:
-----------------------------------------------------------
-gtest
-Sources
-...
-gtest-filepath.cpp
-...
-Headers
-gtest
-internal
-...
-gtest-filepath.h
-...
-----------------------------------------------------------
in c++ file "gtest-filepath.cpp":
#include <gtest/internal/gtest-filepath.h>
#include <gtest/internal/gtest-port.h>
namespace testing {
namespace internal {
...
...
}
}
-----------------------------------------------------------
but when building the project, errors occur:
\gtest\gtest-filepath.cpp: gtest/internal/gtest-filepath.h: No such file or directory
\gtest\gtest-filepath.cpp: gtest/internal/gtest-port.h: No such file or directory
so what's wrong?
help me! thanks.
-
are you setting the search directories?, in this tab you have to put the directories of your sources files, even if you use the wizard. You can do it follow: "Project"->"Build Options"-->"Search directories" and add the it.