delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/13/18:55:00

Date: Sat, 13 Jan 96 16:43:01 MST
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: enoch AT terranet DOT terranet DOT ab DOT ca (Peter Plum)
Subject: Peter: Probelem with file: Parse error.

I receive the following error......

" GNU C++ Compile: BASM3.cpp
BASM3.cpp: In function `int main()':
BASM3.cpp:10: parse error before `{' "

...when compiling the following program BASM.CPP...

#include <stdio.h>
#define COUNT 55
void ShowCount( int cnt )
{
	printf("The count is %d!\n", cnt );
}
int main( void )
{
	asm
		{
		mov ax, COUNT
		push ax
#if defined(__TINY__) || defined(__SMALL__) || defined(__medium__) 
		call near ptr ShowCount
#else
		call far ptr ShowCount
#endif
		pop cx
		}
RETURN 0;
}



WHY????  Thanks in advance.
"In Him was life, and His life is the light of men
He came unto His own but His own received Him not
but He gave power to as many as would receive Him
to become the sons of God!"
Peter Plum
RR1 Site10 Box 10
Grande Prairie. AB 
T8V 2Z8
403 538 4713

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019