public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: QT
@ 2001-02-13  9:45 Josifovski Ljubomir-BLJ01Z
  2001-02-13 10:13 ` QT Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 8+ messages in thread
From: Josifovski Ljubomir-BLJ01Z @ 2001-02-13  9:45 UTC (permalink / raw)
  To: Cygwin Mailing List (E-mail)
  Cc: 'l.josifovski@dcs.shef.ac.uk', 'j.barker@dcs.shef.ac.uk'

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: QT
@ 2001-02-13 10:17 Buddy Coffey
  0 siblings, 0 replies; 8+ messages in thread
From: Buddy Coffey @ 2001-02-13 10:17 UTC (permalink / raw)
  To: 'Josifovski Ljubomir-BLJ01Z', Cygwin Mailing List (E-mail)

On Tuesday, February 13, 2001 10:45 AM, Josifovski Ljubomir-BLJ01Z [SMTP:BLJ01Z@motorola.com] wrote in part:
> 
> 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:

Link with -lglut32 -lglu32 -lopengl32 etc in /usr/lib.  See /usr/doc/opengl/README.txt for details.

Very best,
Buddy Coffey
Advanced Electromagnetics
bcoffey@gemacs.com

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <01C094C9.07B4CA40.bcoffey@gemacs.com>]
[parent not found: <chris@parm.net's>]

end of thread, other threads:[~2001-02-13 10:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13  9:45 QT Josifovski Ljubomir-BLJ01Z
2001-02-13 10:13 ` QT Larry Hall (RFK Partners, Inc)
  -- strict thread matches above, loose matches on Subject: below --
2001-02-13 10:17 QT Buddy Coffey
     [not found] <01C094C9.07B4CA40.bcoffey@gemacs.com>
2001-02-12  9:16 ` QT Dr. Volker Zell
     [not found] <chris@parm.net's>
     [not found] ` <message>
     [not found]   ` <of>
     [not found]     ` <"Sun,>
     [not found]       ` <11>
     [not found]         ` <Feb>
     [not found]           ` <2001>
     [not found]             ` <16:18:12>
     [not found]               ` <+0000>
     [not found]                 ` <(GMT)>
2001-02-11  8:18                   ` QT chris
2001-02-11 15:48                     ` QT Dr. Volker Zell
2001-02-12  7:02                       ` QT Jonathan Fosburgh
2001-02-12  9:36                         ` QT Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).