Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <D1F0002F0A8FD411ACEC00805FE675CE260F6A@zuk02exm02.comm.mot.com>
From: Josifovski Ljubomir-BLJ01Z <BLJ01Z@motorola.com>
To: "Cygwin Mailing List (E-mail)" <cygwin@sourceware.cygnus.com>
Cc: "'l.josifovski@dcs.shef.ac.uk'" <l.josifovski@dcs.shef.ac.uk>,
        "'j.barker@dcs.shef.ac.uk'" <j.barker@dcs.shef.ac.uk>
Subject: RE: QT
Date: Tue, 13 Feb 2001 17:45:18 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain


Not directly related to QT, but maybe someone can help me.

I'm trying to link an application I need with a library libqtai that uses
libqt and libGL (found in xfree/contrib/sgi-opengl.tar.bz2). When I try to
link my application with the libraries, ex:

$ g++       -I.  -I /home/ljupco/CTK/include/ctk  -Wall -O2   -D_HAS_QT
-D_HAS_CURSES -o /home/ljupco/CTK/local/bin/CTKScript
/home/ljupco/CTK/lib/CTKScript.o my_blocks.o my_translation_table.o
-L/home/ljupco/CTK/lib -L/usr/local/qt/lib -L/usr/X11R6/lib -lctk
/usr/local/qtai/lib/libqtai.a -lqt -lm -lcurses -lXmu -lXext -lSM -lICE
-lGLU -lglut -lX11 -lGL

I get error like:

/usr/local/qtai/lib/libqtai.a(aiplot3d.o)(.text+0x5a26): undefined reference
to `glPushMatrix@0'

I see that libqtai needs:

$ nm /usr/local/qtai/lib/libqtai.a|grep  glPushMatrix
         U _glPushMatrix@0

(also 

$ nm /usr/local/qtai/aiplot3d.o |grep  glPushMatrix
         U _glPushMatrix@0
)

While libGL provides:

$ nm /usr/X11R6/lib/libGL.a |grep glPushMatrix
00000000 I ___imp_glPushMatrix
00000000 I __imp__glPushMatrix
00000000 T _glPushMatrix

(also 

$ nm /usr/X11R6/static-lib/libGL.a |grep glPushMatrix
00004ab8 T _glPushMatrix

)

Is this the names mangling thingy that c++ ("@parameters-derived-signature")
does versus the way c does it ("_" before the name)? But I see that the
<GL/glut.h> header included from aiplot3d.cpp (and the headers it includes)
have the "#ifdef __cpluplus extern "C" {" stuff. So where does @0 (in "U
_glPushMatrix@0") come from?

The metacompiler (moc) is used while creating the libqtai creating
moc_aiplot3d.cpp. Can this be the problem?

thanks in advance,

-- 
Ljubomir Josifovski
mailto:L.Josifovski@dcs.shef.ac.uk,blj01z@motorola.com
http://www.dcs.shef.ac.uk/~ljupco

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

