Skip to content

Errors when building on Windows with GCC (MSYS2). #110

@ajh123

Description

@ajh123

Describe the bug
This bug is very specific to my use case, but could be helpful for others.
My program does not build successfully, when I run cmake --build build, millions of errors are produced.

To Reproduce
Steps to reproduce the behavior:

  1. Use Zep v0.1.12 (or the latest "master")
  2. Use MSys2 on Windows.
  3. Have a CMake project (like mine)
  4. Make sure all dependences are installed (e.g. CMake, GCC, ...)
  5. Prepare the CMake files cmake -B build
  6. Try to build the program cmake --build build
  7. See error

Expected behavior
Program builds successfully, and able to be ran.

Screenshots
I don't think a screenshot would be best for a wall (more like a skyscraper) of errors, so I have a pastebin instead.

Desktop (please complete the following information):

  • OS: Windows
  • Version 10

Additional context
Just started to use Zep to allow people to edit their Lua scripts in my game engine editor.

Some important files

I assume my compiler doesn't understand the following lines, because it is in the errors.

#ifdef WIN32
// A reference to the debug API on windows, to help the logger output in VC. This is better
// than out to the console sometimes, and as long as you are building on Windows, you are referencing the necessary
// kernel32.dll....
extern "C" {
__declspec(dllimport) void __stdcall OutputDebugStringA(_In_opt_ const char* pszChar);
}
#endif

Some possible solutions

  1. Could we have an option to disable using the Windows Debug API? (probably just another #ifdef ... #endif). Probably the most simplest to implement.
  2. Allow the program implementing Zep to handle the logs in its own way. (probably some kind of call-back) Would be useful for me because I have my own Logger, but probably the hardest implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions