/usr/lib/crt1.o(.text+0x69): undefined reference to `main'

/usr/lib/crt1.o(.text+0x69): undefined reference to `main'

Post by Anders Mo » Thu, 14 Oct 1999 04:00:00



Hello all. When trying to compile vtk 2.4 (www.kitware.com) with
eg++/egcc I get the
following errors:

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x69): undefined reference to `main'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
*** Error code 1

Stop.

While I'll happily hack a makefile or two, this error leaves me
clueless. Any ideas ?

Thanks in advance,

Anders Moe

 
 
 

/usr/lib/crt1.o(.text+0x69): undefined reference to `main'

Post by Peter Jone » Sat, 16 Oct 1999 04:00:00




Quote:> Hello all. When trying to compile vtk 2.4 (www.kitware.com) with
> eg++/egcc I get the
> following errors:

> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x69): undefined reference to `main'
> collect2: ld returned 1 exit status
> *** Error code 1

> Stop.
> *** Error code 1

> Stop.

> While I'll happily hack a makefile or two, this error leaves me
> clueless. Any ideas ?

> Thanks in advance,

> Anders Moe

I had this same error back in the days of 2.2.6. What version of FreeBSD
are you running.

Go search the freebsd-questions mailing list and you sould come up with
a few answers.

-- Peter

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Porting to Linux: crt1.o and "undefined reference to `main'"

I am presently working on a port of a program
from Solaris to Linux, Debian version 2.0.

When compiling a number of object files to create a .so
file as follows:

     gcc -o ./obj/libSrbClient.so obj/clAuth.o obj/clConnect.o
          obj/clExec.o obj/clMisc.o obj/clStub.o obj/srb_perror.o
          obj/dllist.o obj/clGlobal.o

I get the message:

     /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
     collect2: ld returned 1 exit status

Can someone indicate how I solve this problem?

Thank you for your time,

Josef Jurek

2. HP DeskJet 970Cxi under Linux?

3. /usr/lib/libm.so: undefined reference to `__getfpucw'

4. 2.3.x -- development goals anybody?

5. mesaGL error - /usr/lib/libglut.so: undefined reference to `XmuLookupStandardColormap'

6. PPP on a 2.0.11 kernel?

7. undefined reference to 'main', In function '__uClibc_main'..

8. UNIX CDs

9. undefined reference to `pw_crypt',undefined reference to `spw_unpack'

10. undefined reference to 'main'

11. help... crt1.o "undefinied reference to main is _start"

12. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux