qt3 statically linked

Alexandros Droseltis rakewell at udk-berlin.de
Mon Sep 9 09:25:01 EEST 2002


Geia xara se olous!

Exw grapsei ena programma pou xrisimopoiei tiv qt3. Dynamically linked den 
exei kanena problima me compiler/linker (g++) kai douleuei kanonika. 
Prospathisa na tin kanw statically linked, alla stathike adynato. Epexeirisa 
duo tropous:

a) Sto Makefile prosthesa sti grammi L_FLAGS to -dn (ta -static, -Bstatic kai 
-non_shared ebgazan minumata lathous):
L_FLAGS=-dn -L$(QTDIR)/lib/ -lqt

Apotelesma: i sundesi egine xwris kanena problima, alla...
> file executable
executable: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
dynamically linked (uses shared libs), not stripped

b) Apenergopoiisa ti grammi twn L_FLAGS kai prosthesa sti grammi twn object 
files ti bibliothiki ws:
OBJECTS=$(QTDIR)/lib/libqt.a main.o kai_loipa.o

Apotelesma itan na bgainoun minumata oti oles oi sunartiseis tis qt pou 
xrisimopoiountai sto programma einai "undefined reference".

Kamia idea? Euxaristo ek ton proteron gia tin opoia boitheia.

> g++ --version
2.95.3
> uname -a
Linux linux 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i586 unknown

Filika
Alexandros




More information about the Linux-greek-users mailing list