From: dale DOT smith AT bellhow DOT com (Dale Smith) Subject: Re: mingw32 and 3rd party .dll's 30 Mar 1998 02:20:20 -0800 Message-ID: <351a40d7.14402509.cygnus.gnu-win32@mailhost> References: <19980325010157 DOT 2093 DOT rocketmail AT send1b DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit To: gnu-win32 AT cygnus DOT com On Tue, 24 Mar 1998 17:01:57 -0800 (PST), you wrote: >Hi Dale, > >Make sure that the Microsoft .lib function actually has the @4 and not >the @1. To do this: > >nm --demangle --defined-only someMSlib.lib | grep CloseDirectory > >You can only do the with the MS .lib not the Borland .lib, they have >different formats or headers. My guess is that the .def is incorrect. > It is just a guess. Here is the output from: w32-nm --demangle --defined-only MSFL65.LIB | grep ' T ' 00000000 T MSFL1_CloseDirectory AT 4 00000000 T MSFL1_FindDataDate AT 16 00000000 T MSFL1_FindDataRec AT 12 00000000 T MSFL1_GetCurrentDataPos AT 12 00000000 T MSFL1_GetDataPath AT 12 00000000 T MSFL1_GetDataRecordCount AT 8 00000000 T MSFL1_GetDirNumberFromHandle AT 8 00000000 T MSFL1_GetDirectoryNumber AT 8 00000000 T MSFL1_GetDirectoryStatus AT 12 00000000 T MSFL1_GetErrorMessage AT 12 00000000 T MSFL1_GetFirstSecurityInfo AT 8 00000000 T MSFL1_GetLastFailedLockInfo AT 12 00000000 T MSFL1_GetLastFailedOpenDirInfo AT 8 00000000 T MSFL1_GetLastSecurityInfo AT 8 00000000 T MSFL1_GetMSFLState AT 0 00000000 T MSFL1_GetNextSecurityInfo AT 8 00000000 T MSFL1_GetPrevSecurityInfo AT 8 00000000 T MSFL1_GetRecordCountForDateRange AT 16 00000000 T MSFL1_GetSecurityCount AT 8 00000000 T MSFL1_GetSecurityHandle AT 8 00000000 T MSFL1_GetSecurityID AT 8 00000000 T MSFL1_GetSecurityInfo AT 8 00000000 T MSFL1_GetSecurityLockedStatus AT 12 00000000 T MSFL1_Initialize AT 12 00000000 T MSFL1_LockSecurity AT 8 00000000 T MSFL1_OpenDirectory AT 12 00000000 T MSFL1_ReadDataRec AT 8 00000000 T MSFL1_SeekBeginData AT 4 00000000 T MSFL1_SeekEndData AT 4 00000000 T MSFL1_Shutdown AT 0 00000000 T MSFL1_UnlockSecurity AT 4 00000000 T MSFL2_GetSecurityHandles AT 20 00000000 T MSFL2_ReadBackMultipleRecs AT 20 00000000 T MSFL2_ReadDataRec AT 16 00000000 T MSFL2_ReadMultipleRecs AT 20 00000000 T MSFL2_ReadMultipleRecsByDates AT 24 Notice that *all* the numbers are multiples of four. Methinks that gcc is in error, the number should be the amount of stack the args use, not the sum of the sizeof() the arguments. Dale -- Dale P. Smith dale DOT smith AT bellhow DOT com Cleveland Linux Users Group: http://cleveland.lug.net/ - 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".