delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/29/14:34:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: khchan AT cyberdude DOT com
MIME-Version: 1.0
Message-Id: <0008291433515V.00973@weba3.iname.net>
Date: Tue, 29 Aug 2000 14:33:51 -0400 (EDT)
To: cygwin AT sources DOT redhat DOT com
Subject: cplusplus cannot use c dll

hi again and thanks a million for the specs
file documentation! guess i was lucky.

here's another problem encountered recently
and would appreciate if anyone could shine
me some light.

i've got cygwin B20.1 with gcc-2.95.2
running on top of it, set up for msvcrt
mingw32 as documented previously in
README.win32 file from gtk+ for windows
web site.

if this is off-topic, sorry, will dig up
the correct list then...

managed to get C++ compilation and linking to
work, make dlls and all. have pthreads and
opengl, gtkglarea working...
my C programs work with C dlls generated
via gcc.

problem is my C++ programs refuse to work
with my C dlls (while they work with the
pre-built gtk+ dlls; i didn't build these).
i successfully linked C++ progs. but upon
execution, it 'illegal ops' and dies.

if i link in .o files used to generate the
C dlls into the C++ programs, then it works
too.

the apps built import from msvcrt and are
all compiled with -fnative-struct and
-mno-cygwin.

kindly bestow light on this lost soul.
least a little hint on where to look would
be good enough.
thanks in advance..

khchan



---------------------------------------------------
Get free personalized email at http://www.iname.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019