jncornett / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compilation of gtest-1.1.0 fails on ubuntu 8.10 #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
Fixed in revision 110.

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