edeforas / Astree

Astree is a free open source optical ray tracing and design software
GNU Lesser General Public License v3.0
76 stars 9 forks source link

Compile fail due mis-placed line in FileUtil.cpp #48

Closed pmaxted closed 2 years ago

pmaxted commented 2 years ago
% make
cd ./src/tests && make
c++ -g -Wall -Wfatal-errors -std=c++17 test_newton.cpp -I.. ../*.cpp -o test_newton -lm
../FileUtil.cpp:73:1: fatal error: unknown type name 'string'; did you mean 'std::string'?
string FileUtil::get_path(std::string sFile)

The statement #endif near line 70 of FileUtil.cpp should be moved to the end of this file.

edeforas commented 2 years ago

Thanks! Fixed in master