From: Matt E. <men...@me...> - 2006-02-27 15:50:36
|
From <http://lists.gnu.org/archive/html/libtool/2002-09/msg00145.html>: What does: gcc -shared -o hello.dll hello.o -Wl,--out-implib,libhello.dll.a take from the Makefile do? Specifically, why is the --out-implib linker directive needed? I tested it, and when removing it, everything still works. I suspect there exist significant docs for dll creation under MinGW, but I have yet to find them. eg, <http://www.mingw.org/docs.shtml#etc> has a reference to: How to make DLLs using GCC <http://www.nanotech.wisc.edu/~khan/software/gnu-win32/dllhelpers.html> ...but said link no longer exists, and I can't find the content anywhere else, let alone a google cache. Might someone help guide me through the mysteries of windows/mingw/gcc/g++ shared/dynamic library creation and management? -Matt |
From: Earnie B. <ea...@us...> - 2006-02-27 16:17:48
|
Quoting Matt England <men...@me...>: > Might someone help guide me through the mysteries of > windows/mingw/gcc/g++ shared/dynamic library creation and management? > Have you checked http://www.mingw.org/MinGWiki/index.php for help? Earnie Boyd ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Michael G. <mg...@te...> - 2006-02-27 16:19:18
|
> What does: >=20 > gcc -shared -o hello.dll hello.o -Wl,--out-implib,libhello.dll.a >=20 > take from the Makefile do? It creates an importlib with a somewhat unusual name. > Specifically, why is the --out-implib linker directive needed? Needed and needed. It comes handy if you wish to create an importlib as well. > I tested it, and when removing it, everything still works.=20 That is because gcc (more precisely ld) does not need an importlib. Check out the binutils info files and/or the archives of this list for a complete list of files checked to resolve references. I'm not sure but I think there's also an entry in the Wiki. You most likely will need an importlib if the DLL shall be linked against with e.g. MS VC++. > I suspect there exist significant docs for dll creation under MinGW, but = I=20 > have yet to find them. Searching the archives of this list as well as the mingwiki should provide you lots of info. > Might someone help guide me through the mysteries of windows/mingw/gcc/g+= +=20 > shared/dynamic library creation and management? http://www.mingw.org/MinGWiki/ Click on FAQ and scroll down. There are a couple of articles on DLLs. Best, Michael =2D-=20 Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |
From: Greg C. <chi...@co...> - 2006-02-27 16:19:54
|
On 2006-2-27 15:50 UTC, Matt England wrote: > From <http://lists.gnu.org/archive/html/libtool/2002-09/msg00145.html>: > > What does: > > gcc -shared -o hello.dll hello.o -Wl,--out-implib,libhello.dll.a > > take from the Makefile do? gcc -shared Create a shared library... -o hello.dll ...named 'hello.dll'... hello.o ...from object file 'hello.o' -Wl,--out-implib,libhello.dll.a and an import library named 'libhello.dll.a'. > Specifically, why is the --out-implib linker > directive needed? I tested it, and when removing it, everything still > works. If you link directly to the dll, then it's not needed. See: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html > I suspect there exist significant docs for dll creation under MinGW, but > I have yet to find them. > > eg, <http://www.mingw.org/docs.shtml#etc> has a reference to: > > How to make DLLs using GCC > <http://www.nanotech.wisc.edu/~khan/software/gnu-win32/dllhelpers.html> > > ...but said link no longer exists, and I can't find the content anywhere > else, let alone a google cache. Perhaps this mirror will help: http://programming.ccp14.ac.uk/ftp-mirror/programming/mumit-khan/pub/khan/gnu-win32/mingw32/misc/ |
From: Keith M. <kei...@to...> - 2006-02-27 16:47:11
|
Matt England wrote: > I suspect there exist significant docs for dll creation under MinGW, > but I have yet to find them. As both Earnie and Michael have suggested, your first port of call should *always* be http://www.mingw.org/MinGWiki/index.php > eg, <http://www.mingw.org/docs.shtml#etc> has a reference to: > > How to make DLLs using GCC > < http://www.nanotech.wisc.edu/~khan/software/gnu-win32/dllhelpers.html> > > ...but said link no longer exists, and I can't find the content > anywhere else, let alone a google cache. The disappearance of the reference should hint that the info there is likely to be obsolete; (and yes, we need to review our web pages to eliminate such defunct links -- ideally, I don't think we should post links to such potentially volatile resources; if we consider them valuable, then we should seek permission to host the content ourselves). That said, I found that referenced content here: http://web.archive.org/web/20050308115834/http://www.nanotech.wisc.edu/~khan/software/gnu-win32/dllhelpers.html HTH. Keith. |
From: Matt E. <men...@me...> - 2006-02-27 17:06:11
|
At 2/27/2006 10:34 AM, Keith MARSHALL wrote: >Matt England wrote: > > I suspect there exist significant docs for dll creation under MinGW, > > but I have yet to find them. > >As both Earnie and Michael have suggested, your first port of call >should *always* be http://www.mingw.org/MinGWiki/index.php That's great to know. If this is true, do we think this is worth noting in big, unavoidable text at the top of: http://www.mingw.org/docs.shtml ? Maybe note that docs.shtml is effectively replaced and/or a better source of info then docs.html? Or at least do something to merge/manage this content as such? Maybe take docs.html, merge it into the wiki, and then eliminate docs.html? -Matt |
From: Michael G. <mg...@te...> - 2006-02-27 18:22:34
|
> That's great to know. If this is true, do we think this is worth noting = in=20 > big, unavoidable text at the top of: >=20 > http://www.mingw.org/docs.shtml >=20 > ? Well, yes. But then it's not that the Wiki isn't mentioned in the same menu as the documentation page (read: it _can_ be found ;) One of the "problems" with the website and updating info there is that you need karma to change that while the Wiki can be changed without. So far none of those having karma decided to do that. Best, Michael =2D-=20 Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |
From: Earnie B. <ea...@us...> - 2006-02-27 19:22:03
|
Quoting Matt England <men...@me...>: > At 2/27/2006 10:34 AM, Keith MARSHALL wrote: >> Matt England wrote: >> > I suspect there exist significant docs for dll creation under MinGW, >> > but I have yet to find them. >> >> As both Earnie and Michael have suggested, your first port of call >> should *always* be http://www.mingw.org/MinGWiki/index.php > > That's great to know. If this is true, do we think this is worth > noting in big, unavoidable text at the top of: > > http://www.mingw.org/docs.shtml > > ? > > Maybe note that docs.shtml is effectively replaced and/or a better > source of info then docs.html? > > Or at least do something to merge/manage this content as such? Maybe > take docs.html, merge it into the wiki, and then eliminate docs.html? > Web site sources are available in CVS under htdocs. Submit patches to the SF patch tracker. Earnie Boyd ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |