quickNitin
16th November 2006, 08:30
Well i need more help!!!
I am designign a form in Qt4.1.2 dsigner.
I inherit form-class and put some more features. In the same file i am defining main() and naming this file as main.cpp;
i went through copy book stpes for compilation . It results in link time error
g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.2/lib -o Info -L/usr/local/Trolltech/Qt-4.1.2/lib -lQtGui_debug -L/home/qt-x11-opensource-src-4.1.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore_debug -lz -lm -ldl -lpthread
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Info] Error 1
pro file also look good.
Is there a web link talking about all such silly novice issues.
I am designign a form in Qt4.1.2 dsigner.
I inherit form-class and put some more features. In the same file i am defining main() and naming this file as main.cpp;
i went through copy book stpes for compilation . It results in link time error
g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.2/lib -o Info -L/usr/local/Trolltech/Qt-4.1.2/lib -lQtGui_debug -L/home/qt-x11-opensource-src-4.1.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore_debug -lz -lm -ldl -lpthread
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Info] Error 1
pro file also look good.
Is there a web link talking about all such silly novice issues.