Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2016 17:13
Show Gist options
  • Save anonymous/05f03a869504f08b2b32d220f7a45c77 to your computer and use it in GitHub Desktop.
Save anonymous/05f03a869504f08b2b32d220f7a45c77 to your computer and use it in GitHub Desktop.
protino@protino:~/shogun/build$ g++ --std=c++14 /home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp -o native_example -I/home/protino/shogun-install/include/shogun/ -lshogun
/home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp: In function ‘int main(int, char**)’:
/home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp:42:26: error: ‘CWrappedObjectArray’ was not declared in this scope
auto __sg_storage = some<CWrappedObjectArray>();
^
/home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp:42:47: error: no matching function for call to ‘some()’
auto __sg_storage = some<CWrappedObjectArray>();
^
/home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp:42:47: note: candidate is:
In file included from /home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp:2:0:
/usr/local/include/shogun/base/some.h:121:13: note: template<class T, class ... Args> shogun::Some<T> shogun::some(Args&& ...)
Some<T> some(Args&&... args)
^
/usr/local/include/shogun/base/some.h:121:13: note: template argument deduction/substitution failed:
/home/protino/shogun/build/examples/meta/cpp/distance/euclidean.cpp:42:47: error: template argument 1 is invalid
auto __sg_storage = some<CWrappedObjectArray>();
^
protino@protino:~/shogun/build$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment