Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2009-03-02 03:22:20

Celdecea
Member
From: Southern Oregon
Registered: 2009-02-23
Posts: 147

Linker Error - Revision 13 under MSVC .NET 2003

Hello,

Thank you for the update.  When I first compiled revision 13 on Visual Studio .NET 2003, a linker error was produced:

opensonic error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
opensonic fatal error LNK1120: 1 unresolved externals

This error occurs for the "opensonic" project only, not the "opensonic_launcher" project.   A short-term resolution which works for me was to open up linker options and set the subsystem to Windows.

I believe the bug was introduced when the "WIN32" flag was removed from line 130 of CMakeLists.txt during the last update.  I do not have a way to confirm if this error is specific to my setup.

Hope this helps.

Offline

#2 2009-03-02 12:44:18

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,304
Website

Re: Linker Error - Revision 13 under MSVC .NET 2003

Thanks. I'll fix CMakeLists.txt when I get home. smile

I believe the bug was introduced when the "WIN32" flag was removed from line 130 of CMakeLists.txt during the last update.  I do not have a way to confirm if this error is specific to my setup.

Probably that's the cause of the problem. At least when compiling with MinGW on Windows, the opensonic.exe --help command does not work in a command prompt (it should output some stuff via printf, but it outputs nothing). On Linux it works fine. I'll try something else (maybe replace printf by allegro_message on Windows)

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org