Re: Beginning C++ in FreeBSD
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"
討論串 (同標題文章)
完整討論串 (本文為第 28 之 43 篇):