Skip to content
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

Open
SamB opened this issue Aug 5, 2015 · 4 comments
Open

Doesn't link out-of-the-box #2

SamB opened this issue Aug 5, 2015 · 4 comments

Comments

@SamB
Copy link

SamB commented Aug 5, 2015

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 ==========

@Raggles
Copy link

Raggles commented Aug 5, 2015

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

@ferzkopp
Copy link

ferzkopp commented Aug 9, 2015

Check the info here:
http://stackoverflow.com/questions/6626397/error-lnk2019-unresolved-external-symbol-winmain16-referenced-in-function

On 8/5/2015 11:28 AM, Samuel Bronson wrote:

When I try to use this package without doing anything special, and
include 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 ==========


Reply to this email directly or view it on GitHub
#2.

@SamB
Copy link
Author

SamB commented Aug 10, 2015

@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!

@madewokherd
Copy link
Member

I've uploaded a new version with VS2013 and VS2015 builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants