delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/01/19:37:07

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Libtool that does DLL's??
1 May 1998 19:37:07 -0700 :
Message-ID: <Pine.HPP.3.96.980501102022.3302B-100000.cygnus.gnu-win32@hp2.xraylith.wisc.edu>
References: <199805010127 DOT SAA17910 AT skaro DOT cygnus DOT com>
Mime-Version: 1.0
To: Geoffrey Noer <noer AT cygnus DOT com>
Cc: gnu-win32 AT cygnus DOT com

On Thu, 30 Apr 1998, Geoffrey Noer wrote:

> 
> The real piece or development work remaining with dll building is
> integrating dlltool into ld.  This is something we intend to do at
> some point (I hope sooner rather than later).
> 

Yes! On that note, I do have the patches to make GCC understand dllimport
and dllexport attributes which life a lot easier when dealing with DLLs.
Anybody who wants it, email. I have yet to integrat the patches into the
egcs development snapshots so that it makes it into egcs-1.1 release.

__attributes__((dllimport)): 
  - tested for C. Works as far as my tests go.
  - C++ is *very* problematic. For example the following will not work
    given the way the C++ front end works currently:
       
       // file scope.
       __attribute__((dllimport)) int dll_imported_variable;
       int* local_variable = &dll_imported_variable;
    
    There are other issues for C++ as well, and those will take a while to
    hash out.
  
__attributes__((dllimport)): 
  - Looks ok when I look at the disassembled output, but the problems
    won't show up until ld uses the .drectve export directives.


Regards,
Mumit -- khan AT xraylith DOT wisc DOT edu
http://www.xraylith.wisc.edu/~khan/

-
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