Mail Archives: djgpp/1998/10/29/21:57:59
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
- Raw text -