I built library by following instructions of link. In order to link that library to Visual Studio I used the following methods but none of them cannot link to that I built .lib file.
Windows system variables add dynamic library path (Environment variables -> Path)
- Set to; C:\Users\venushka\Desktop\libxbee3-win32\lib
Visual Studio ( to include header and source files C++)
- Configuration properties -> C/C++ -> General -> Additional include directories set to C:\Users\venushka\Desktop\libxbee3-win32
Link the library
- Configuration properties -> Linker -> General -> Additional Library directories set to
- C:\Users\venushka\Desktop\libxbee3-win32\lib
Add name of object library file
- Configuration properties -> Linker -> input -> Additional Dependencies I added there as libxbee3.lib
For linking purpose I added
- Add -> Existing item (project properties) both .dll & .lib files but that thing also didn't make any difference still keep the same errors.
Finally I add
#pragma comment (lib, "libxbee3.lib") #pragma comment (lib, "libxbee3.dll")
I'm getting unresolved external errors which says that I couldn't link that library successfully. Any help is appreciated.
I have attached the screenshot
Error log
Error 1 error LNK2019: unresolved external symbol _xbee_setup referenced in function _wmain C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
Error 2 error LNK2019: unresolved external symbol _xbee_shutdown referenced in function _wmain C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
Error 3 error LNK2019: unresolved external symbol _xbee_conGetTypes referenced in function _wmain C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
Error 4 error LNK2019: unresolved external symbol _xbee_errorToStr referenced in function _wmain C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
Error 5 error LNK1120: 4 unresolved externals C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\Debug\xbeetest.exe 1