xinchoubiology / cuda-convnet

Automatically exported from code.google.com/p/cuda-convnet
0 stars 0 forks source link

compile error #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compiler error,
2.
3.

What is the expected output? What do you see instead?
when i compile usr ./build.sh will broke see this error

obj/x86_64/release/src/util.cu.o: In function `pyDictGetMatrix(_object*, char 
const*)':
tmpxft_0000033f_00000000-3_util.cudafe1.cpp:(.text+0x27a): undefined reference 
to `Matrix::Matrix(PyArrayObject const*)'
obj/x86_64/release/src/util.cu.o: In function `getMatrixV(_object*)':
tmpxft_0000033f_00000000-3_util.cudafe1.cpp:(.text+0x3fe): undefined reference 
to `Matrix::Matrix(PyArrayObject const*)'

What version of the product are you using? On what operating system?
centos 6.3
gcc 4.4.6-4
cuda 5.0

Please provide any additional information below.

Original issue reported on code.google.com by kingstar...@gmail.com on 5 Apr 2013 at 3:30

GoogleCodeExporter commented 9 years ago
I also have this issue. Did you figure it out? 

Original comment by michaelk...@gmail.com on 30 Dec 2013 at 12:48

GoogleCodeExporter commented 9 years ago
In my case, this error was caused by not #defining NUMPY_INTERFACE properly. 
Add it to include/common/matrix.h. 

Original comment by michaelk...@gmail.com on 5 Jan 2014 at 11:52

GoogleCodeExporter commented 9 years ago
Had the same problem as michael said, I added 
#define NUMPY_INTERFACE 
to 
include/common/matrix.h and it worked

Original comment by cdrtz1...@gmail.com on 10 Jun 2014 at 7:38