Mail Archives: djgpp/1998/03/17/01:53:52
At 09:42 3/16/1998 GMT, Jens Lehmann wrote:
>Hi!
>
>I would like to learn C and have some trouble with compiling: I wrote
>my first little C-code (you know it all):
>
>#include <iostream.h>
>int main()
>{
> cout << "Hello World\n";
> return (0);
>}
>
>
>typed "make hello" and everything seemed fine until i wanted to
>execute my program:
Where did you get the makefile?
>
>
>C:\Tmp>make hello
>gcc hello.cc -o hello
When linking C++, you should use `gxx' instead of `gcc'. README.1ST explains
this.
>
>C:\Tmp>hello
>Exiting due to signal SIGSEGV
>General Protection Fault at eip=0000003e
You aren't by any chance using RSXNT, are you? I've heard that unresolved
symbols cause crashes with it. Are you sure there are no other programs
called `gcc', `cpp', `cc1plus', `as', or `ld' on your path?
Nate Eldredge
eldredge AT ap DOT net
- Raw text -