ralampay / ann

Artificial Neural Networks implemented in C++
52 stars 21 forks source link

json namespace not recognized #8

Closed cappah closed 7 years ago

cappah commented 7 years ago

Within main.cpp, auto configJson = json::parse(str); shows error: E0304: no instance of overloaded function _"nlohmann::basicjson<ObjectType, ArrayType, BooleanType.... matches the argument list"

ralampay commented 7 years ago

Hi

Maybe you did not include a json config file? How are you running the program?

cappah commented 7 years ago

I built the project with CMake (VS2017 x64). When I run the program I get an exception thrown at fstream line 267. The config.json.dist file is in the ann-master folder

ralampay commented 7 years ago

the .dist file is actually just a template. You should copy it to your own config.json file. I've pushed a new version of the .dist file and just change it to your needs. Let me know if you have questions about the parameters. I haven't created any documentation yet for what each parameter means.

ralampay commented 7 years ago

Closing this now. Might open an issue to make sure you pass the json file when running the program.