c++ - Solving "locally defined symbol imported" errorrs in VC++ 2015 -


i have small command line program uses maxim's onewire public domain api , winusb. builds absolutely fine on laptop using win7/vs2013. i'm trying move win8.1/vs2015 on new desktop pc, , can't build. here errors reported:

1>------ build started: project: readtemp5, configuration: debug win32 ------ 1>presshum.obj : warning lnk4217: locally defined symbol _printf imported in function _print_array 1>readtemp.obj : warning lnk4049: locally defined symbol _printf imported 1>presshum.obj : warning lnk4217: locally defined symbol _sprintf_s imported in function _readpresshum 1>readtemp.obj : warning lnk4049: locally defined symbol _sprintf_s imported 1>temp10.obj : warning lnk4049: locally defined symbol _sprintf_s imported 1>presshum.obj : warning lnk4217: locally defined symbol _sprintf imported in function _readpresshum 1>temp10.obj : warning lnk4049: locally defined symbol _sprintf imported 1>readtemp.obj : warning lnk4217: locally defined symbol _fprintf imported in function _main 1>readtemp.obj : error lnk2019: unresolved external symbol __imp____iob_func referenced in function _main 1>readtemp.obj : error lnk2019: unresolved external symbol __imp__scanf referenced in function _mainx 1>readtemp.obj : error lnk2019: unresolved external symbol __imp__sscanf referenced in function _main 1>readtemp.obj : error lnk2001: unresolved external symbol _owerrorstack 1>readtemp.obj : error lnk2001: unresolved external symbol _owerrorpointer 1>readtemp.obj : error lnk2001: unresolved external symbol _owerrormsg 1>c:\users\rowanb\documents\visual studio 2015\projects\readtemp5\readtemp5\debug\readtemp5.exe : fatal error lnk1120: 6 unresolved externals ========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

what error "locally defined symbol imported" mean? how find line in file causing problem?

what rules surrounding symbol names underscores? how work out original symbol names (i.e. ones see in source files) are?

i guess problem header file or library or dll missing desktop pc, or installed in different place, and/or have not set project properties correctly locate files needed. how find out what's wrong, , how fix it?

i installed wdk on new pc didn't install in same place on laptop (c:\winddk). can't find put it. wdk files?

thanks - rowan

i had similar errors when switching between 2012 , 2015 compilers withing 1 working directory (going , forth between 2 source control commits 1 still built 2012 , 2015). fix clean solution , rebuild. if copied entire folder new pc, possible intermediate build files 2013 cause problem.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -