Mail Archives: djgpp/1997/01/16/15:27:16
Hello there.
First, I would say "thank you very much" to DJ Delorie for his superb
C/C++ compiler.
I am used to working with Borland Pascal libraries and I am beginning
C++, but i've got many problems in compiling libraries ...
First, when i use RHIDE, i change "main target name" to LIBxxx.A
en then use COMPILE and LINK. The problem is that i often get an empty
file (around 8 bytes) ?!?, but not at each time. Where is my error ?
Another day, i tried to insert ASM code into my library. I made the
next things :
write code (i am not used with At&T syntax, but I made it!)
compile to an OBJ file (OK)
compile the rest of the library in an OBJ file (OK)
link the obj with ar (binutils, no error)
And when i try to use this library, the compiler cannot find the
function ... ar says that LIBxxx.A contains all files.
I did so :
in the header file :
#define USI unsigned short int
...
Pic2Buf(char * pic, char * buf, USI xp, USI yp, char zval);
in the asm file :
...
.globl Pic2Buf (I even tried _Pic2Buf)
...
Pic2Buf: (here too : i tried _Pic2Buf)
pushl eax ...
Perhaps you are thinking my question is stupid, but can anybody help
me ?
Thank you very much
DASH
****** SORRY FOR MY BAD ENGLISH ******
- Raw text -