User forums > Using Code::Blocks

build problem!

(1/1)

JianQing Zou:
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.

 



         

alb_cb_moon:
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.

Navigation

[0] Message Index

Go to full version