[geos-devel] GEOS 2.2.3 build error on Mac OS X Leopard
John Cartwright
john.c.cartwright at comcast.net
Sat Nov 24 13:47:13 EST 2007
Mateusz's suggestion worked for me:
> There are two versions of tolower available in C++:
> old C functiona and new locale-aware function in C++.
> Apparently, GCC under Leopard introduces some changes
> that cause tolower is ambiguous if both prototypes of tolower are
> included and the function is through pointer to function what occurs
> in
> line 66.
>
> Could you try to replace the line 66 in file XMLTester.cpp with
> following line and see if it compiles for you now?
--john
On Nov 24, 2007, at 8:23 AM, Adam Mercer wrote:
> Hi
>
> I've been trying to build the latest stable release, 2.2.3, on Mac OS
> X Leopard and am running into the following build error:
>
> Making all in test
> if g++ -DHAVE_CONFIG_H -I. -I. -I../..//source/headers
> -I../..//source/headers/geos -I../../source/headers
> -I../../source/io/markup -g -O2 -MT XMLTester.o -MD -MP -MF
> ".deps/XMLTester.Tpo" -c -o XMLTester.o XMLTester.cpp; \
> then mv -f ".deps/XMLTester.Tpo" ".deps/XMLTester.Po"; else rm -f
> ".deps/XMLTester.Tpo"; exit 1; fi
> XMLTester.cpp: In function 'void tolower(std::string&)':
> XMLTester.cpp:66: error: 'std::tolower' is not a valid template
> argument for type 'int ()(int)' because function 'int tolower(int)'
> has not external linkage
> XMLTester.cpp:66: error: 'std::tolower' is not a valid template
> argument for type 'int ()(int)' because function 'int tolower(int)'
> has not external linkage
> XMLTester.cpp:66: error: no matching function for call to
> 'transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >,
> __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >,
> __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
> make[2]: *** [XMLTester.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> Any ideas?
>
> Cheers
>
> Adam
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
More information about the geos-devel
mailing list