Re: Making a DLL with a static library dependency

2009-12-17 Thread Phil Deets
On Thu, 17 Dec 2009 08:32:41 -0500, Phil Deets wrote: On Tue, 15 Dec 2009 00:56:12 -0500, Phil Deets wrote: (D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the libra

Re: Making a DLL with a static library dependency

2009-12-17 Thread Phil Deets
On Tue, 15 Dec 2009 00:56:12 -0500, Phil Deets wrote: (D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the library name from the command-line, dmd gives linker errors an

Re: Making a DLL with a static library dependency

2009-12-15 Thread Kagamin
Trass3r Wrote: > I'm not sure if the Windows loader does such chained DLL loading. > But you can always use LoadLibrary & GetProcAddress for that purpose. Well... dll that can't call any function from kernel32.dll is practically useless.

Re: Making a DLL with a static library dependency

2009-12-15 Thread Phil Deets
On Tue, 15 Dec 2009 07:06:49 -0500, Trass3r wrote: Phil Deets schrieb: Actually, it depends on another DLL. The static library I need to link to is an import library for that DLL. I'll work on loading that DLL without the .lib file using the Windows API while I wait for an answer here.

Re: Making a DLL with a static library dependency

2009-12-15 Thread Trass3r
Phil Deets schrieb: Actually, it depends on another DLL. The static library I need to link to is an import library for that DLL. I'll work on loading that DLL without the .lib file using the Windows API while I wait for an answer here. I'm not sure if the Windows loader does such chained DLL

Re: Making a DLL with a static library dependency

2009-12-14 Thread Phil Deets
On Tue, 15 Dec 2009 00:56:12 -0500, Phil Deets wrote: (D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the library name from the command-line, dmd gives linker errors an

Making a DLL with a static library dependency

2009-12-14 Thread Phil Deets
(D 2.033) I'm porting a DLL to D. The DLL depends on a static library, but when I put the library name on the command-line, dmd does not output any DLL file. If I remove the library name from the command-line, dmd gives linker errors and outputs an invalid DLL. How do I make a DLL with a st