#5534 closed defect (outdated)
MSVC10: Linker error due to files missing from project
Reported by: | SF/sven3000 | Owned by: | lordhoto |
---|---|---|---|
Priority: | normal | Component: | Port: Win32 |
Version: | Keywords: | build | |
Cc: | Game: |
Description
In svn reversion 54565, ScummVM fails to build in Visual C++ 2010 with a linker error: "LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup"
This is because the contents of the backends/platform/sdl/win32 directory are not included in the project by the create_project.exe tool. Manually adding those files to the project solves the problem and fixes the build.
Ticket imported from: #3121962. Ticket imported from: bugs/5534.
Change History (10)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
This should have been fixed with r54528. Are you sure you properly rebuild create_project and used the updated one?
comment:3 by , 14 years ago
Using the latest create_project source, the MSVC9 generated scummvm.vcproj has a problem where about half of the <Configuration> elements don't have an ending tag. Manually adding them in, the project then builds and executes fine.
comment:4 by , 14 years ago
This tracker item is pending response by the submitter; we cannot continue processing it before that happens. As a consequence, its status has been set to "Pending". It will automatically revert to "Open" once a new comment is made to this item. If no response is made within 14 days, it will automatically be closed.
Thank you.
comment:5 by , 14 years ago
Owner: | set to |
---|
comment:6 by , 14 years ago
Status: | new → pending |
---|
comment:7 by , 14 years ago
I confirmed it works after rebuiliding create_project.exe. I thought I'd tried that, but apparently not. Thanks again.
comment:8 by , 14 years ago
Status: | pending → new |
---|
comment:9 by , 14 years ago
Resolution: | → outdated |
---|---|
Status: | new → closed |
comment:10 by , 6 years ago
Component: | → Port: Win32 |
---|
Did you try rebuilding the create_project tool?
There have been changes to the tool after the merge of the opengl branch and you might be using an old version. Using the latest trunk, the tool picks up the proper folder for the sdl win32 backend and everything builds properly.
Your particular problem should have been fixed in r54528.