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
Solved

Error A2006: Undefined symbol:

Posted on 2004-09-26
7
770 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
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Binary Bomb/GDB Questions 10 1,920
Bufbomb Phase 2: Firecracker 13 9,242
display grid over jpg picture 35 440
SQL Server RDS clr assembly 4 70
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
This article describes how to reset your Windows 10 password when you've forgotten it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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