delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/04/18:16:04

From: stephenc AT wf DOT net ("Stephen Crowley")
Subject: Global Constructors, Objc, and dlls
4 May 1997 18:16:04 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199705042225.RAA28131.cygnus.gnu-win32@odin.wf.net>
Mime-Version: 1.0
X-Mailer: Microsoft Outlook Express 4.71.0603.0
Original-To: "GNU-Win32 List" <gnu-win32 AT cygnus DOT com>
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0603.0
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Has anyone tried using objective-c with gnuwin32, I downloaded the
libobjc.a source and compiled it, linked it as a dll and everything works
perfectly, but when i try making a dll with objecitve-c code in it it seems
to create an invalid dll, says "Cant start program" or something to that
effect. I am thinking it has something to do with global constructors, or
relocations or something weird like that, the debugger is of no use because
the exe will never start, it page faults in kernel32.dll. Please dont tell
me to just build them as a static lib becuase i know its possible to have
objc code in a dll, libobjc.a has .m code in it and it works fine, but if i
build my own object it creates an invalid dll. Ive been working on this for
a week and its really frustrating me, if anyone can help I'd really
appreciate it.

--Stephen Crowley

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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