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

Feng Yu rainwoodman at gmail.com
Mon Aug 27 10:02:38 PDT 2007


I don't think that CC can compile CPP sources.

On 8/27/07, 魏绪凯 <weixk at ios.ac.cn> wrote:
> 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.
>
>
>
> _______________________________________________
> contest-discuss mailing list
> contest-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/contest-discuss
>


More information about the contest-discuss mailing list