Skip to content

[makefile] WinMain and wWinMain not defined error when using the makefile #4816

@ghost

Description

Issue description

Installed w64devkit and built the latest raylib release manually. Using the VSCode project template and the included makefile returns the error that WinMain is undefined. According to some posts I found, this is solved by adding the -municode flag but then that results in the error "wWinMain undefined" being thrown.
My program is just the 2d core example camera system.
Compiling via regular terminal command works (i.e. "g++ main.cpp -o test -I"C:\raylib\src" "C:\raylib\lib\libraylib.a" -lopengl32 -lgdi32 -lwinmm").
I seem to recall that the makefile worked fine with raylib 5.0.

Environment

  • Windows 10 64 Bit
  • OpenGL version 4.6
  • RX 6700 XT

Issue Screenshot

Image

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