Date: Tue, 27 Aug 2013 15:34:39 +0800 (SGT) From: Quark <unixuser2000-fbsd@yahoo.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: c++11 question: clang++ 3.3 <future> header not found Message-ID: <1377588879.62683.YahooMailNeo@web190703.mail.sg3.yahoo.com> In-Reply-To: <1377588169.38174.YahooMailNeo@web190702.mail.sg3.yahoo.com> References: <1377588169.38174.YahooMailNeo@web190702.mail.sg3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
list, please pardon=0Amy stupid mail client hung, giving me impression that= e-mail was not sent.=0Aapologies for spam.=0A=0A=0A----- Original Message = -----=0A> From: Quark <unixuser2000-fbsd@yahoo.com>=0A> To: "freebsd-questi= ons@freebsd.org" <freebsd-questions@freebsd.org>=0A> Cc: =0A> Sent: Tuesday= , 27 August 2013 12:52 PM=0A> Subject: c++11 question: clang++ 3.3 <future>= header not found=0A> =0A> % uname -a=0A> FreeBSD cobalt 9.2-RC3 FreeBSD 9.= 2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 =0A> =A0 =A0 root@bake.isc.f= reebsd.org:/usr/obj/usr/src/sys/GENERIC =A0amd64=0A> =0A> % clang++ --versi= on=0A> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610=0A= > Target: x86_64-unknown-freebsd9.2=0A> Thread model: posix=0A> =0A> test p= rogram=0A> #include <iostream>=0A> #include <future>=0A> =0A> int main( int= argc, char* argv[])=0A> {=0A> =A0 =A0 =A0 =A0 auto f =3D std::async( [] ()= {=0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 std::cout << "Hello,= World!" << =0A> std::endl;=0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 });=0A> =A0 =A0 =A0 =A0 f.wait();=0A> =A0 =A0 =A0 =A0 return 0;=0A> }= =0A> =0A> =0A> error received is=0A> % clang++ -otest test.cc=0A> =0A> test= .cc:2:10: fatal error: 'future' file not found=0A> #include <future>=0A> = =A0 =A0 =A0 =A0 =A0^=0A> 1 error generated.=0A> =0A> I guess clang is re-us= ing system headers which belong to older gcc 4.2=0A> I also have gcc48 inst= alled, how can I make clang to refer gcc48 headers?=0A> ___________________= ____________________________=0A> freebsd-questions@freebsd.org mailing list= =0A> http://lists.freebsd.org/mailman/listinfo/freebsd-questions=0A> To uns= ubscribe, send any mail to =0A> "freebsd-questions-unsubscribe@freebsd.org"= =0A>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1377588879.62683.YahooMailNeo>