From: dale.smith@bellhow.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.2093.rocketmail@send1b.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
To: gnu-win32@cygnus.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@4
00000000 T MSFL1_FindDataDate@16
00000000 T MSFL1_FindDataRec@12
00000000 T MSFL1_GetCurrentDataPos@12
00000000 T MSFL1_GetDataPath@12
00000000 T MSFL1_GetDataRecordCount@8
00000000 T MSFL1_GetDirNumberFromHandle@8
00000000 T MSFL1_GetDirectoryNumber@8
00000000 T MSFL1_GetDirectoryStatus@12
00000000 T MSFL1_GetErrorMessage@12
00000000 T MSFL1_GetFirstSecurityInfo@8
00000000 T MSFL1_GetLastFailedLockInfo@12
00000000 T MSFL1_GetLastFailedOpenDirInfo@8
00000000 T MSFL1_GetLastSecurityInfo@8
00000000 T MSFL1_GetMSFLState@0
00000000 T MSFL1_GetNextSecurityInfo@8
00000000 T MSFL1_GetPrevSecurityInfo@8
00000000 T MSFL1_GetRecordCountForDateRange@16
00000000 T MSFL1_GetSecurityCount@8
00000000 T MSFL1_GetSecurityHandle@8
00000000 T MSFL1_GetSecurityID@8
00000000 T MSFL1_GetSecurityInfo@8
00000000 T MSFL1_GetSecurityLockedStatus@12
00000000 T MSFL1_Initialize@12
00000000 T MSFL1_LockSecurity@8
00000000 T MSFL1_OpenDirectory@12
00000000 T MSFL1_ReadDataRec@8
00000000 T MSFL1_SeekBeginData@4
00000000 T MSFL1_SeekEndData@4
00000000 T MSFL1_Shutdown@0
00000000 T MSFL1_UnlockSecurity@4
00000000 T MSFL2_GetSecurityHandles@20
00000000 T MSFL2_ReadBackMultipleRecs@20
00000000 T MSFL2_ReadDataRec@16
00000000 T MSFL2_ReadMultipleRecs@20
00000000 T MSFL2_ReadMultipleRecsByDates@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.smith@bellhow.com
Cleveland Linux Users Group: http://cleveland.lug.net/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
