Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘memcpy’ was not declared in this scope #4

Closed
davidcastells opened this issue May 5, 2016 · 1 comment
Closed

error: ‘memcpy’ was not declared in this scope #4

davidcastells opened this issue May 5, 2016 · 1 comment

Comments

@davidcastells
Copy link

I got the error shown below compiling the library on my system, which has the following
characteristics:

  • Ubuntu 16.04 LTS
  • Cuda compilations tools v7.5.17
  • gcc version 5.3.1

/usr/include/string.h: In function ‘void* mempcpy_inline(void, const void, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char ) memcpy (__dest, __src, __n) + __n;
^
Makefile:20: recipe for target 'xmp.o' failed
make: *
* [xmp.o] Error 1

I actually fixed it by adding the _FORCE_INLINES definition on nvcc compiler flags

NVCC_FLAGS=-D_FORCE_INLINES ...

@luitjens
Copy link
Contributor

Thanks,

It looks like this issue is resolved in 8.0. Here is a page describing the workaround but I suspect you have already seen this.

BVLC/caffe#4046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants