??Test
    ?  Test.rap
    ? 
    ??Res
    ?      Test.rc
    ?      Test.RES
    ?     
    ??Inc
    ?      Test.Inc
    ?     
    ??Asm
    ?      Test.Asm
    ?     
    ??Lib
    ?      aplib.lib
    ?     
    ??Release


I've created a project with the above tree structure, which locates different types of file in their respective folder. In the main .asm file 'Test.asm' I tried including the main .inc file 'Test.inc' from the Inc Folder as below, as I usually did without an IDE like RadAsm.

include Test.inc
include Inc\Test.inc
include ..\Inc\Test.inc

But it seems that none of the above statements works for RadAsm. The Output window delivered the failure info unexceptionally:

Asm\Test.Asm(5) : fatal error A1000: cannot open file : Test.inc
or
Asm\Test.Asm(5) : fatal error A1000: cannot open file : Inc\Test.inc
or
Asm\Test.Asm(5) : fatal error A1000: cannot open file : ..\Inc\Test.inc

It may probably be the same case if I include a .lib file from the Lib Folder. I'm really baffled...
How can I deal with the trouble in RadAsm?

Regards,
cyclotron

Posted on 2005-10-01 07:17:08 by cyclotron
Hi cyclotron

Yes masm gets confused.
Just give the full path and masm will not get confused.

KetilO
Posted on 2005-10-01 09:45:07 by KetilO
use:
include .\inc\Test.inc

include Test.inc ; the file is "yourprojectpath\test\asm\Test.inc"
include Inc\Test.inc; the file is "yourprojectpath\test\asm\inc\Test.inc"
include ..\Inc\Test.inc; the file is "yourprojectpath\inc\Test.inc"

drizz
Posted on 2005-10-01 10:45:53 by drizz
Thanks to Ketilo. Sure. Full path works universally ;)

Hi, drizz. Thanks for your simplified solution  8)

Regards,
cyclotron


Posted on 2005-10-01 11:14:34 by cyclotron