Skip to content

Build Error #1

Description

@venkat1152000

Hi All,
I tried to build the cmake but i got some error.

Error:
[100%] Linking CXX executable ..\target\SDLTest.exe LINK Pass 1: command "C:\PROGRA1\MICROS2\2022\PROFES1\VC\Tools\MSVC\14331.316\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\SDLTest.dir\objects1.rsp /out:..\target\SDLTest.exe /implib:..\lib\SDLTest.lib /pdb:D:\demo\X64\SDLTEST\check\target\SDLTest.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows ..\lib\App.lib ..\lib\Error.lib D:\demo\X64\SDLTEST\New_folder\build\SDL2d.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\SDLTest.dir/intermediate.manifest CMakeFiles\SDLTest.dir/manifest.res" failed (exit code 1120) with the following output:

MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@yahxz)..\target\SDLTest.exe : fatal error LNK1120: 1 unresolved externals

NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions