* 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 9:45 QT Josifovski Ljubomir-BLJ01Z
@ 2001-02-13 10:13 ` Larry Hall (RFK Partners, Inc)
0 siblings, 0 replies; 8+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-02-13 10:13 UTC (permalink / raw)
To: Josifovski Ljubomir-BLJ01Z, Cygwin Mailing List (E-mail)
Cc: 'l.josifovski@dcs.shef.ac.uk', 'j.barker@dcs.shef.ac.uk'
At 12:45 PM 2/13/2001, Josifovski Ljubomir-BLJ01Z wrote:
>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?
This is an issue with calling conventions. See:
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core___cdecl.htm
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core___stdcall.htm
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
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>]
* Re: QT
[not found] <01C094C9.07B4CA40.bcoffey@gemacs.com>
@ 2001-02-12 9:16 ` Dr. Volker Zell
0 siblings, 0 replies; 8+ messages in thread
From: Dr. Volker Zell @ 2001-02-12 9:16 UTC (permalink / raw)
To: bcoffey; +Cc: cygwin
>>>>> "Buddy" == Buddy Coffey <bcoffey@gemacs.com> writes:
Buddy> Volker,
Buddy> Thanks for posting your Qt installation instructions to the Cygwin list. I
Buddy> implemented them as written, but I'm still getting an error I cannot
Buddy> resolve.
Buddy> I ran configure with these options: -static, -gif, -system-jpeg, and
Buddy> -no-g++-exceptions, and it executed without error. When I ran "make," I
Buddy> received an error on the first routine it tried to compile. The error was
Buddy> traced to qglobal.h which said that Qt had not been ported to the operating
Buddy> system I was trying to compile under.
Buddy> I see at the top of qglobal.h there are a large number of
Buddy> #ifdef/#elif/#endif directives for various operating systems. I did not
Buddy> find one for _OS_CYGWIN_ however. I tried adding one, but to no avail.
Yes, I forgot to mention that I added
#elif defined(__CYGWIN__)
#define _OS_CYGWIN_
at the end of the long OS-list.
My configure line looks like this:
./configure -gif -system-zlib -system-libpng -system-jpeg -static -platform cygwin-g++
Buddy> Thanks in advance for any assistance you can give.
Ciao
Volker
--
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: <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).