Figured I'd put this here, but I encountered this while trying to build the 2.0 branch of COLLADA2GLTF. The build command throws the following error in both COLLADA2GLTF and Ahoy by itself:
Jeremys-iMac:build jeremyabel$ make
Scanning dependencies of target ahoy
[ 33%] Building CXX object CMakeFiles/ahoy.dir/src/Parser.cpp.o
clang: warning: -lstdc++fs: 'linker' input unused
[ 66%] Building CXX object CMakeFiles/ahoy.dir/src/TypedOption.cpp.o
clang: warning: -lstdc++fs: 'linker' input unused
/Users/jeremyabel/Documents/Workspace/ahoy/src/TypedOption.cpp:21:13: error: use of undeclared identifier 'atof'; did you mean 'stof'?
*output = atof(argv[position]);
^~~~
stof
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:4095:30: note: 'stof' declared here
_LIBCPP_FUNC_VIS float stof (const string& __str, size_t* __idx = 0);
^
/Users/jeremyabel/Documents/Workspace/ahoy/src/TypedOption.cpp:33:13: error: use of undeclared identifier 'atoi'; did you mean 'stoi'?
*output = atoi(argv[position]);
^~~~
stoi
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:4089:37: note: 'stoi' declared here
_LIBCPP_FUNC_VIS int stoi (const string& __str, size_t* __idx = 0, int __base = 10);
^
/Users/jeremyabel/Documents/Workspace/ahoy/src/TypedOption.cpp:60:22: error: use of undeclared identifier 'atoi'; did you mean 'stoi'?
output->push_back(atoi(arg));
^~~~
stoi
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:4089:37: note: 'stoi' declared here
_LIBCPP_FUNC_VIS int stoi (const string& __str, size_t* __idx = 0, int __base = 10);
^
/Users/jeremyabel/Documents/Workspace/ahoy/src/TypedOption.cpp:120:70: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
return Option::help() + " [vec<int>" + (countValue < 0 ? "" : ", " + countValue) + "]" + (hasDefault ? (" [default: " + defaultString + "]") : "");
~~~~~^~~~~~~~~~~~
/Users/jeremyabel/Documents/Workspace/ahoy/src/TypedOption.cpp:120:70: note: use array indexing to silence this warning
return Option::help() + " [vec<int>" + (countValue < 0 ? "" : ", " + countValue) + "]" + (hasDefault ? (" [default: " + defaultString + "]") : "");
^
& [ ]
1 warning and 3 errors generated.
make[2]: *** [CMakeFiles/ahoy.dir/src/TypedOption.cpp.o] Error 1
make[1]: *** [CMakeFiles/ahoy.dir/all] Error 2
make: *** [all] Error 2
Figured I'd put this here, but I encountered this while trying to build the 2.0 branch of COLLADA2GLTF. The build command throws the following error in both COLLADA2GLTF and Ahoy by itself: