jimxinbo / multilabel-layer-mxnet

This is a multilabel classification layer for mxnet.
12 stars 8 forks source link

Compile error in VS2013 #4

Open nerddd opened 7 years ago

nerddd commented 7 years ago

Hi,I met a problem while compiling.Here are the messages,could you please help me out(Ps.VS2013 platform,can successfully compile mxnet without your file.I just put the .cc and .h files into the project,because I don't have gpu. I wonder if this is the reason?)

Error 122 error C2144: syntax error : 'void' should be preceded by ';' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 198 1 mxnet Error 123 error C2065: 'DstPlan' : undeclared identifier (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 198 1 mxnet Error 124 error C2146: syntax error : missing ')' before identifier 'dst' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 198 1 mxnet Error 125 error C2182: 'SoftmaxMultilabelGradKernel' : illegal use of type 'void' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 198 1 mxnet Error 126 error C2059: syntax error : ')' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 198 1 mxnet Error 127 error C2065: 'DType' : undeclared identifier (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 231 1 mxnet Error 128 error C2923: 'mshadow::Tensor' : 'DType' is not a valid template type argument for parameter 'DType' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 231 1 mxnet Error 129 error C2065: 'DType' : undeclared identifier (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 232 1 mxnet Error 130 error C2923: 'mshadow::Tensor' : 'DType' is not a valid template type argument for parameter 'DType' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 232 1 mxnet Error 131 error C2065: 'DType' : undeclared identifier (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 233 1 mxnet Error 132 error C2923: 'mshadow::Tensor' : 'DType' is not a valid template type argument for parameter 'DType' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 233 1 mxnet Error 133 error C2143: syntax error : missing ';' before '{' (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 233 1 mxnet Error 134 error C2447: '{' : missing function header (old-style formal list?) (..\src\operator\softmax_multilabel_output.cc) d:\mxnet\src\operator\softmax_multilabel_output-inl.h 233 1 mxnet

Or , is there a version for ubuntu?Any help will be appreciated!