Undefined Reference to Main

R

Raj Pashwar

Has anyone ever encountered this sort of bug??
does anyone know the resolution...

-------------------------------

$ make
g++ -O -o Av_utils Av_utils.cpp -L/root/fakespace/lib/Linux_32_Release
-L/root/fakespace/glut_libs/glut-3.7/Linux_32/Mesa -lmui -lglut -lGLU
-lGL -L/usr/X11R6/lib -lXi -lXmu -lX11 -lXext -lm

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
`_start':

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Av_utils] Error 1
 
J

Joe Pfeiffer

Raj Pashwar said:
Has anyone ever encountered this sort of bug??
does anyone know the resolution...

-------------------------------

$ make
g++ -O -o Av_utils Av_utils.cpp -L/root/fakespace/lib/Linux_32_Release
-L/root/fakespace/glut_libs/glut-3.7/Linux_32/Mesa -lmui -lglut -lGLU
-lGL -L/usr/X11R6/lib -lXi -lXmu -lX11 -lXext -lm

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
`_start':

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Av_utils] Error 1

Only when I in fact didn't have a main() in my program.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top