flat assembler
Message board for the users of flat assembler.

Index > Windows > Beginner and undefined symbol error

Author
Thread Post new topic Reply to topic
casey



Joined: 18 Aug 2005
Posts: 35
casey 16 Sep 2005, 23:39
Hi all,

When I typed in Sulaiman Chang's version Iczelion's
A Simple Window I got a few errors,

First was: include '%fasminc%\win32a.inc'
which I fixed with: include '%include%\win32a.inc'

Next was a return which I fixed with ret and
now another problem,

X Error: undefined symbol
instruction:
call[LoadCursor]
source:
SimpleWindow.ASM [29]
proc32.inc [20]

I tracked proc32.inc to c:\fasmw\include\MACRO
which didn't contain any LoadCursor.

It tried replacing it from the TEMPLATE found
in the EXAMPLES folder without success?


; invoke LoadCursor, NULL, IDC_ARROW
invoke LoadCursor,0,IDC_ARROW

The TEMPLATE example does compile and run ok.

Any suggestions?

Regards,
John Casey
Post 16 Sep 2005, 23:39
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 17 Sep 2005, 08:23
change the line:
Code:
'%include%\win32a.inc'    

to
Code:
'%include%\win32ax.inc'    

and recompile
Post 17 Sep 2005, 08:23
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 17 Sep 2005, 10:35
hi casey... sorry for all the troubles
i guess 90% of the translated code don't work already.. coz some changes in fasm.

i try to see if i could do an update...
but.. that means. everytime fasm updates, i need to update also Smile
Post 17 Sep 2005, 10:35
View user's profile Send private message Visit poster's website Reply with quote
casey



Joined: 18 Aug 2005
Posts: 35
casey 17 Sep 2005, 11:10
Thanks guys,

It is working now. Apart from a need to change %fasminc% to %include%
and return to ret, the only problem was a typo. I left out the line in the
section '.idata' containing the LoadCursor! I typed the source in with
the idea that I was learning better that way instead of a simple cut,paste.

Regards,

John
Post 17 Sep 2005, 11:10
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.