[contest-discuss] how to use CC to compile boost spirit

魏绪凯 weixk at ios.ac.cn
Mon Aug 27 02:04:27 PDT 2007


while compiling a boost spirit example , these errors occurs
there is no problem using g++.

-bash-3.00$ CC -I. file_parser.cpp
"./boost/spirit/iterator/impl/file_iterator.ipp", line 379: Error: Formal
argument 1 of type char* in call to munmap(char*, unsigned
) is being passed void*.
"./boost/spirit/iterator/file_iterator.hpp", line 168:     Where: While
instantiating "boost::spirit::fileiter_impl::mmap_file_itera
tor<char>::mmap_file_iterator(std::string )".
"./boost/spirit/iterator/file_iterator.hpp", line 168:     Where:
Instantiated from non-template code.
1 Error(s) detected.





More information about the contest-discuss mailing list