C ++ project not compiling

I created an empty C ++ console console with visual studio 2010 and dragged the source files from http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what -you-hear.aspx , but when I click on rebuild I get a load of errors that do not direct me anywhere in the source ... The executable file with the source works fine. Can you please check it out and tell me what I am missing.

update:

Error   1   error LNK2001: unresolved external symbol _AvRevertMmThreadCharacteristics@4    c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\loopback-capture.obj tr

Error   2   error LNK2001: unresolved external symbol __imp__mmioWrite@12   c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\loopback-capture.obj tr

Error   3   error LNK2001: unresolved external symbol __imp__mmioCreateChunk@12 c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\loopback-capture.obj tr

Error   4   error LNK2001: unresolved external symbol __imp__mmioAscend@12  c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\loopback-capture.obj tr

Error   5   error LNK2001: unresolved external symbol _AvSetMmThreadCharacteristicsW@8  c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\loopback-capture.obj tr

Error   6   error LNK2001: unresolved external symbol __imp__mmioOpenW@12   c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\main.obj tr

Error   7   error LNK2001: unresolved external symbol __imp__mmioClose@8    c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\main.obj tr

Error   8   error LNK2001: unresolved external symbol __imp__mmioDescend@16 c:\Users\Admin\documents\visual studio 2010\Projects\tr\tr\main.obj tr

Error   9   error LNK1120: 8 unresolved externals   c:\users\admin\documents\visual studio 2010\Projects\tr\Release\tr.exe  tr
+3
source share
1 answer

Well, if you register in your source folder, you will see that there are several libraries that should be linked to:

TARGETLIBS = \
    $(SDK_LIB_PATH)\avrt.lib \
    $(SDK_LIB_PATH)\ole32.lib \
    $(SDK_LIB_PATH)\winmm.lib \

VS2010 , , . , Additional Dependencies, VS2010 .

Properties > C++ > Linker > Additional Dependencies

, , . avrt.lib, ole32.lib, winmm.lib.

+6

Source: https://habr.com/ru/post/1778230/


All Articles