Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Wed, 24 Nov 99 15:23:40 GMT From: peter AT telnet-research DOT co DOT uk (Peter Hudson +44 1892 541 720) Message-Id: <9911241523.AA21571@telnet-research.co.uk> To: cygwin AT sourceware DOT cygnus DOT com Subject: Dlls @n symbols in Sybase I am trying to write a Cygwin application that uses a Sybase Open Client DLL (libsybdb.dll). Just about all of its symbols in the .lib file end with @ I have created a .a following the standard Cygwin documentation, with the addition of --add-stdcall-alias . However, if I then do an 'nm' on the resulting .a , the aliases without @ aren't there, so my link fails with undefined symbols. My exact commands are: echo EXPORTS > LIBSYBDB.def nm LIBSYBDB.lib | grep ' T _' | sed -e 's/.* T _//' >> LIBSYBDB.def dlltool -v --add-stdcall-alias --def LIBSYBDB.def --dllname LIBSYBDB.dll \ --output-lib LIBSYBDB.a I have also experimented with --kill-at , but this makes no difference. I have also manually edited the .def file, following a suggestion in the mail archive, by adding this sort of aliasing: LIBRARY sample EXPORTS Bar AT 0 Bar=Bar AT 0 Foo AT 24 Foo=Foo AT 24 This overcomes the undefined symbols at link time. But at runtime, the stack gets corrupted ('where' in gdb becomes corrupt). My main issue here is that --add-stdcall-alias does not seem to have any effect. Why might that be? Thanks for any suggestions. Peter Hudson Telnet Research Ltd -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com