5 พฤษภาคม 2555 12:23
I've created a WinRT component and am using that function in the code. When compiling, the linker complains about a unresolved symbol. Checking the project properties, it tells me the whole SDK is referenced. Why is this happening? That function is supposed to be valid for Metro apps, as referenced several times on this forum. Shouldn't it resolve if the whole SDK is referenced?
6 พฤษภาคม 2555 11:47Digging around some more, I finally found where the WinRT header and library files were. It turns out I had to change the build configuration and manually add mmdevapi.lib to it. Shouldn't this happen automatically, i.e. via %(AdditionalDependencies)?
7 พฤษภาคม 2555 11:26ผู้ดูแล
I think the dependencies' path is add to your project, but the library name does not. You should add it.
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us