![]() |
Blitz Support : |
From: Chris Neff (caneff_at_[hidden])
Date: 2005-04-24 12:55:51
Hi, I am new to Blitz++. I have gotten sick of programming in Fortran 77
after learning of the joy of OOP, but I still like the Fortran style of
array storage for alot of my code because its column ordering is how I
think. I try to compile this code:
------------------------------------------------------------------------------
#include <blitz/array.h>
using namespace blitz;
Array<int,1> x; // A one-dimensional array of int
Array<int,2> A(3, 3, fortranArray);
int main()
{
}
------------------------------------------------------------------------------
using the following g++ command:
g++ -lblitz -lm blitztest.cpp
And i get the error:
/tmp/cccfRe8Y.o(.text+0xbf): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `blitz::fortranArray'
collect2: ld returned 1 exit status
It is finding the library okay, but it can't find fortranArray. Suggestions?
Thanks for the help,
-Chris Neff