Jonathan Hayward <[EMAIL PROTECTED]> writes:

> I have had some difficulties with g++.  When I run it, I get the
> following error message:
> 
> /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
> collect2: ld returned 1 exit status

Are you sure you have a main() function in the program you're trying
to compile?

If so, see if you can reproduce your error with a small hello-worldish
example and post your example code along with the exact command line
you use to invoke g++

-- 
Henning Makholm
http://www.diku.dk/students/makholm

Reply via email to