Solved

Error A2006: Undefined symbol:

Posted on 2004-09-26
7
806 Views
Last Modified: 2008-01-09
Hi,

There is a weird issue in my assembly program. When I link the assembly file, an error says "Error A2006: Undefined symbol :FFFFFFFFh"

I did define this as a dd in .data area.
And, I found that whenever I define values greater than 10 (a , b,c,d,e,f in hex) , it gives me this error. How am I suppose to fix it?
0
Comment
Question by:icysmarty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 12158725
Hi icysmarty,

You didb't specify which asm you use.

Did you try the C-like 0xffffffff notation? Or you can try $ffffffff.

Cheers!

Stefan
0
 
LVL 11

Accepted Solution

by:
dimitry earned 125 total points
ID: 12160447
To add to Stefan's comment:
Try also
  0FFFFFFFFh
0
 

Author Comment

by:icysmarty
ID: 12161645
Stefan, I tried that few times but it didn't work.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:icysmarty
ID: 12161653
OH YEAH! It works now..
dimitry, I put an '0' in front and now it works like charm.
Why can't I jsut put FFFFFFFFh??
0
 
LVL 11

Expert Comment

by:dimitry
ID: 12162268
Assembler needs somehow to distinguish between variable names and numbers.
FFFFFFFFh is valid variable name... And in MASM, TASM or NASM they decided to do this way.
0
 

Author Comment

by:icysmarty
ID: 12162345
i see...
last quick question, if I do not specify a number by either d(decimal), h(hex), b(binary),
what will the assembly recognize it as?

Like 037AF – 861273 – 0FFFFFFFF + 1111111?
0
 
LVL 11

Expert Comment

by:dimitry
ID: 12162462
I suspect that it will be an error.
Decimal is: {0-9}*
Hex is : 0{0-9,A-F}*h
So 037AF is illegal number, but maybe "clever" compiler will set it as 037AFh automatically because of A and F...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question