Well, the title says it all. It's like "import" doesn't exists at all, but it's documented in the official manual. It worked before.. Has someone had this problem?
Well, the title says it all. It's like "import" doesn't exists at all, but it's documented in the official manual. It worked before.. Has someone had this problem?
NO ONE had this problem?
For example:
I get the mentioned error at the 'import' lines.Code:[BITS 32]
SEGMENT .idata
extern _printf
import printf msvcrt.dll _printf
extern _ExitProcess
import ExitProcess kernel32.dll _ExitProcess
SEGMENT .data
fmt db "%d\0"
SEGMENT .text
global main
main:
push word 100
push [fmt]
call printf
add ebp, byte 8
push 1
call ExitProcess
Found the mistake.. 'import' only works with the 'obj' format. That format has problems with LD and some other linkers so I've used ALINK for producing an .exe. Works like a charm. :)
Yea, I have also ended up using ALINK to make win32 binaries -- using the 'extern' directive to specify externals. I suppose the import format you have is similar. I also found that gcc would link the binaries but I could not get win32 api linkage using the gcc. Also, I use these import libraries on the alink website Download page and they do not work in the gcc
Did you get both the CRT printf and the Win32 functions working? I can't get them to both work same time for these issues