最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

assembly - error else import32.inc with find files with FASM version 1.73.32 - Stack Overflow

programmeradmin2浏览0评论

I try to find files with fasm version 1.73.32 , the source code can be found at this paste source code.

The error comes with : Unexpected instruction 'else' at line 99.

Any idea why this not work ?

See this :

import kernel32,\
       GetModuleHandle,'GetModuleHandleA',\
       ExitProcess,'ExitProcess',\
       FindFirstFile,'FindFirstFileA',\
       FindNextFile,'FindNextFileA',\
       FindClose,'FindClose' 

... into import32.inc is this else at:

macro import name,[label,string]
 { common
    rb (- rva $) and 3
    if defined name#.referred
     name#.lookup:
   forward
     if used label
      if string eqtype ''
       local _label
       dd RVA _label
      else  ...
enter code here

I try to find files with fasm version 1.73.32 , the source code can be found at this paste source code.

The error comes with : Unexpected instruction 'else' at line 99.

Any idea why this not work ?

See this :

import kernel32,\
       GetModuleHandle,'GetModuleHandleA',\
       ExitProcess,'ExitProcess',\
       FindFirstFile,'FindFirstFileA',\
       FindNextFile,'FindNextFileA',\
       FindClose,'FindClose' 

... into import32.inc is this else at:

macro import name,[label,string]
 { common
    rb (- rva $) and 3
    if defined name#.referred
     name#.lookup:
   forward
     if used label
      if string eqtype ''
       local _label
       dd RVA _label
      else  ...
enter code here
Share Improve this question asked Mar 4 at 13:33 Cătălin Gee FeștilăCătălin Gee Feștilă 1,56932 silver badges51 bronze badges 1
  • board.flatassembler/topic.php?t=23766 same issue – Cătălin Gee Feștilă Commented Mar 28 at 18:52
Add a comment  | 

1 Answer 1

Reset to default 3

The error message is a red herring. The problem is that including win32a.inc defines a macro called directory which conflicts with your use of proc GetFileList, directory, buffer. Rename your argument or purge the macro if you don't need it.

PS: Fixing that I get other errors. If you can't get it to work, post separate question about those.

发布评论

评论列表(0)

  1. 暂无评论