The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: LiaoMi on July 10, 2016, 01:41:04 AM

Title: maxStruct level
Post by: LiaoMi on July 10, 2016, 01:41:04 AM
Hallo,

what is the maximum level of nested structures? The compiler reports that the structure incorrectly defined, but here everything is right!

Regards
Title: Re: maxStruct level
Post by: qWord on July 10, 2016, 01:51:51 AM
Types must be declared before their usage.**
You must change the order of declaration. RMc is not defined anywhere.


**only exception: forward declaration with structure pointers, e.g. PS typedef ptr S where S is not declared so far.

Title: Re: maxStruct level
Post by: qWord on July 10, 2016, 01:59:43 AM
Quote from: LiaoMi on July 10, 2016, 01:41:04 AMThe compiler reports
MASM, JWasm, HJwasm, ... are Assemblers :icon_exclaim:
Title: Re: maxStruct level
Post by: LiaoMi on July 10, 2016, 02:22:02 AM
Hallo qWord,

RMc can be deleted, this is another series of similar structures which will generate an error. Thank you, the order indeed solves the problem. Apparently I've long did not write anything, but I do not recall that I faced with such difficulty.

Quote from: qWord on July 10, 2016, 01:59:43 AM
Quote from: LiaoMi on July 10, 2016, 01:41:04 AMThe compiler reports
MASM, JWasm, HJwasm, ... are Assemblers :icon_exclaim:

Thank you for the correction  :icon14: