I am trying to use LINK.EXE with nasm I keep getting the error that my imports can't be found. Any LINK gurus know how I could overcome this? I have tried my LIBPATH set to the masm lib and the nasm win32.lib. still it says there unreferenced.
EXAMPLE....
error LNK2001: unresolved external symbol GetModuleHandleA
Thanks for any help on this one.
It will depend on how the libraries in NASM are built. To use any of the API functions you will need some valid way to access them otherwise other libraries that assume API functions being available will fail for this reason.
OS,
For NASM I think it would be easier to use GoLink, available here:
http://www.jorgon.freeserve.co.uk/
You would need to provide extern directives for the called functions in the NASM source, and list the files containing the exports on the GoLink command line.
I had some time figuring this out look below.
OKay figured it out, needed to use type win32 command on the assembler and make sure all my data was classed as DATA because golink was mangling it.