Opened 13 years ago

Closed 13 years ago

Last modified 6 years ago

#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:


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 Templier, 13 years ago

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.

comment:2 by lordhoto, 13 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 dreammaster, 13 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 lordhoto, 13 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 lordhoto, 13 years ago

Owner: set to lordhoto

comment:6 by lordhoto, 13 years ago

Status: newpending

comment:7 by SF/sven3000, 13 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 SF/sven3000, 13 years ago

Status: pendingnew

comment:9 by jvprat, 13 years ago

Resolution: outdated
Status: newclosed

comment:10 by digitall, 6 years ago

Component: Port: Win32
Note: See TracTickets for help on using tickets.