Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.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@chicks.net>
To: Cygwin Discussion List <cygwin@cygwin.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
Content-Type: TEXT/PLAIN; charset=US-ASCII

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@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@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/

