| delorie.com/archives/browse.cgi | search |
| 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 |
| X-Authentication-Warning: | yakko.chicks.net: chicks owned process doing -bs |
| Date: | Sat, 21 Jul 2001 14:41:30 -0400 (EDT) |
| From: | Christopher Hicks <chicks AT chicks DOT net> |
| To: | Cygwin Discussion List <cygwin AT cygwin DOT com> |
| Subject: | Fixed making DLL, but can't get rid of @n weirdness |
| In-Reply-To: | <Pine.LNX.4.33.0107201846380.15277-100000@yakko.chicks.net> |
| Message-ID: | <Pine.LNX.4.33.0107211431070.25320-100000@yakko.chicks.net> |
| Organization: | Flamingo Internet Navigators |
| MIME-Version: | 1.0 |
On Fri, 20 Jul 2001, Christopher Hicks wrote:
> I've tried following the instructions on creating DLL's under win32 found
> at:
> http://www.cs.mu.oz.au/~fjh/gnu-win32/how-to-build-dlls.html
> I've run into a minor problem and I wonder if someone may have seen it
> before.
I found much better documentation at
http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/index.html
so I've finally been able to create a DLL!
But regardless of what options I've tried to provide to dlltool and
dllwrap it's still adding @/n/ to the symbols.
If I use --add-stcall-alias, it's there:
dlltool --add-stdcall-alias --export-all --output-def pal2bsv.def bsvinit.o submit.o genfunc.o dataident.o itoa.o main.o
dllwrap --driver-name gcc --def pal2bsv.def --add-stdcall-alias -o pal2bsv.dll bsvinit.o submit.o genfunc.o dataident.o itoa.o main.o
nm -g pal2bsv.dll | grep Init
692c1018 T _InitiateSession AT 4
If I use -k, it's there:
dlltool -k --export-all --output-def pal2bsv.def bsvinit.o submit.o genfunc.o dataident.o itoa.o main.o
dllwrap --driver-name gcc --def pal2bsv.def -k -o pal2bsv.dll bsvinit.o submit.o genfunc.o dataident.o itoa.o main.o
nm -g pal2bsv.dll | grep Init
692c1018 T _InitiateSession AT 4
Ugh! Any clues?
--
</chris>
Given enough time and money, eventually Microsoft will re-invent UNIX.
-- From a Slashdot.org post
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |