开发平台(Platform): (Ex: Win10, Linux, ...) Linux
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出) g++
https://www.sendspace.com/file/55crup
上面网址是我程式码 ...
g++ AbstractOptimizationProblem.cpp main.cpp
我程式马里面有用到 template 但是我不太熟template ! 懂的朋友可以帮我看一下原因!
Thanks
下面是错误讯息
/tmp/ccQ0iTvh.o: In function
`LocalLeastSquaresProblem::LocalLeastSquaresProblem(int, int,
ConvergenceChecker<Evaluation>*)':
main.cpp:(.text+0x28): undefined reference to
`AbstractOptimizationProblem<Evaluation>::AbstractOptimizationProblem(int,
int, ConvergenceChecker<Evaluation>*)'
/tmp/ccQ0iTvh.o:(.rodata._ZTV24LocalLeastSquaresProblem[_ZTV24LocalLeastSquaresProblem]+0x10):
undefined reference to
`AbstractOptimizationProblem<Evaluation>::getEvaluationCounter()'
/tmp/ccQ0iTvh.o:(.rodata._ZTV24LocalLeastSquaresProblem[_ZTV24LocalLeastSquaresProblem]+0x18):
undefined reference to
`AbstractOptimizationProblem<Evaluation>::getIterationCounter()'