Hello.
I use AlgLib at first. I have a problem: LNK2019: unresolved external symbol ...
There are a lot of similar topics in this disuss. This problem is resolved by including *.cpp file, not .h one. But it's said in manual "By "adding to your project" we mean that you should a) compile .cpp files with the rest of your project, and b) include .h files you need. Do not include .cpp files - these files must be compiled separately, not as part of some larger source file.
The only files you should include are .h files, stored in the /src folder of the ALGLIB distribution."
Doesn't work
Code:
#include "ap.h"
alglib::integer_2d_array c("[[1,2,3],[9,9,9]]");
void main () {
}
Works
Code:
#include "ap.cpp"
alglib::integer_2d_array c("[[1,2,3],[9,9,9]]");
void main () {
}
May be I don't understand Manual correctly.