Re: Beginning C++ in FreeBSD

看板FB_chat作者時間22年前 (2004/04/28 12:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串28/43 (看更多)
Sergey Zaharchenko <doublef@tele-kom.ru> writes: > Sorry? I mean, you've got the object file, and can compile a shared > library which will advertize itself, with the former, whereas the > latter, as you've pointed out, doesn't compile. neither does the former, with a proper compiler: % g++ -o /dev/null -c a.cc a.cc: In constructor `A::A()': a.cc:11: error: `cout' undeclared (first use this function) a.cc:11: error: (Each undeclared identifier is reported only once for each function it appears in.) a.cc:11: error: `endl' undeclared (first use this function) you're missing "using namespace std;" at the top. > A quick hint: Turing has nothing to do with all this... Yes, he does; you just don't understand him. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #10Zp0E00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #10Zp0E00 (FB_chat)