Blitz logo

Blitz Bugs :

From: Patrick Guio (patrick.guio_at_[hidden])
Date: 2003-01-30 10:57:08


On Thu, 30 Jan 2003, Malte Thoma wrote:

>
>
> 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 ...

That is true but I cannot know where you have put your libblitz.a

> BTW2: if it would depends on the lib, than there should be an error when
> compiling WITHOUT -DBZ_DEBUG

Not true!
I can compile this piece of code without the debug option -DBZ_DEBUG and
link it without the linking option to -lblitz
_but_
I can still compile the same piece of code with the debug option -DBZ_DEBUG
and then I cannot link it without the linking option to -lblitz

> BTW3: Im usin the g++3.2 on a debian system.
>

Tested positively on
Intel/icc 7.0
GNU g++ 2.96/3.3
Compaq cxx 6.5

Whuch version of blitz are you using?

>
> 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);
> >>}
> >>
> >>
> >
> >
>
>

======================================================================
                                  Patrick Guio
                    Institute of Physics, University of Oslo
                      P.O. box 1048, Blindern, N-0316 Oslo
               Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
                        E-mail : patrick.guio_at_[hidden]
                  URL : http://folk.uio.no/~patricg