![]() |
Blitz Bugs : |
From: Malte Thoma (thoma_at_[hidden])
Date: 2003-01-30 10:39:54
Patrick Guio wrote:
> On Thu, 30 Jan 2003, Malte Thoma wrote:
>
>
> Hi Malte,
>
> This should work.
No it won't, sorry.
BTW: /usr/lib/libblitz.a is in the standard lib-dir, so it is not
necsessary to give any -L options ...
BTW2: if it would depends on the lib, than there should be an error when
compiling WITHOUT -DBZ_DEBUG
BTW3: Im usin the g++3.2 on a debian system.
Malte
> Which compilation option did you use?
> It looks to me that you forget to give the linker the following option:
> -lblitz
> with an adequate path option
> -Lpath_to_libblitz.a
>
> Cheers,
> Patrick
>
>
>>Hallo,
>>
>>why does the following code not link, if compiled with -DBZ_DEBUG ???
>>
>>I think it would be VERY good if it does, because otherwise the
>>compileoption is not very usefull, is it?
>>
>>
>>Greeetings,
>>
>>Malte
>>
>>___________________________________________________________________________
>>
>>#include <blitz/array.h>
>>
>>typedef blitz::Array<double,1> MyArray1_t;
>>
>>MyArray1_t get(const int d)
>>{
>> MyArray1_t a(d);
>> return a;
>>}
>>
>>int main()
>>{
>> const int d=3;
>> MyArray1_t xk(d);
>> xk=get(d);
>>}
>>
>>
>
>