Please. I try to write in C my old assembler program amd dont know how to overcom the next.
In assembler it is possible to write label_A: ; ....any... dw label_A ; dw label_B ; label_B: ; ....any...
But in C the equivalent code char code item1 [ 17 ] = "aaa"; void* code ref1 = &item1; void* code ref2 = &item2; char code item2 [ 17 ] = "bbb"; gives Error C202 'item2': undefined identifier
Would somebody direct me? Thanks in advance. Yury.
Hello guys. I have solved my own problem. My solve is not the best, but ir works. May be somebody knows any more elegant way? I would be thankful. Yury
"May be somebody knows any more elegant way?"
As Per said, this is impossible to answer without knowing what your "inelegant" way is!
However, as I said before, what you really need to do is to learn to write 'C' programs in 'C' - not to just use 'C' as a glorified assembler.
There is an old joke that says, "A Real Programmer can write FORTAN in any language!" :-0