Mail Archives: djgpp/1994/05/03/06:16:01
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 -