liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.08k stars 1.71k forks source link

Solution for 'error: ‘memcpy’ was not declared in this scope' #211

Closed YihaoWEI closed 6 years ago

YihaoWEI commented 6 years ago

Personally I got a problem when try configure and make in lib dir. It comes out : error: ‘memcpy’ was not declared in this scope (probably a cuda problem)

Afterwards I tried to fix this and I notice that adding a command will help

in configure file add -D_FORCE_INLINES at line 3916: DEFINE_MACROS="$DEFINE_MACROS-D HAVE_CUDA -D_FORCE_INLINES"

And it works for me on ubuntu 1604.

Hope it works for u :p