Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

link libmfx.lib error

Mojo_C_
Beginner
1,460 Views

Hi

I create a Visual Studio Community 2015 project and use win32 libmfx.lib of media_sdk_6.0.0.388 to build this project

VS2015 show error ::

libmfx.lib(mfx_plugin_hive.obj) : error LNK2019: unresolved external symbol _swscanf_s referenced in function "private: bool __thiscall MFX::MFXPluginsInFS::ParseKVPair(wchar_t *,wchar_t *,class MFX::PluginDescriptionRecord &)" (?ParseKVPair@MFXPluginsInFS@MFX@@AAE_NPA_W0AAVPluginDescriptionRecord@2@@Z)

my platform:: win7 ,Visual Studio Community 2015 and Intel Integrated Native Developer Experience Starter Edition 2015.2.048

 

Best Regards

0 Kudos
1 Solution
RyanS
New Contributor I
1,460 Views

The problem is as described here: https://msdn.microsoft.com/en-us/library/bb531344.aspx in the "The printf and scanf family of functions are now defined inline." section.

And the solution is to link "legacy_stdio_definitions.lib". Doing so fixed my link problem.

View solution in original post

0 Kudos
5 Replies
RyanS
New Contributor I
1,460 Views

I have this problem too. Note that the most similar functions available are 'swscanf_s' and '_swscanf_s_l'. It doesn't look like '_swscanf_s' has ever existed in the CRT according to the msdn page, so I'm not sure how the link works in VS 2013.

0 Kudos
Surbhi_M_Intel
Employee
1,459 Views

Hi there,

Can you please tell us the sample version? Is it failing with this error on VS 2015 only or you see same problem on VS2013 and below.
We have tested it with VS 2012 and it works so I am assuming it could be because of VS 2015 version.  
Can you also give your platform details- processor, graphics device, driver version for us to check on?

Thanks,
Surbhi

 

0 Kudos
RyanS
New Contributor I
1,461 Views

The problem is as described here: https://msdn.microsoft.com/en-us/library/bb531344.aspx in the "The printf and scanf family of functions are now defined inline." section.

And the solution is to link "legacy_stdio_definitions.lib". Doing so fixed my link problem.

0 Kudos
Mojo_C_
Beginner
1,460 Views
Hi RyanS Thanks your help ,I fix this problem. Hi Surbhi link libmfx.lib is fine in VS2013 Best Regards
0 Kudos
Surbhi_M_Intel
Employee
1,460 Views

Great, thanks for sharing the fix. I am closing the issue. 
If you have media related questions, please post it to media forum - https://software.intel.com/en-us/forums/intel-media-sdk

Thanks,
Surbhi

0 Kudos
Reply