From: damien diederen Newsgroups: comp.os.msdos.djgpp Subject: Library linking problem Date: Thu, 16 Jan 1997 10:40:56 +0100 Organization: Université de Liège Lines: 47 Message-ID: <32DDF7A8.3074@pop3.student.ulg.ac.be> Reply-To: s961135 AT student DOT ulg DOT ac DOT be NNTP-Posting-Host: sdet27.student.ulg.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 ******