MitchellSternke / SuperMarioBros-C

An attempt to translate the original Super Mario Bros. for the NES to readable C/C++
625 stars 70 forks source link

How can I compile the code on windows? #12

Open UselessMachine opened 5 years ago

UselessMachine commented 5 years ago

How do I compile the code on windows, is it possible with visual studio?

MitchellSternke commented 5 years ago

Hi @UselessMachine, I have not tried building this with Visual Studio, although CMake should be able to create a Visual Studio solution from the CMakeFiles.txt script in the repo.

Otherwise, you can try creating your own Visual Studio project and adding the .cpp/.hpp files found in the /source directory of the repo. You technically don't need Flex/Bison as dependencies unless you want to generate SMB.cpp yourself (there's already a copy of this provided). As long as you have the other dependencies listed in the README it should compile with VS.

Let me know if you run into issues.

stephyswe commented 1 year ago

Hi, I manage to compile with CMake but is there any tips how to add bison and flex?

Anonymous3-a commented 9 months ago

The user "Warsen" made a a fork of this project that uses visual studio.