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?
Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.
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
Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.
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.
Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.
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