Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error '_MSC_VER': value '1600' doesn't match value '1800' in nms_gpu_mex.o running faster_rcnn_build.m file #188

Open
AvaniPitre opened this issue Feb 21, 2018 · 1 comment

Comments

@AvaniPitre
Copy link

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');

@qwertyDvo
Copy link

Did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants