kthohr / optim

OptimLib: a lightweight C++ library of numerical optimization methods for nonlinear functions

Home Page:https://optimlib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in header-only-library

JeffHough opened this issue · comments

After configuring to header-only-library version, there are include path errors in misc/optim_misc.hpp.

Currently, the first two includes are

// structs
#include "misc/optim_structs.hpp"

// trace
#include "misc/optim_trace.hpp"

Which gives include errors when compiling. The errors are fixed by changing these lines to:

// structs
#include "optim_structs.hpp"

// trace
#include "optim_trace.hpp"

I cannot replicate this error. The folder structure seems correct to me.