I use a simple program (Yes, it's "Hello World");
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
return 0;
}
but all I got was a lousy "iostream: No such file or directory"
I then tried;
#include <iostream.h>
int main()
{
std::cout << "Hello, world!\n";
return 0;
}
But then I got this huge error log given below. Does anyone know what this could be? (Not as a discussion about wether I should use iostream or iostream.h with the latter being the old way of typing it etc., but rather about the actual problem since neither of them work). I use Visual SlickEdit v.9.0.2.
Thankful for any ideas
Part of the Huge Error log;
---------- Build Project: 'HelloProject.vpj' - 'Debug' ---------- VSLICKERRORPATH="c:\vslick\win\HelloProject"
HelloProject.cpp
Linking...
/sde4/sde/bin/ld.exe: warning: cannot find entry symbol __start; defaulting to 80020000
/sde4/sde\lib/libstdc++.a(iostream.o): In function `skip_ws(streambuf *)':
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x128): undefined reference to `_ctype'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x12c): undefined reference to `_ctype'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `istream::operator>>(char *)':
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x9d4): undefined reference to `_ctype'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x9d8): undefined reference to `_ctype'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `write_int(ostream &, unsigned long long, int)':
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x1954): undefined reference to `__umoddi3'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x1974): undefined reference to `__udivdi3'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `ostream::operator<<(char const *)':
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x231c): undefined reference to `strlen'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `ostream::do_osfx(void)':
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x2c34): undefined reference to `_iob'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x2c38): undefined reference to `_iob'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x2c3c): undefined reference to `fflush'
/vol/sde/release4.0/src/egcs/libio/iostream.cc(.text+0x2c44): undefined reference to `fflush'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `_IO_ostream_withassign type_info function':
/vol/sde/release4.0/src/egcs/libio/iostream.h(.text+0x2f84): undefined reference to `__rtti_class'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `_IO_ostream_withassign::~_IO_ostream_withassign(void)':
/vol/sde/release4.0/src/egcs/libio/iostream.h(.text+0x304c): undefined reference to `__builtin_delete'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `_IO_istream_withassign type_info function':
/vol/sde/release4.0/src/egcs/libio/iostream.h(.text+0x30c0): undefined reference to `__rtti_class'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `_IO_istream_withassign::~_IO_istream_withassign(void)':
/vol/sde/release4.0/src/egcs/libio/iostream.h(.text+0x3188): undefined reference to `__builtin_delete'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `iostream type_info function':
/vol/sde/release4.0/src/egcs/libio/iostream.h(.text+0x3364): undefined reference to `__rtti_class'
/sde4/sde\lib/libstdc++.a(iostream.o): In function `iostream::~iostream(void)':
.
.
.
/sde4/sde\lib/libstdc++.a(stdiostream.o): In function `stdiobuf type_info function':
/vol/sde/release4.0/src/egcs/libio/stdiostream.h(.text+0xb18): undefined reference to `__rtti_si'
*** Errors occurred during this build ***