Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 03, 2011 .lib problem | ||||
---|---|---|---|---|
| ||||
what if the Win32 function I'm interested in don't seem to be in .lib provide by dmd... (for example vista & up windows function) Can I just use the .lib which come from the windows SDK? |
June 03, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lloyd Dupont | If you have coffimplib (which isn't free), then you could just convert the windows sdk import lib to OMF format. Otherwise, you can create an import library from a DLL. Find the DLL (e.g. kernel32.dll), and run: implib /s kernel32.lib kernel32.dll Then link with the new import lib. I think that should work. |
June 03, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Thanks I'll try tomorrow! :) (now I should really go to bed...) "Andrej Mitrovic" wrote in message news:mailman.565.1307117174.14074.digitalmars-d-learn@puremagic.com... If you have coffimplib (which isn't free), then you could just convert the windows sdk import lib to OMF format. Otherwise, you can create an import library from a DLL. Find the DLL (e.g. kernel32.dll), and run: implib /s kernel32.lib kernel32.dll Then link with the new import lib. I think that should work. |
June 03, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Where can I find this "implib" tool you mentioned? I have the latest Windows SDK and Visual Studio 2010. Yet when I perform a search in program files I can't find it!! :( "Andrej Mitrovic" wrote in message news:mailman.565.1307117174.14074.digitalmars-d-learn@puremagic.com... If you have coffimplib (which isn't free), then you could just convert the windows sdk import lib to OMF format. Otherwise, you can create an import library from a DLL. Find the DLL (e.g. kernel32.dll), and run: implib /s kernel32.lib kernel32.dll Then link with the new import lib. I think that should work. |
June 03, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lloyd Dupont | http://ftp.digitalmars.com/bup.zip Docs here: http://www.digitalmars.com/ctg/implib.html |
June 04, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Sweet, thanks you very much! :) "Andrej Mitrovic" wrote in message news:mailman.573.1307123755.14074.digitalmars-d-learn@puremagic.com... http://ftp.digitalmars.com/bup.zip Docs here: http://www.digitalmars.com/ctg/implib.html |
June 05, 2011 Re: .lib problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lloyd Dupont | My bad, coffimplib is actually free and downloadable from: http://ftp.digitalmars.com/coffimplib.zip It's coff2omf which isn't free, that one converts actual object code (not import libraries) to OMF. Sometimes coffimplib works better than implib so you might want to have that in mind. |
Copyright © 1999-2021 by the D Language Foundation