-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't link out-of-the-box #2
Comments
I don't think this is a problem with SDL, it looks like the linker can't find your entry point so I'd suggest you need to change some of your project settings. Also I don't think the SDL package has VS2013 build targets |
Check the info here: On 8/5/2015 11:28 AM, Samuel Bronson wrote:
|
@Raggles Well, not SDL per se; upon further inspection, I suspect the problem is that this particular nuget package doesn't provide a "v120" build, only "v110" and "v100"... hmm... I suppose changing the Platform Toolset to "Visual Studio 2010 (v100)", it might actually work ... Yay, it works! |
I've uploaded a new version with VS2013 and VS2015 builds. |
When I try to use this package without doing anything special, and include <SDL.h> before defining main(), MSVC 2013 gives me these errors:
1>------ Rebuild All started: Project: Win32Project1, Configuration: Debug Win32 ------
1> main.c
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Sam\Documents\Visual Studio 2013\Projects\Win32Project1\Debug\Win32Project1.exe : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
The text was updated successfully, but these errors were encountered: