Hi,
I am new to ALGLIB, I am trying to get the library to compile but i keep getting the follow error, I am not sure what I am doing wrong.
Thanks for the help,
xynergy
Code:
//#include <stdafx.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
//#include <interpolation.h>
#include "ap.h"
// disable some irrelevant warnings
#if (AE_COMPILER==AE_MSVC)
#pragma warning(disable:4100)
#pragma warning(disable:4127)
#pragma warning(disable:4702)
#pragma warning(disable:4996)
#endif
#include "alglibmisc.h"
#include "alglibinternal.h"
#include "linalg.h"
#include "statistics.h"
#include "dataanalysis.h"
#include "specialfunctions.h"
#include "solvers.h"
#include "optimization.h"
#include "diffequations.h"
#include "fasttransforms.h"
#include "integration.h"
#include "interpolation.h"
using namespace alglib_impl;
int main(int argc, char* argv[]){
alglib::real_1d_array x("[0,1,2,3]");
alglib::real_1d_array y("[1,5,3,9]");
alglib::real_1d_array y2("[1,5,3,9,0]");
alglib::spline1dinterpolant s;
}
Quote:
obj\Debug\main.o||In function `main':|
C:\Users\G\Desktop\ALGLIB\main.cpp|36|undefined reference to `alglib::real_1d_array::real_1d_array(char const*)'|
C:\Users\G\Desktop\ALGLIB\main.cpp|37|undefined reference to `alglib::real_1d_array::real_1d_array(char const*)'|
C:\Users\G\Desktop\ALGLIB\main.cpp|38|undefined reference to `alglib::real_1d_array::real_1d_array(char const*)'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::spline1dinterpolant::spline1dinterpolant()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::spline1dinterpolant::~spline1dinterpolant()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::real_1d_array::~real_1d_array()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::real_1d_array::~real_1d_array()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::real_1d_array::~real_1d_array()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::real_1d_array::~real_1d_array()'|
C:\Users\G\Desktop\ALGLIB\main.cpp|39|undefined reference to `alglib::real_1d_array::~real_1d_array()'|
obj\Debug\main.o:C:\Users\G\Desktop\ALGLIB\main.cpp|39|more undefined references to `alglib::real_1d_array::~real_1d_array()' follow|
||=== Build finished: 11 errors, 0 warnings ===|