The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Pelle's C compiler and tools => Topic started by: Ficko on September 18, 2009, 11:59:23 AM

Title: Polib not assuming machine type
Post by: Ficko on September 18, 2009, 11:59:23 AM
If you make an import library with "polib" on a 64-bit system and do not specify "/MACHINE" like


polib.exe kernel32.dll /out:kernel32.lib


you will get a warning that

Quote
/MACHINE not specified; assuming x86.

but actually this "assuming" does not takes place.
You have to specify /MACHINE:x86
Title: Re: Polib not assuming machine type
Post by: GregL on September 19, 2009, 03:14:05 AM
Quote from: POLIB Help - /MACHINEThe library manager can usually deduce this by looking into the object file(s), but sometimes this must be done manually (when creating an import library from a module-definition file, for example).

If it says it's assuming x86 then it should actually do it.

Post about it over at the Pelle's C Forum (http://forum.pellesc.de/index.php).