Sender: nate AT cartsys DOT com Message-ID: <36392A7D.D744B150@cartsys.com> Date: Thu, 29 Oct 1998 18:54:54 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Problem compiling References: <3638D91F DOT 2189EFE7 AT badger1 DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Thrawn wrote: > > I'm having a problem compiling a C++ program and it's driving me > insane!! Ok, I have 4 > files. The first is a assembly file(fixed.asm) containing some inline > functions used by an object. > The object is defined in another file(fixedp.h) and the member functions > are defined in another(fixedp.cpp). > The final file is a tester file(main.cpp). I use NASM to compile the > assembly file into an object file. I I then compile the object. Then the > tester program. All of this works ok, but when I try to link all the > object files into the finished executable, I get an undefined reference > to an operator I defined in fixedp.cpp. The definition should have been > in fixedp.o, but the compiler doesn't seem to find it there, what's > wrong? Can you post a small example, with the different files and the command(s) used to compile, and the output of the compile? I think it would help. -- Nate Eldredge nate AT cartsys DOT com