Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of gtest-1.1.0 fails on ubuntu 8.10 #41

Closed
GoogleCodeExporter opened this issue Aug 1, 2015 · 4 comments
Closed

Compilation of gtest-1.1.0 fails on ubuntu 8.10 #41

GoogleCodeExporter opened this issue Aug 1, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link


src/gtest-filepath.cc: In static member function 'static
testing::internal::FilePath testing::internal::FilePath::GetCurrentDir()':
src/gtest-filepath.cc:82: error: 'PATH_MAX' was not declared in this scope
src/gtest-filepath.cc:83: error: 'cwd' was not declared in this scope
make: *** [src/gtest-filepath.lo] Error 1

I added #include <limits.h>, which fixed the problem.

Original issue reported on code.google.com by mikael.h...@gmail.com on 30 Sep 2008 at 5:42

@GoogleCodeExporter
Copy link
Author

I'm using attached patch to compile with GCC 4.3.2

Original comment by nextdayf...@gmail.com on 8 Oct 2008 at 10:54

Attachments:

@GoogleCodeExporter
Copy link
Author

openSUSE 11.0 has the same issue. The patch submitted by mikael.hogqvist solves 
the
problem.

Original comment by dholms...@gmail.com on 21 Oct 2008 at 9:54

@GoogleCodeExporter
Copy link
Author

I have same problem in ubuntu 8.10. but, mikael.hogqvist patch works well. 
Thanks ..

Original comment by ranma96 on 1 Nov 2008 at 1:19

@GoogleCodeExporter
Copy link
Author

Fixed in revision 110.

Original comment by vladlosev on 22 Nov 2008 at 8:10

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant