-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunOpenGL.bat
More file actions
24 lines (22 loc) · 764 Bytes
/
Copy pathRunOpenGL.bat
File metadata and controls
24 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REM How to Use this bat file
REM Follow step by step below
:: Install or Download MingGW and save it in a specific folder
:: Download Freeglut and config it below
:: -copy include and bin folder into MinGW
:: -go to "bin folder" and copy freeglut.dll in to System32 and SysWOW64
:: Extract the bat.(zip) and copy it into your folder
:: set your project name like this "main.c"
:: Run This.bat
:: Done
del %1.exe
del %1.o
REM
echo "Running \m"
@REM gcc -c -o main.o main.cpp -I\"D:\CodeBlocks\MinGW\x86_64-w64-mingw32\include"
g++ -c -o %1.o %1.cpp -I\"D:\CodeBlocks\MinGW\x86_64-w64-mingw32\include"
cls
echo "Compiling Graphic"
g++ -o %1.exe %1.o -L\"D:\CodeBlocks\MinGW\x86_64-w64-mingw32\lib -lopengl32 -lglu32 -lfreeglut"
cls
echo "App Running"
%1.exe