Media (Intel® oneAPI 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 sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

link libmfx.lib error

Mojo_C_
Beginner
1,028 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,028 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

5 Replies
RyanS
New Contributor I
1,028 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.

Surbhi_M_Intel
Employee
1,027 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

 

RyanS
New Contributor I
1,029 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.

Mojo_C_
Beginner
1,028 Views
Hi RyanS Thanks your help ,I fix this problem. Hi Surbhi link libmfx.lib is fine in VS2013 Best Regards
Surbhi_M_Intel
Employee
1,028 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

Reply