Приветствую всех
Помогите, не компилится простейшая форма созданная в дизайнере.$ls
form1.ui Makefile unnamed.pro
avrigus@evil-toy:~/111/qt$ make
g++ -o unnamed .obj/form1.o .obj/moc_form1.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [unnamed] Ошибка 1
дистриб: debian 3.1
qt: установленна с дистрибутива 3.3.4
Makefile создавал с помощью qmake
$ more Makefile
#############################################################################
# Makefile for building: unnamed
# Generated by qmake (1.07a) (Qt 3.3.4) on: Sun Sep 10 23:44:15 2006
# Project: unnamed.pro
# Template: app
# Command: $(QMAKE) -o Makefile unnamed.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -I.ui/ -I. -I.moc/
LINK = g++
LFLAGS =
LIBS = $(SUBLIBS) -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
AR = ar cqs
RANLIB =
MOC = /usr/share/qt3/bin/moc
UIC = /usr/share/qt3/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = .obj/
####### Files
HEADERS =
SOURCES =
OBJECTS = .obj/form1.o
FORMS = form1.ui
UICDECLS = .ui/form1.h
UICIMPLS = .ui/form1.cpp
SRCMOC = .moc/moc_form1.cpp
OBJMOC = .obj/moc_form1.o
DIST = unnamed.pro
QMAKE_TARGET = unnamed
DESTDIR =
TARGET = unnamed
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)
mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)
$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )
Makefile: unnamed.pro /usr/share/qt3/mkspecs/default/qmake.conf /usr/share/qt3/lib/libqt-mt.prl
$(QMAKE) -o Makefile unnamed.pro
qmake:
@$(QMAKE) -o Makefile unnamed.pro
dist:
@mkdir -p .obj/unnamed && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/unnamed/ && ( cd `dirname .obj/unnamed` && $(TAR) unnam
ed.tar unnamed && $(GZIP) unnamed.tar ) && $(MOVE) `dirname .obj/unnamed`/unnamed.tar.gz . && $(DEL_FILE) -r .obj/unnamed
mocclean:
-$(DEL_FILE) $(OBJMOC)
-$(DEL_FILE) $(SRCMOC)
uiclean:
-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)
yaccclean:
lexclean:
clean: mocclean uiclean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
FORCE:
####### Compile
.ui/form1.h: form1.ui
$(UIC) form1.ui -o .ui/form1.h
.ui/form1.cpp: .ui/form1.h form1.ui
$(UIC) form1.ui -i form1.h -o .ui/form1.cpp
.obj/form1.o: .ui/form1.cpp .ui/form1.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/form1.o .ui/form1.cpp
.obj/moc_form1.o: .moc/moc_form1.cpp .ui/form1.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/moc_form1.o .moc/moc_form1.cpp
.moc/moc_form1.cpp: $(MOC) .ui/form1.h
$(MOC) .ui/form1.h -o .moc/moc_form1.cpp
####### Install
install:
uninstall: