[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2012-01-28 Thread Chen Huang

Chen Huang  added the comment:

I am experiencing the same issue. Googled for a bit but couldn't find much with 
the error, then changed the search context, come across to this thread. 


In file included from 
/opt/local/include/boost/date_time/gregorian/parsers.hpp:13,
 from 
/opt/local/include/boost/date_time/gregorian/gregorian.hpp:34,
 from 
/opt/local/include/boost/date_time/posix_time/time_formatters.hpp:12,
 from 
/opt/local/include/boost/date_time/posix_time/posix_time.hpp:24,
 from 
/opt/local/include/boost/date_time/local_time/local_time.hpp:11,
 from /opt/local/include/boost/date_time.hpp:15,
 from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.h:11,
 from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.cpp:12:
/opt/local/include/boost/date_time/date_parsing.hpp:50:33: error: macro 
"tolower" passed 2 arguments, but takes just 1
In file included from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.cpp:12:
/Users/chen/GitRepo/Cpp_EmbeddingPython/Device.h:13:21: error: Devices.h: No 
such file or directory
In file included from 
/opt/local/include/boost/date_time/gregorian/parsers.hpp:13,
 from 
/opt/local/include/boost/date_time/gregorian/gregorian.hpp:34,
 from 
/opt/local/include/boost/date_time/posix_time/time_formatters.hpp:12,
 from 
/opt/local/include/boost/date_time/posix_time/posix_time.hpp:24,
 from 
/opt/local/include/boost/date_time/local_time/local_time.hpp:11,
 from /opt/local/include/boost/date_time.hpp:15,
 from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.h:11,
 from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.cpp:12:
/opt/local/include/boost/date_time/date_parsing.hpp: In function ‘std::string 
boost::date_time::convert_to_lower(std::string)’:
/opt/local/include/boost/date_time/date_parsing.hpp:50: error: cannot resolve 
overloaded function ‘tolower’ based on conversion to type ‘char’
In file included from /Users/chen/GitRepo/Cpp_EmbeddingPython/Device.cpp:12:

--
nosy: +Chen.Huang

___
Python tracker 
<http://bugs.python.org/issue10910>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2012-01-28 Thread Chen Huang

Chen Huang  added the comment:

if I put "#include " before boost/date_time, it solves my problem.

And by the way, i can't seem to get to the point where boost/week_ptr.hpp 
causes the error. I tried to compile Nasos's upload test-boost-python. That 
codes works on my machine.

--

___
Python tracker 
<http://bugs.python.org/issue10910>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2012-01-28 Thread Chen Huang

Chen Huang  added the comment:

Nevermind, putting #include  doesn't help. I have to put  on 
top to get away this.

--

___
Python tracker 
<http://bugs.python.org/issue10910>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com