Implementing Quickie:
#include
#typedef long double num;
struct matrix {
num *values;
int X, Y;
//Here's the little bugger-------------------\/
matrix(int a, int b){X = a; Y = b; values = new (num[X*Y]);}
num get(int x, int y){return values[x*Y + y];}
void put(int x, int y, num v){values[x*Y + y] = v;}
};
Compile Time error:
bash-3.1$ gcc StrassenMatrix.cpp
Undefined first referenced
symbol in file
operator new[](unsigned int) /var/tmp//ccUw7FsF.o
__gxx_personality_v0 /var/tmp//ccUw7FsF.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
What's the correct line? Thanks All!
#typedef long double num;
struct matrix {
num *values;
int X, Y;
//Here's the little bugger-------------------\/
matrix(int a, int b){X = a; Y = b; values = new (num[X*Y]);}
num get(int x, int y){return values[x*Y + y];}
void put(int x, int y, num v){values[x*Y + y] = v;}
};
Compile Time error:
bash-3.1$ gcc StrassenMatrix.cpp
Undefined first referenced
symbol in file
operator new[](unsigned int) /var/tmp//ccUw7FsF.o
__gxx_personality_v0 /var/tmp//ccUw7FsF.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
What's the correct line? Thanks All!
