We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3961 - SDL failed to build due to the error LNK2019: unresolved external symbol _ConvertRGBtoYUV referenced in function _SDL_main
Summary: SDL failed to build due to the error LNK2019: unresolved external symbol _Con...
Status: RESOLVED DUPLICATE of bug 3957
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: x86 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 08:17 UTC by shanshan
Modified: 2017-11-20 08:04 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shanshan 2017-11-15 08:17:31 UTC
I build SDL with Visual studio 2017 compiler on Windows Server 2016, but it failed with the error LNK2019: unresolved external symbol _ConvertRGBtoYUV referenced in function _SDL_main. This issue can be reproduced from default revision cf166abbde4a. Could you help have a look about this issue? Thanks in advance!

Steps to Reproduce:
1.hg clone https://hg.libsdl.org/SDL D:\SDL\src
2.Open a VS 2017 x86 command prompt as admin and browse to D:\SDL
3.msbuild /p:Configuration=Release /p:Platform=Win32 /p:WindowsTargetPlatformVersion=10.0.15063.0 VisualC\SDL.sln /t:Rebuild

Actual result:
(Link target) -> 
  testoverlay2.obj : error LNK2019: unresolved external symbol _ConvertRGBtoYUV referenced in function _SDL_main [D:\SDL\src\VisualC\tests\testoverlay2\testoverlay2.vcxproj]
  D:\SDL\src\VisualC\Win32\Release\testoverlay2.exe : fatal error LNK1120: 1 unresolved externals [D:\SDL\src\VisualC\tests\testoverlay2\testoverlay2.vcxproj]
Comment 1 Ozkan Sezer 2017-11-15 08:21:14 UTC
This is a duplicate of https://bugzilla.libsdl.org/show_bug.cgi?id=3957
Comment 2 Sam Lantinga 2017-11-17 18:56:45 UTC
This is fixed, thanks!

*** This bug has been marked as a duplicate of bug 3957 ***
Comment 3 shanshan 2017-11-20 06:43:48 UTC
@Sam Lantinga, thank you so much for fixing this issue. I've verified your fix works well.
Comment 4 Sam Lantinga 2017-11-20 08:04:31 UTC
Thank Ozkan! :)