[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error: undefined reference to

From: Karthik Kumar
Subject: Re: Error: undefined reference to
Date: Wed, 03 Nov 2004 17:53:08 -0800
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913) wrote:

Can you include the source of Complex and your main?


-------- Original Message --------
Subject: Error: undefined reference to
From: "Ben Rennigen" <>
Date: Wed, November 03, 2004 3:45 pm


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

Help-gplusplus mailing list

  And, just in case you are not aware of previously, C++ standard
defines a complex library ( <complex> ). Take a look at it before you
reinvent the wheel.

  Karthik.      .
  ' Remove _nospamplz from my email to mail me. '

reply via email to

[Prev in Thread] Current Thread [Next in Thread]