Mail Archives: djgpp/1998/04/25/15:47:41
>I got past the evil include thing;
>
>however when i try to compile/link this program this is the error I
>get:
When you compile C++ programs with gcc (rather than gxx / g++) you need to
explicitly specify to the linker that it should include the standard C++
libraries.
Do it like this:
gcc test.cpp -o t -lstdcx
That should make it work.
>void main() {
Not critical, but main should be of type int, and it should return a value
(0 is a good one to pick for success).
Later,
Matt.
- Raw text -