nvcc --compile -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -o nms_gpu_mex.o --machine 64 -I"C:\Program Files\MATLAB\R2016a/extern/include " -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5\common\inc" "functions/nms/nms_gpu_mex.cu"
nms_gpu_mex.cu
mex -outdir bin nms_gpu_mex.o -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\lib\x64" -lcudart
Building with 'Microsoft Visual C++ 2010 (C)'.
Error using mex
libcpmt.lib(xthrow.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
LIBCMT.lib(new.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
LIBCMT.lib(typinfo.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
LIBCMT.lib(stdexcpt.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
LIBCMT.lib(frame.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
LIBCMT.lib(typname.obj) : error LNK2038: mismatch detected for
'_MSC_VER': value '1600' doesn't match value '1800' in
nms_gpu_mex.o
Creating library F:\Documents\Fish
detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.lib
and object F:\Documents\Fish
detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.exp
nms_gpu_mex.o : error LNK2019: unresolved external symbol
fminf referenced in function "float cdecl fmin(float,float)"
(?fmin@@YAMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol fmaxf
referenced in function "float cdecl fmax(float,float)"
(?fmax@@YAMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol exp2f
referenced in function "float cdecl exp2(float)"
(?exp2@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol expm1f
referenced in function "float cdecl expm1(float)"
(?expm1@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol log2f
referenced in function "float cdecl log2(float)"
(?log2@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol log1pf
referenced in function "float cdecl log1p(float)"
(?log1p@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol acoshf
referenced in function "float cdecl acosh(float)"
(?acosh@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol asinhf
referenced in function "float cdecl asinh(float)"
(?asinh@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol atanhf
referenced in function "float cdecl atanh(float)"
(?atanh@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol logbf
referenced in function "float cdecl logb(float)"
(?logb@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol ilogbf
referenced in function "int cdecl ilogb(float)"
(?ilogb@@YAHM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol
scalblnf referenced in function "float cdecl
scalbln(float,long)" (?scalbln@@YAMMJ@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol roundf
referenced in function "float cdecl round(float)"
(?round@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol lroundf
referenced in function "long cdecl lround(float)"
(?lround@@YAJM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol
llroundf referenced in function "int64 cdecl llround(float)"
(?llround@@YA_JM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol rintf
referenced in function "float cdecl rint(float)"
(?rint@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol lrintf
referenced in function "long cdecl lrint(float)"
(?lrint@@YAJM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol llrintf
referenced in function "int64 cdecl llrint(float)"
(?llrint@@YA_JM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol
nearbyintf referenced in function "float cdecl
nearbyint(float)" (?nearbyint@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol truncf
referenced in function "float cdecl trunc(float)"
(?trunc@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol fdimf
referenced in function "float cdecl fdim(float,float)"
(?fdim@@YAMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol cbrtf
referenced in function "float cdecl cbrt(float)"
(?cbrt@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol remquof
referenced in function "float cdecl remquo(float,float,int *)"
(?remquo@@YAMMMPEAH@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol erff
referenced in function "float cdecl erf(float)" (?erf@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol erfcf
referenced in function "float cdecl erfc(float)"
(?erfc@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol lgammaf
referenced in function "float cdecl lgamma(float)"
(?lgamma@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol tgammaf
referenced in function "float cdecl tgamma(float)"
(?tgamma@@YAMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol
copysignf referenced in function "float cdecl
copysign(float,float)" (?copysign@@YAMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol
nextafterf referenced in function "float cdecl
nextafter(float,float)" (?nextafter@@YAMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol fmaf
referenced in function "float cdecl fma(float,float,float)"
(?fma@@YAMMMM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol _dsign
referenced in function "bool cdecl signbit(double)"
(?signbit@@YA_NN@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol _ldsign
referenced in function "bool cdecl signbit(long double)"
(?signbit@@YA_NO@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol _fdsign
referenced in function "bool cdecl signbit(float)"
(?signbit@@YA_NM@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol "void
cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ)
referenced in function "char * cdecl
std::_Allocate(unsigned int64,char )"
(??$_Allocate@D@std@@YAPEAD_KPEAD@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol "char
const cdecl std::_Syserror_map(int)"
(?_Syserror_map@std@@YAPEBDH@Z) referenced in function "public:
virtual class std::error_condition __cdecl
std::_System_error_category::default_error_condition(int)const "
(?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol "char
const * cdecl std::_Winerror_map(int)"
(?_Winerror_map@std@@YAPEBDH@Z) referenced in function "public:
virtual class std::basic_string<char,struct
std::char_traits,class std::allocator > __cdecl
std::_System_error_category::message(int)const "
(?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)
F:\Documents\Fish
detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.mexw64
: fatal error LNK1120: 36 unresolved externals
Error in nvmex (line 48)
eval(mexCommandLine);
Error in faster_rcnn_build (line 23)
nvmex('functions/nms/nms_gpu_mex.cu', 'bin');
nvcc --compile -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -o nms_gpu_mex.o --machine 64 -I"C:\Program Files\MATLAB\R2016a/extern/include " -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\include" -I"C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5\common\inc" "functions/nms/nms_gpu_mex.cu" nms_gpu_mex.cu mex -outdir bin nms_gpu_mex.o -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\lib\x64" -lcudart Building with 'Microsoft Visual C++ 2010 (C)'. Error using mex libcpmt.lib(xthrow.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o LIBCMT.lib(new.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o LIBCMT.lib(typinfo.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o LIBCMT.lib(stdexcpt.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o LIBCMT.lib(frame.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o LIBCMT.lib(typname.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o Creating library F:\Documents\Fish detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.lib and object F:\Documents\Fish detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.exp nms_gpu_mex.o : error LNK2019: unresolved external symbol fminf referenced in function "float cdecl fmin(float,float)" (?fmin@@YAMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol fmaxf referenced in function "float cdecl fmax(float,float)" (?fmax@@YAMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol exp2f referenced in function "float cdecl exp2(float)" (?exp2@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol expm1f referenced in function "float cdecl expm1(float)" (?expm1@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol log2f referenced in function "float cdecl log2(float)" (?log2@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol log1pf referenced in function "float cdecl log1p(float)" (?log1p@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol acoshf referenced in function "float cdecl acosh(float)" (?acosh@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol asinhf referenced in function "float cdecl asinh(float)" (?asinh@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol atanhf referenced in function "float cdecl atanh(float)" (?atanh@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol logbf referenced in function "float cdecl logb(float)" (?logb@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol ilogbf referenced in function "int cdecl ilogb(float)" (?ilogb@@YAHM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol scalblnf referenced in function "float cdecl scalbln(float,long)" (?scalbln@@YAMMJ@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol roundf referenced in function "float cdecl round(float)" (?round@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol lroundf referenced in function "long cdecl lround(float)" (?lround@@YAJM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol llroundf referenced in function "int64 cdecl llround(float)" (?llround@@YA_JM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol rintf referenced in function "float cdecl rint(float)" (?rint@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol lrintf referenced in function "long cdecl lrint(float)" (?lrint@@YAJM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol llrintf referenced in function "int64 cdecl llrint(float)" (?llrint@@YA_JM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol nearbyintf referenced in function "float cdecl nearbyint(float)" (?nearbyint@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol truncf referenced in function "float cdecl trunc(float)" (?trunc@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol fdimf referenced in function "float cdecl fdim(float,float)" (?fdim@@YAMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol cbrtf referenced in function "float cdecl cbrt(float)" (?cbrt@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol remquof referenced in function "float cdecl remquo(float,float,int *)" (?remquo@@YAMMMPEAH@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol erff referenced in function "float cdecl erf(float)" (?erf@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol erfcf referenced in function "float cdecl erfc(float)" (?erfc@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol lgammaf referenced in function "float cdecl lgamma(float)" (?lgamma@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol tgammaf referenced in function "float cdecl tgamma(float)" (?tgamma@@YAMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol copysignf referenced in function "float cdecl copysign(float,float)" (?copysign@@YAMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol nextafterf referenced in function "float cdecl nextafter(float,float)" (?nextafter@@YAMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol fmaf referenced in function "float cdecl fma(float,float,float)" (?fma@@YAMMMM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol _dsign referenced in function "bool cdecl signbit(double)" (?signbit@@YA_NN@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol _ldsign referenced in function "bool cdecl signbit(long double)" (?signbit@@YA_NO@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol _fdsign referenced in function "bool cdecl signbit(float)" (?signbit@@YA_NM@Z) nms_gpu_mex.o : error LNK2019: unresolved external symbol "void cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "char * cdecl std::_Allocate(unsigned int64,char )"
(??$_Allocate@D@std@@YAPEAD_KPEAD@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol "char
const cdecl std::_Syserror_map(int)"
(?_Syserror_map@std@@YAPEBDH@Z) referenced in function "public:
virtual class std::error_condition __cdecl
std::_System_error_category::default_error_condition(int)const "
(?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z)
nms_gpu_mex.o : error LNK2019: unresolved external symbol "char
const * cdecl std::_Winerror_map(int)"
(?_Winerror_map@std@@YAPEBDH@Z) referenced in function "public:
virtual class std::basic_string<char,struct
std::char_traits,class std::allocator > __cdecl
std::_System_error_category::message(int)const "
(?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)
F:\Documents\Fish
detection_2018\faster_rcnn-master\faster_rcnn-master\bin\nms_gpu_mex.mexw64
: fatal error LNK1120: 36 unresolved externals
Error in nvmex (line 48) eval(mexCommandLine);
Error in faster_rcnn_build (line 23) nvmex('functions/nms/nms_gpu_mex.cu', 'bin');