Re: gcc linker-error's

1996-10-14 Thread J.H.M.Dassen
[linking C++ code with gcc fails]: >gcc -o test test.cc > > both give the following (linker) errors: > > /tmp/cca001121.o: In function `main': > /tmp/cca001121.o(.text+0x13): undefined reference to `cout' > /tmp/cca001121.o(.text+0x13): undefined reference to > `ostream:operator<<(char co

gcc linker-error's

1996-10-14 Thread Niels Bo Johansen
I have tried to compile the most simple C++ program whith the gcc compiler (2.7.2). I do not have the exact source code, but it's something like: #include void main() { int i = 9; cout << " write a some text.\n"; } saved in a file called test.cc. Trying the following: gcc -c test