Solved

Error A2006: Undefined symbol:

Posted on 2004-09-26
7
725 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
Comment Utility
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
Comment Utility
To add to Stefan's comment:
Try also
  0FFFFFFFFh
0
 

Author Comment

by:icysmarty
Comment Utility
Stefan, I tried that few times but it didn't work.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:icysmarty
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Binary bomb phase 3 10 1,988
assembly, call a function, math 7 486
Binary Bomb/GDB Questions 10 1,881
Return (ret) value over-writing on x64 8 660
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now