public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: Josifovski Ljubomir-BLJ01Z <BLJ01Z@motorola.com>,
	"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 10:13:00 -0000	[thread overview]
Message-ID: <4.3.1.2.20010213130730.019bf420@pop.ma.ultranet.com> (raw)
In-Reply-To: <D1F0002F0A8FD411ACEC00805FE675CE260F6A@zuk02exm02.comm.mot.com>

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

  reply	other threads:[~2001-02-13 10:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-13  9:45 QT Josifovski Ljubomir-BLJ01Z
2001-02-13 10:13 ` Larry Hall (RFK Partners, Inc) [this message]
  -- 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.1.2.20010213130730.019bf420@pop.ma.ultranet.com \
    --to=lhall@rfk.com \
    --cc=BLJ01Z@motorola.com \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=j.barker@dcs.shef.ac.uk \
    --cc=l.josifovski@dcs.shef.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).