Re: [Lapackpp-devel] Help me: syntax errors from "COMPLEX" in Lapack++
Status: Beta
Brought to you by:
cstim
From: mohamad c. <moh...@in...> - 2004-12-15 09:33:33
|
The compile command i have used is very simple (maybe stupid) because i=20 don't know how to deal with dependencies between these files! here its: g++ -Wall -c tEigSolve.cc g++ tEigSolve.o Thank you in adavnce for any kind of help! Christian Stimming a =E9crit : > Questions about the program *always* to the mailinglist, *never* to=20 > individual developers. Thanks. > > mohamad chaitou schrieb: > >> Hi Christian, >> Thank you for your invaluable help. The tests are passed very well,=20 >> but when i had tried to compile a simple program i got many errors of=20 >> kinds "undefined references". for example when compiling the file=20 >> "$HOME/lapackpp-2.0.3/testing/tEigSolve.cc" errors like the following=20 >> appears: >> (tEigSolve.o(.text+0x284): In function `eig_residual(LaSymmMatDouble=20 >> const&, double, LaVectorDouble const&)': >> : undefined reference to =AB Mach_eps_double() =BB). what could be = the=20 >> problem? >> I hope some suggestions from you, >> Thank you a lot, > > > Please send your full compile command line so that we can see how you=20 > compiled your test program. > > Christian > >> >> >> >> Christian Stimming a =E9crit : >> >>> Dear Mohamad, >>> >>> when using Lapack++ and using the complex-valued matrices, you need=20 >>> to define the constant LA_COMPLEX_SUPPORT because otherwise lapack++=20 >>> would have the complex numbers disabled. Either you insert >>> #define LA_COMPLEX_SUPPORT >>> into your personal source code before including the headers, or you=20 >>> call gcc with -DLA_COMPLEX_SUPPORT. If you want to run the example=20 >>> files, you can have this done automatically by the command "make=20 >>> check". >>> >>> Christian >>> >>> mohamad chaitou schrieb: >>> >>>> HI all, >>>> I'm new to C++. I've just installed Lapackpp-2.0.3. The=20 >>>> installation seems to be fine but when i tried to do a test (i've=20 >>>> tried the command "gcc tEigSolve.cc" under the directory=20 >>>> lapackpp-2.0.3/testing) i have got many syntax errors!!, these=20 >>>> errors come from files: vc.h, gmc.h, lavc.h, blas1pp.h, blaspp.h=20 >>>> and blas++.h. Most of these errors claim about the struct=20 >>>> "COMPLEX", when declaring a pointer or a reference to "COMPLEX"=20 >>>> saying that this is a syntax error! >>>> Please give me some feedback, >>>> Thanks in advances! >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF email is sponsored by - The IT Product Guide >>>> Read honest & candid reviews on hundreds of IT Products from real=20 >>>> users. >>>> Discover which products truly live up to the hype. Start reading=20 >>>> now. http://productguide.itmanagersjournal.com/ >>>> _______________________________________________ >>>> lapackpp-devel mailing list >>>> lap...@li... >>>> https://lists.sourceforge.net/lists/listinfo/lapackpp-devel >>>> >>> >>> >> >> >> > > |