Re: [Dev-C++] undefined reference problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-12-15 10:37:52
|
The problem is that it isn't enough to add an include file to your source.
You must also add the corresponding library file (libXX.a) to the project.
Specify -libXX in the linker options.
/Per W
On Wed, 15 Dec 2004, mohamad chaitou wrote:
> Hi all,
> I'm new to g++. I'm trying to use a new library for linear algebra
> called Lapack++, the problem is when I include this library into a
> source file I get errors of kinds "undefined refernce". for example this
> little and stupid code:
> #define LA_COMPLEX_SUPPORT
> #include <lapack++.h> // the new library
> #include <iostream>
> int main()
> {
> LaGenMatDouble A ; // this uses the new library
> std::cout<< "This is a test "<< std::endl;
> return 0;
> }
> the erros are like:
> /tmp/cc2YU0wo.o(.text+0x19): In function `main':
> undefined reference to =AB LaGenMatDouble::LaGenMatDouble[in-charge]()=BB
>
> What could be the problem?
> Please give me some feddback.
> thanks in advance
>
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|