[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error: undefined reference to
From: |
Ben Rennigen |
Subject: |
Error: undefined reference to |
Date: |
Thu, 4 Nov 2004 00:45:14 +0100 |
Hello,
when I try to compile my (really small) program, I get the following error:
/tmp/cchMgpeQ.o(.text+0x24): In function `main':
: undefined reference to `Complex::Complex[in-charge](float, float)'
collect2: ld returned 1 exit status
"Complex" is my class, declared in "complex.h" and implemented in
"complex.cpp", both files in the same directory with the main cpp file. In
the main cpp file, I do "include "complex.h"".
So, what is wrong?
Thanks a lot for your help
- Error: undefined reference to,
Ben Rennigen <=
Re: Error: undefined reference to, Ulrich Eckhardt, 2004/11/04