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

Halton Huo Halton.Huo at Sun.COM
Mon Sep 3 09:00:21 PDT 2007


CC definitely can compile CPP.

For boost, you could use SFEboost.spec on pkgbuild project
(http://sourceforge.net/projects/pkgbuild).

Cheers,
Halton.
On Mon, 2007-08-27 at 13:02 -0400, Feng Yu wrote:
> 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
> >
> _______________________________________________
> 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