Qt 1.40 and EGCS-1.1a (linux)

Scott Powers spowers@geomagic.com
Wed Sep 9 09:38:00 GMT 1998


I'm using linux 2.0.30 (Red Hat 4.2) multi-processor kernel (2 P2-233s,
128 megs, etc).

So I built binutils-2.9.1 and installed.

I then built egcs 1.1a with the default configuration (excepting I
specified to use gas and gld) and installed.

I then went to build Qt 1.40. The libraries build without so much as a
peep, but when the tutorials start building the 4th one causes the
following:

cd t4; make
make[2]: Entering directory `/opt/local/encap/qt-1.40/tutorial/t4'
g++ -c -I/opt/local/encap/qt-1.40/include -g -o main.o main.cpp
g++ -L/opt/local/encap/qt-1.40/lib -L/usr/X11R6/lib -o t4 main.o -lqt
-lX11 
main.o: In function `MyWidget type_info function':
/opt/local/encap/qt-1.40/tutorial/t4/main.cpp(.rodata+0x24): undefined
reference to `QWidget type_info node'
/opt/local/encap/qt-1.40/tutorial/t4/main.cpp(.gnu.linkonce.t.__tf8MyWidget+0xd):
undefined reference to `QWidget type_info function'
collect2: ld returned 1 exit status

(See attached code)

The difference between tutorial 4 and tutorials 3,2,1 is 4 is the first
time a Qt class is subclassed. The original source did not have a
destructor, but I added one and the error message is almost the same
(still complaining about type_info).

I searched using the egcs search engine for "type_info" and didn't come up
with anything.

I get the same link-time error when building other applications as well.

Please let me know if there is any more information you would like.

Thanks,
  Scott Powers
-- 
O-    Scott W. Powers    <*>| "What is one of the great leaders of the
     Software Engineer      |  Minbari doing here playing ambassador?"
  Raindrop Geomagic, Inc.   |   -- Soul Hunter #1 (to Delenn), "SH"
 www.geomagic.com/~spowers  | 


More information about the Gcc-bugs mailing list