[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error: undefined reference to
From: |
Ulrich Eckhardt |
Subject: |
Re: Error: undefined reference to |
Date: |
Thu, 04 Nov 2004 07:10:55 +0100 |
User-agent: |
KNode/0.7.7 |
Ben Rennigen wrote:
> : undefined reference to `Complex::Complex[in-charge](float, float)'
> "Complex" is my class, declared in "complex.h" and implemented in
> "complex.cpp", both files in the same directory with the main cpp file.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is completely irrelevant!
> In the main cpp file, I do "include "complex.h".
That just includes that file, code from Complex.cpp still doesn't get
pulled in.
BTW: usually, the class would have been defined(not declared!) in complex.h
and its memberfunctions defined in complex.cpp, just so you know the
proper terms.
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/
Re: Error: undefined reference to,
Ulrich Eckhardt <=