Skip to content

Add CMake support and fix Linux/GCC compatibilityx#1

Open
etcoder-642 wants to merge 1 commit into
yangjufo:masterfrom
etcoder-642:master
Open

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

Conversation

@etcoder-642

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