View Full Version : Help compiling my first C++ program under Linux

Shawn Curry
12-13-2002, 02:21 AM
I'm used to using MSVC++ and Borland C++ Builder under Windows.... I've recently migrated to Linux (Red Hat 8) and I'm trying to compile my first QT project. I made the one straight off the tutorial - the clipboard manager - MultiClip.

I've never really had any experience using a command line compiler... The tutorial said to run
qmake -o Makefile multiclip.pro
and then to run make normally. Anyway, the first time I did it there were a couple missing semicolons and I fixed that but now I dont know what this message means:

[root@localhost multiclip]# make
g++ -o multiclip .obj/multiclipform.o .obj/moc_multiclipform.o -L/usr/lib/qt3-gcc3.2/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [multiclip] Error 1

and I dont know what it means. I uploaded it to my website
here (http://shawnsanswerpage.tripod.com/multclip.tar.gz)

12-14-2002, 02:00 PM
"This file is hosted by Tripod, a Lycos®Network Site, and is not available for download. "

12-14-2002, 02:14 PM
Tripod doesn't allow hotlinks (or whatever you call it) to files on their servers. copy and past the link below in your adress bar




Shawn Curry
12-15-2002, 05:57 AM
I figured it out. I had made a main.cpp for it, but I didnt add it to the project.:thumbsup: