News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Undefined label issue

Started by Vortex, May 03, 2026, 11:34:41 AM

Previous topic - Next topic

Vortex

Poasm Version 14.10.0 reports an error message while assembling the code below :

.386
.model flat,stdcall
option casemap:none

.code

    call    main
    ret

main PROC

    mov     eax,OFFSET sample
    ret

main ENDP

sample:

    db      'This is a test.',0

END

\PellesC\bin\poasm.exe /AIA32 sample.asm
sample.asm(12): error: Symbol 'sample' is undefined.
sample.asm(12): error: Symbol 'main.sample' is undefined.

This issue happens when a label is defined after a procedure.

Code it... That's all...

Pelle

IMO, this is a bit like asking for trouble.
I may do something about it some day, but I will be in no hurry to do so...
/Pelle

Vortex

Code it... That's all...