includes errors

847 views
Skip to first unread message

xuxu

unread,
Jul 14, 2010, 8:42:47 AM7/14/10
to Google C++ Testing Framework
I have strange problem and I'll be more than thankful if some one know
how to help me.

I'm working on visual studio 2008 and wrote main to test a cpp file
the file is at this directory (Let's say: c:\foo\foo\foo\foo.cpp) when
I copy the file to another directory (for example: c:
\foo1\foo1\foo.cpp) I'm getting an error with compiling

the error:
fatal error C1083:cannot open include file: 'gtest/internal/gtest-
internal.h':No such file or directory

I double check it and the file exists.
I don't know what the problem.

please help me

Keith Ray

unread,
Jul 14, 2010, 4:47:25 PM7/14/10
to xuxu, Google C++ Testing Framework
In your project settings, do you have the folder that holds "gtest" in
your "additional include paths" settings?

--
C. Keith Ray
Web: http://industriallogic.com
Twitter: @CKeithRay, @IndustrialLogic

Amplify Your Agility
Coaching | Training | Assessment | eLearning

Shlomit Maymon

unread,
Jul 14, 2010, 4:53:15 PM7/14/10
to Keith Ray, Google C++ Testing Framework
First, thank you for your answer.
Second, I wrote at the setting in "additional include paths": "C:\gtest-1.5.0\gtest-1.5.0\msvc\gtest\Debug"
The strange thing is that it work just fine when I had another path for the file that I'm testing but when I change the path (the include path) the above error (about gtest) shown.
I thought maybe there are some "role" on the testing file. ("can not be here.." "should be there.." or something like that).
thanks again.
Reply all
Reply to author
Forward
0 new messages