digitalmars.D.bugs - Are dll-imported functions broken?
- Serg Kovrov (15/15) Feb 18 2007 This either really nasty bug or I'm hopelessly lost.
- Bill Baxter (6/26) Feb 18 2007 I've never used coffimplib. But implib (which goes from either a .def
- Serg Kovrov (6/13) Feb 18 2007 Ok, I have tried implib as
- Serg Kovrov (4/6) Feb 19 2007 Whenever it caused by, its a bug. I have filled an issue in bugzilla.
This either really nasty bug or I'm hopelessly lost. I have described my problems in "libpng dll functions weird behaviour" thread (era18v$2rrd$1 digitalmars.com) in learn group. http://digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=6528 I have set up extremely simple test case reproducing misbehavior (at least for me): 0. Extract attached archive to project directory. 1. Compile visualstudio project. 2. Copy dll and lib to projects folder. 3. Run `coffimplib.exe -f dlltest.lib`. 4. Run `make_d.cmd` to compile D test program. Run test.exe to see if output is, or is not expected "dlltest.get_test():123" -- serg.
Feb 18 2007
Serg Kovrov wrote:This either really nasty bug or I'm hopelessly lost. I have described my problems in "libpng dll functions weird behaviour" thread (era18v$2rrd$1 digitalmars.com) in learn group. http://digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.l arn&article_id=6528 I have set up extremely simple test case reproducing misbehavior (at least for me): 0. Extract attached archive to project directory. 1. Compile visualstudio project. 2. Copy dll and lib to projects folder. 3. Run `coffimplib.exe -f dlltest.lib`. 4. Run `make_d.cmd` to compile D test program. Run test.exe to see if output is, or is not expected "dlltest.get_test():123"I've never used coffimplib. But implib (which goes from either a .def or .dll directly) has worked for me. http://www.prowiki.org/wiki4d/wiki.cgi?DigitalMarsTools http://ftp.digitalmars.com/bup.zip --bb
Feb 18 2007
Bill Baxter wrote:I've never used coffimplib. But implib (which goes from either a .def or .dll directly) has worked for me. http://www.prowiki.org/wiki4d/wiki.cgi?DigitalMarsTools http://ftp.digitalmars.com/bup.zip --bbOk, I have tried implib as `implib.exe /s dlltest.lib dlltest.dll` Same results. Could you confirm is this a bug or not? -- serg.
Feb 18 2007
Serg Kovrov Wrote:I have described my problems in "libpng dll functions weird behaviour" thread (era18v$2rrd$1 digitalmars.com) in learn group.Whenever it caused by, its a bug. I have filled an issue in bugzilla. -- serg.
Feb 19 2007