Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

irregular Tasm fatal error

Status
Not open for further replies.

MechanicalBoy

Technical User
Aug 11, 2002
11
0
0
PL
Hi all.
I posted a few days ago a question relevant to assembler statements. I had a problem with following warning & error:
[C++ Warning] Unit1.cpp(14): W8002 Restarting compile using assembly.
[Tasm Fatal Error] Invalid command line.

Now i know that
Code:
#pragma option -w-asc  // causes that compiler expect assembler statements
suppres the first warning.
But what about this fatal error ?
It is really interesting, becouse this error doesn't appear when I start new application and type such simple code:

__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
asm mov ax,5
}
//----------------------------------------------------------

there is no errors during compilation and everything works normal. But when i use "asm" directive within another application & in many modules
[Tasm Fatal Error] Invalid command line.
appear as i press F-9

If anybody use "asm" directive ,.. please tell me what compiler flags need to be set to suppres this annoying error.

THX in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top