ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] Ошибка с QtDesigner'овским проектом
  2004-07-20 13:57 [Comm] Ошибка с QtDesigner'овским проектом Андрей
@ 2004-07-20  9:39 ` Denis Dubentsov (Vector)
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Dubentsov (Vector) @ 2004-07-20  9:39 UTC (permalink / raw)
  To: Андрей

А> Создаю в QtDesigner'е пустую форму.
А> (qt3-designer-3.3.2-alt1)
А> Создаю test.pro, к нему диалог-окно (создаются формы, модули).
А> Сохраняю все, даю qmake -o Makefile test.pro, создается Makefile, все
А> как надо...
А> Затем даю make и компиляция валится с ошибкой:
А> [taw@localhost test]$ qmake -o Makefile test.pro
А> [taw@localhost test]$ make
А> /usr/lib/qt3//bin/uic form1.ui -o .ui/form1.h
А> /usr/lib/qt3//bin/uic form1.ui -i form1.h -o .ui/form1.cpp
А> g++ -c -pipe -Wall -W -pipe -Wall -O2 -march=i586 -mcpu=i686
А> -DGLX_GLXEXT_LEGACY -fno-exceptions  -DQT_NO_DEBUG
А> -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -I.ui/ -I.
А> -I.moc/ -o .obj/form1.o .ui/form1.cpp/usr/lib/qt3//bin/moc .ui/form1.h
А> -o .moc/moc_form1.cpp g++ -c -pipe -Wall -W -pipe -Wall -O2 -march=i586
А> -mcpu=i686 -DGLX_GLXEXT_LEGACY -fno-exceptions  -DQT_NO_DEBUG
А> -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -I.ui/ -I.
А> -I.moc/ -o .obj/moc_form1.o .moc/moc_form1.cpp g++  -o test .obj/form1.o
А> .obj/moc_form1.o   -L/usr/lib/qt3//lib -L/usr/X11R6/lib -lqt-mt -lXext
А> -lX11
А> -lm/usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../crt1.o(.text+0x18): In
А> function `_start':: undefined reference to `main'
А> collect2: ld returned 1 exit status
А> make: *** [test] Ошибка 1

А> gcc 3.3.3-alt5.
А> Что не так?
 Ну он четко сказал:
 function `_start':: undefined reference to `main'


А> Спасибо за помощь.

PS: Подходит начинающий програмист к хакеру и показывает программу на Бейсике.
- Подскажите, пожалуйста, в чем у меня ошибка?
- В ДНК, - вздыхает хакер.

-- 
С уважением,
 Denis                          mailto:denis@vectorsoft.com.ua



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Comm] Ошибка с QtDesigner'овским проектом
@ 2004-07-20 13:57 Андрей
  2004-07-20  9:39 ` Denis Dubentsov (Vector)
  0 siblings, 1 reply; 2+ messages in thread
From: Андрей @ 2004-07-20 13:57 UTC (permalink / raw)
  To: community

Создаю в QtDesigner'е пустую форму.
(qt3-designer-3.3.2-alt1)
Создаю test.pro, к нему диалог-окно (создаются формы, модули).
Сохраняю все, даю qmake -o Makefile test.pro, создается Makefile, все
как надо...
Затем даю make и компиляция валится с ошибкой:
[taw@localhost test]$ qmake -o Makefile test.pro
[taw@localhost test]$ make
/usr/lib/qt3//bin/uic form1.ui -o .ui/form1.h
/usr/lib/qt3//bin/uic form1.ui -i form1.h -o .ui/form1.cpp
g++ -c -pipe -Wall -W -pipe -Wall -O2 -march=i586 -mcpu=i686
-DGLX_GLXEXT_LEGACY -fno-exceptions  -DQT_NO_DEBUG
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -I.ui/ -I.
-I.moc/ -o .obj/form1.o .ui/form1.cpp/usr/lib/qt3//bin/moc .ui/form1.h
-o .moc/moc_form1.cpp g++ -c -pipe -Wall -W -pipe -Wall -O2 -march=i586
-mcpu=i686 -DGLX_GLXEXT_LEGACY -fno-exceptions  -DQT_NO_DEBUG
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -I.ui/ -I.
-I.moc/ -o .obj/moc_form1.o .moc/moc_form1.cpp g++  -o test .obj/form1.o
.obj/moc_form1.o   -L/usr/lib/qt3//lib -L/usr/X11R6/lib -lqt-mt -lXext
-lX11
-lm/usr/lib/gcc-lib/i586-alt-linux/3.3.3/../../../crt1.o(.text+0x18): In
function `_start':: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [test] Ошибка 1

gcc 3.3.3-alt5.
Что не так?
Спасибо за помощь.
-- 
С уважением, Андрей aka f0rk
EMAIL:  f0rk@mail.ru
ICQ:       201045832
***************************************************
   Powered By ALT Linux Sisyphus 20040524       
   Working linux kernel: 2.6.6-wks26-up-alt2    
***************************************************


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-20 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 13:57 [Comm] Ошибка с QtDesigner'овским проектом Андрей
2004-07-20  9:39 ` Denis Dubentsov (Vector)

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git