Question

I am currently trying to link three lib files into a C++ project that will read incoming information from a USB port. but after following the steps to add the dmgr.lib and dstm.lib files I am receiving the following errors:

Error   6   error LNK1120: 5 unresolved externals   c:\users\austi_000\documents\visual studio 2012\Projects\USBTest\Debug\USBTest.exe
Error   2   error LNK2019: unresolved external symbol __imp__DmgrClose referenced in function "void __cdecl ErrorExit(void)" (?ErrorExit@@YAXXZ)    c:\Users\austi_000\documents\visual studio 2012\Projects\USBTest\USBTest\DstmDemo.obj
Error   1   error LNK2019: unresolved external symbol __imp__DmgrOpen referenced in function _main  c:\Users\austi_000\documents\visual studio 2012\Projects\USBTest\USBTest\DstmDemo.obj
Error   4   error LNK2019: unresolved external symbol __imp__DstmDisable referenced in function "void __cdecl ErrorExit(void)" (?ErrorExit@@YAXXZ)  c:\Users\austi_000\documents\visual studio 2012\Projects\USBTest\USBTest\DstmDemo.obj
Error   3   error LNK2019: unresolved external symbol __imp__DstmEnable referenced in function _main    c:\Users\austi_000\documents\visual studio 2012\Projects\USBTest\USBTest\DstmDemo.obj
Error   5   error LNK2019: unresolved external symbol __imp__DstmIO referenced in function _main    c:\Users\austi_000\documents\visual studio 2012\Projects\USBTest\USBTest\DstmDemo.obj

To add the files I did Project -> Properties -> Configuration Properties -> Linker -> General Then I added $(DSTM)\lib\x64_win64_vc11_md;$(DMGR)\lib\x64_win64_vc11_md;$(DPCDECL)\lib\x64_win64_vc11_md to the Additional Library Directories.

Next I added dstm.lib;dmgr.lib; to Linker -> Input.

Next I added C:\Users\austi_000\Downloads\digilent.adept.sdk_v2.3.1\digilent.adept.sdk_v2.3.1\lib64;C:\Users\austi_000\Downloads\digilent.adept.sdk_v2.3.1\digilent.adept.sdk_v2.3.1\include;%(AdditionalIncludeDirectories) to C/C++ -> Additional Include Directories.

Finally I added C:\Users\austi_000\Downloads\digilent.adept.sdk_v2.3.1\digilent.adept.sdk_v2.3.1\lib64;$(IncludePath) in VC++ Directories -> Include Directories and C:\Users\austi_000\Downloads\digilent.adept.sdk_v2.3.1\digilent.adept.sdk_v2.3.1\lib64;$(LibraryPath) in VC++ Directories -> Library Directories.

Any clue what's wrong?

Was it helpful?

Solution

http://msdn.microsoft.com/en-us/library/wdsk6as6.aspx

To set this linker option in the Visual Studio development environment Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties. Expand the Linker folder. Select the Command Line property page. Add the option to the Additional Options box.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top