hello guys i am compiling matconvnet with GPU, after VS, CUDA, CudNN, mex -setup C++, all are adjusted i try to compile it with vl_compilenn('verbose', 1), i got the following error. i dont know really what is the source of the problem

1 view (last 30 days)
Error using mex
In file included from
F:\matconvnet-1.0-beta25\matlab\src\bits\data.cu:13:0,
from F:\matconvnet-1.0-beta25\matlab\src\bits\data.cpp:4:
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:73:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(char) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:73:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:77:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(float) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:77:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:81:12: error:
'constexpr' does not name a type
static constexpr std::size_t size = sizeof(double) ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:81:12: note: C++11
'constexpr' only available with -std=c++11 or -std=gnu++11
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp: In function 'size_t
vl::getDataTypeSizeInBytes(vl::DataType)':
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:91:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)0u>'
case VLDT_Char: return DataTypeTraits<VLDT_Char>::size ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:92:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)1u>'
case VLDT_Float: return DataTypeTraits<VLDT_Float>::size ;
^
F:\matconvnet-1.0-beta25\matlab\src\bits\data.hpp:93:32: error: 'size' is
not a member of 'vl::DataTypeTraits<(vl::DataType)2u>'
case VLDT_Double: return DataTypeTraits<VLDT_Double>::size ;
^
Error in vl_compilenn>mex_compile (line 583)
mex(args{:}) ;
Error in vl_compilenn (line 492)
mex_compile(opts, srcs{i}, objfile, flags) ;
  2 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 20 Mar 2018
  5 Comments
Richa
Richa on 2 Apr 2018
Thanks Walter for your support. I had t reinstall windows and everything, after which it worked without any errors. Thanks a lot once again

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!