Skip to content

Add CMake support and fix Linux/GCC compatibilityx#1

Open
mnasies wants to merge 1 commit into
yangjufo:masterfrom
mnasies:master
Open

Add CMake support and fix Linux/GCC compatibilityx#1
mnasies wants to merge 1 commit into
yangjufo:masterfrom
mnasies:master

Conversation

@mnasies

@mnasies mnasies commented May 2, 2026

Copy link
Copy Markdown

Hi, I've been building something similar and was going through your repo to learn more about C++. I struggled a bit setting it up on WSL/VSCode so I made some changes so others won't have to.

  • Added CMakeLists.txt to allow building on Linux and WSL without Visual Studio
  • Fixed missing standard library includes (, , ) that MSVC provided implicitly but GCC requires explicitly
  • Replaced Windows-only _itoa() calls with portable sprintf()
  • Added a .gitignore file

Tested on Ubuntu 24.04 via WSL
Happy to make any changes if needed.!

- Added CMakeLists.txt to allow building on Linux and WSL without Visual Studio
- Fixed missing standard library includes (<cstring>, <cstdio>, <cmath>) that
  MSVC provided implicitly but GCC requires explicitly
- Replaced Windows-only _itoa() calls with portable sprintf()
- Added a .gitignore file

Tested on Ubuntu 24.04 via WSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant