Author Topic: build problem!  (Read 3127 times)

Offline JianQing Zou

  • Single posting newcomer
  • *
  • Posts: 3
build problem!
« 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.

 



         
pain past is ok.

Offline alb_cb_moon

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: build problem!
« Reply #1 on: August 19, 2008, 04:47:43 pm »
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.
OS: Windows XP SP2
GUI Library: wxWidgets 2.8.10
IDE: CodeBlocks SVN / Nigth Builds Compiler: MinGW & gcc 3.4.5