[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

potato & C++



Hi. 

I'm having trouble with potato's C++. Programs, including 'Hello World',
compile cleanly but produce only produce some line feeds as output.

dselect/apt indicates everything is up to date as of yesterday.
I've tried running ldconfig & even rebooting, with no luck.

btw: I have both the 'regular' compiler installed and the g++
compiler package. Removing the g++ package didn't change anything.

I've compiled ok before, but that was some time ago -- probably
before upgrading to potato.

any help would be appreciated,
Jon

--
#include <iostream.h>
int main(void)
{  
   cout << "Hello World " << endl ;
   return 0;
}
--

g++  --version 2.95.2
(compiles clean w/ g++, but produces only a few blank line feeds)
--

(doesn't compile clean with gcc)

gcc hello.cc
/tmp/cc1mF6XY.o: In function `main':
/tmp/cc1mF6XY.o(.text+0xa): undefined reference to `endl(ostream &)'
/tmp/cc1mF6XY.o(.text+0x17): undefined reference to `cout'
/tmp/cc1mF6XY.o(.text+0x1c): undefined reference to `ostream::operator<<(char const *)'
/tmp/cc1mF6XY.o(.text+0x27): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
--



Reply to: