{"action":"opened","issue":{"url":"https://api.github.com/repos/szagoruyko/cvpr15deepcompare/issues/1","labels_url":"https://api.github.com/repos/szagoruyko/cvpr15deepcompare/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/szagoruyko/cvpr15deepcompare/issues/1/comments","events_url":"https://api.github.com/repos/szagoruyko/cvpr15deepcompare/issues/1/events","html_url":"https://github.com/szagoruyko/cvpr15deepcompare/issues/1","id":98022864,"number":1,"title":"Error Linking THC When Building Matlab Interface","user":{"login":"siegeln","id":7674950,"avatar_url":"https://avatars.githubusercontent.com/u/7674950?v=3","gravatar_id":"","url":"https://api.github.com/users/siegeln","html_url":"https://github.com/siegeln","followers_url":"https://api.github.com/users/siegeln/followers","following_url":"https://api.github.com/users/siegeln/following{/other_user}","gists_url":"https://api.github.com/users/siegeln/gists{/gist_id}","starred_url":"https://api.github.com/users/siegeln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siegeln/subscriptions","organizations_url":"https://api.github.com/users/siegeln/orgs","repos_url":"https://api.github.com/users/siegeln/repos","events_url":"https://api.github.com/users/siegeln/events{/privacy}","received_events_url":"https://api.github.com/users/siegeln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T20:30:11Z","updated_at":"2015-07-29T20:30:11Z","closed_at":null,"body":"Hi, I'm trying to compile the Matlab interface using mex. I followed the directions for installation and added -L/cutorch/lib/THC/build to make.m, but I'm getting a linking error. I've reproduced the error on OSX 10.10 using clang-602.0.53 and Ubuntu 14.04 using gcc 4.8.4. Using clang:\r\n\r\n    Undefined symbols for architecture x86_64:\r\n       \"_cunnrelease_Linear\", referenced from:\r\n          cunn::Linear::forward(THCudaTensor*) in libcunnproduction_static.a(cunn.cpp.o)\r\n      \"_cunnrelease_ReLUIP\", referenced from:\r\n          cunn::ReLU::forward(THCudaTensor*) in libcunnproduction_static.a(cunn.cpp.o)\r\n      \"_cunnrelease_SpatialAveragePooling\", referenced from:\r\n          cunn::SpatialAveragePooling::forward(THCudaTensor*) in libcunnproduction_static.a(cunn.cpp.o)\r\n      \"_cunnrelease_SpatialConvolution\", referenced from:\r\n          cunn::SpatialConvolutionMM::forward(THCudaTensor*) in libcunnproduction_static.a(cunn.cpp.o)\r\n      \"_cunnrelease_SpatialMaxPooling\", referenced from:\r\n          cunn::SpatialMaxPooling::forward(THCudaTensor*) in libcunnproduction_static.a(cunn.cpp.o)\r\n    ld: symbol(s) not found for architecture x86_64\r\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n\r\n        mex: link of ' \"deepcompare.mexmaci64\"' failed.\r\n\r\nUsing gcc:\r\n\r\n    Error using mex\r\n    ../build/cunnproduction/libcunnproduction_static.a(cunn.cpp.o): In function\r\n    `cunn::SpatialConvolutionMM::forward(THCudaTensor*)':\r\n    cunn.cpp:(.text+0x368): undefined reference to `cunnrelease_SpatialConvolution'\r\n    ../build/cunnproduction/libcunnproduction_static.a(cunn.cpp.o): In function\r\n    `cunn::SpatialMaxPooling::forward(THCudaTensor*)':\r\n    cunn.cpp:(.text+0x523): undefined reference to `cunnrelease_SpatialMaxPooling'\r\n    ../build/cunnproduction/libcunnproduction_static.a(cunn.cpp.o): In function\r\n    `cunn::SpatialAveragePooling::forward(THCudaTensor*)':\r\n    cunn.cpp:(.text+0x639): undefined reference to `cunnrelease_SpatialAveragePooling'\r\n    ../build/cunnproduction/libcunnproduction_static.a(cunn.cpp.o): In function `cunn::ReLU::forward(THCudaTensor*)':\r\n    cunn.cpp:(.text+0x6cf): undefined reference to `cunnrelease_ReLUIP'\r\n    ../build/cunnproduction/libcunnproduction_static.a(cunn.cpp.o): In function `cunn::Linear::forward(THCudaTensor*)':\r\n    cunn.cpp:(.text+0x866): undefined reference to `cunnrelease_Linear'\r\n    collect2: error: ld returned 1 exit status\r\n\r\nAm I linking the wrong library?"}}