www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - implib crashing with .def files

reply Andrej Mitrovic <andrej.mitrovich none.com> writes:
I don't know where else to post this.

I downloaded implib with the "bup" package, I've found it on this NG
(ftp://digitalmars.com/bup.zip). 

Anyway, implib works fine when I need to make an OMF import library out of a
DLL made in e.g. Visual Studio. But it crashes if I specify the .def file
instead of the .dll. This seems to happen regardless of whether the DLL is
there or not. For example here's a simple .def file (disregard the -----'s):

portaudio.def
-----------------------
EXPORTS

;
Pa_GetVersion                        1
Pa_GetVersionText                    2
Pa_GetErrorText                      3                 
Pa_Initialize                        4
Pa_Terminate                         5
Pa_GetHostApiCount                   6
Pa_GetDefaultHostApi                 7
Pa_GetHostApiInfo                    8
Pa_HostApiTypeIdToHostApiIndex       9
Pa_HostApiDeviceIndexToDeviceIndex   10
Pa_GetLastHostErrorInfo              11
Pa_GetDeviceCount                    12
Pa_GetDefaultInputDevice             13
Pa_GetDefaultOutputDevice            14
Pa_GetDeviceInfo                     15
Pa_IsFormatSupported                 16
Pa_OpenStream                        17
Pa_OpenDefaultStream                 18
Pa_CloseStream                       19
Pa_SetStreamFinishedCallback         20
Pa_StartStream                       21
Pa_StopStream                        22
Pa_AbortStream                       23
Pa_IsStreamStopped                   24
Pa_IsStreamActive                    25
Pa_GetStreamInfo                     26
Pa_GetStreamTime                     27
Pa_GetStreamCpuLoad                  28
Pa_ReadStream                        29
Pa_WriteStream                       30
Pa_GetStreamReadAvailable            31
Pa_GetStreamWriteAvailable           32
Pa_GetSampleSize                     33
Pa_Sleep                             34
PaAsio_GetAvailableLatencyValues     50
PaAsio_ShowControlPanel              51
PaUtil_InitializeX86PlainConverters  52
PaAsio_GetInputChannelName           53
PaAsio_GetOutputChannelName          54
PaUtil_SetDebugPrintFunction         55
--------------------------------

Using: implib output.lib portaudio.def

The usual Windows crash dialog appears.

Btw. is implib really free? Because I don't see a direct link to a download on
the C++ tools page, yet I've found this link to "bup.zip" in the newsgroups.
Oct 17 2010
parent reply Kagamin <spam here.lot> writes:
Andrej Mitrovic Wrote:

 Using: implib output.lib portaudio.def
 
 The usual Windows crash dialog appears.
You should use coffimplib instead and convert .lib import library of your dll.
Oct 18 2010
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
That's ok, using the DLL with implib works, but crashing is never nice.

I don't think coffimplib is available for download however?

On 10/18/10, Kagamin <spam here.lot> wrote:
 Andrej Mitrovic Wrote:

 Using: implib output.lib portaudio.def

 The usual Windows crash dialog appears.
You should use coffimplib instead and convert .lib import library of your dll.
Oct 18 2010
parent Kagamin <spam here.lot> writes:
Andrej Mitrovic Wrote:

 That's ok, using the DLL with implib works, but crashing is never nice.
 
 I don't think coffimplib is available for download however?
it's in that same ftp directory, though I don't know, whether it's piracy or not, lol.
Oct 19 2010