delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/03/06:16:01

From: wymanm AT cork DOT cig DOT mot DOT com (Mark Wyman(AH))
Date: Tue, 3 May 1994 10:30:31 +0100
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Problem with GAS :)

How do you use .S files with the C++ compiler?

I have some functions written in GAS format that I used fine with
the C compiler.  However, when I switched over to doing C++ I
can't get the compiler to recognize the assembly functions.

For example, one of my routines is _SetPalette.  I included the
.S file in the makefile (first thing I looked for :) ) and called
_SetPalette from one of the .cc files.  Error came up saying unknown
identifier.  I assembled the .cc file into a .S file to see what it
was doing and it is trying to call _SetPalette__FlllPC.

Anyone know how to get it to recognize _SetPalette without renaming
_SetPalette to _SetPalette__FlllPc?

Thanks,
Mark

- Raw text -


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