Solved

Error A2006: Undefined symbol:

Posted on 2004-09-26
7
833 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
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Part One of the two-part Q&A series with MalwareTech.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

624 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