Skip to content

ahmedshakill/WinBGIm-64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinBGIm 64 bit

example branch main

Solution for graphics.h libbgi error

This build of libbgi.a is compatible with 64 bit compiler. Which means you can link against it without linker error or where linker says it can't find libbgi.a cause 64 bit compiler ignores 32 bit build of the library.

Win32 system calls have been updated to reflect the changes in win32 api for 64 bit compatibility.

Link to original source http://winbgim.codecutter.org/

To Build and Run

You can build and run this project directly and write your graphics program on top of it.

For that
  • Clone the repo using
    git clone https://github.com/ki9gpin/WinBGIm-64
    
  • Make sure GCC and CMake are installed properly and accessible from command line. Otherwise insatll GCC (TDM64 or Mingw64) . Install CMake .

VS Code

  • If You are using VS Code then open the WinBGIm-64 folder there.
  • VS code will suggest necessary extensions install them. Or manually search for cmake in extensions and install the ones from microsoft.
  • You will see a bar with cmake functionality down in the VS Code window or just close VS Code and reopen the folder and you will see the expected bar.
  • If you see the bar then to build the project click on build and if you can't see the bar then you can build manually by pressing CTRL+SHIFT+P to get command pallete and selecting CMake Build.
  • May be watching a video tutorial will help you if you are confused .It's easier than you think.
  • You can then go to test folder and modify test.cpp or write your own graphics code in the file.

Code::Blocks

  • Make sure CMake and MinGW are added to path
    echo %PATH%
    

If not, add them to path

  set PATH=%PATH%;C:\Program Files\CMake\bin;C:/Program Files/CodeBlocks/MinGW/bin
  • Build using cmake
    cmake -G "MinGW Makefiles"
    cmake --build .
    
  • You can then go to test folder and modify test.cpp or write your own graphics code in the file.