Mail Archives: djgpp/1995/07/31/09:21:15
I have a problem compiling this very basic C++ code:
file 'try.cc'
-------------------------------------
#include <iostream.h>
int main(int argc, char **argv)
{
cout << "hello.\n";
return 0;
}
--------------------------------------
Here are the errors returned to me:
D:\GNU-C\gcc try.cc
try.cc(.text+0x16):undefined reference to `cout'
try.cc(.text+0x1b):undefined reference to `ostream::operator<<(char const *)'
D:\GNU-C>
NOTE: I have just installed the GNU C C++ compiler on my pc. I just got one
maintenance file named dj112m1.zip. I am using the following modules:
djeoe112.zip
djdev112.zip
gcc260bn.zip
gas23bn.zip
bnu24bn.zip
lgp260bn.zip
-------------------------------------------------------------------
| Christophe MATIGNON, Shock and Detonation Physics Group |
| |
| Physics department, University College of Wales, Aberystwyth, |
| Penglais Campus, Aberystwyth, Dyfed, SY23 3BZ |
| |
| _/ _/ _/ _/ _/ |
| E-Mail: chm94 AT aber DOT ac DOT uk _/ _/ _/ _/ _/_/ |
| _/ _/ _/ _/ _/ _/ |
| Phone: (44) 1970 622824 _/ _/ _/ _/ _/ _/_/_/_/ |
| FAX: (44) 1970 622839 _/ _/ _/ _/ _/_/ _/ _/ |
| _/_/_/_/_/ _/ _/ _/ _/ |
-------------------------------------------------------------------
- Raw text -