Tutorial 01
Compiler setup
Hello everyone
This section will explains how to setup your compiler
currently we use Microsoft Visual Studio for work and explain how to configure it ,but you will also be able to understand everything if you are using a different one.
for start we need some Requirements:
- Latest Version of pre build KGE
- Nvidia PhysX System Software
- and nothing More:D
Step 1:
Open Microsoft Visual Studio on your computer and in Menu Select then .
in the appear Window ,in Section  Select and in Section Select then on the bottom of this window you can see Text Box, choose a name for your project and in Text Box Choose a Path for save Projects Files for example “c:\KGE\test1\” , Button Can help you to find your path easier.
Click OK Button.
Win32 Application Wizard is Start Automatically,Click on the Button
in the “Application Settings” Page of Wizard Window Choose and Checked option
You have to include the header file <kge.h> in order to use the engine.The header file can be found in the KGEÂ SDK directory "Include".
Let’s explain shortly how to specify this file in Microsoft Visual Studio:( maybe different for every IDE and compiler you use )
- if you use Microsoft Visual Studio 6.0,Select Menu and select ,In the Option Window Select Tab , and select the ‘Include’ Item in the combo box , now Add the ‘include’Â Directory path of the KGE engine folder to the list of directories,Now the compiler will find the “kge.h” header file.
Compiler also need to find the library files of engine,So select the ‘Library’ item in the combo box and add the “Libs” directory of the engine and also add the “Debug” directory of engine to find “kge.lib”
- If your IDE is Visual Studio .NET , Select menu and select .Select the projects entry and then select . Select ‘show directories for include files’ in the combo box , and add “Include” Directories of KGE engine.
Compiler also need to find the library files of engine,so stay in that dialog , select ‘show directories for Library files’ and add the libs directory of engine and also add the “Debug” directory.
Click Button.
That’s it. With your IDE set up like this, you will now be able to develop applications with the Kochol Game Engine.
Lets start!
Just write this program and compile it to make sure that you do all thing right.
#includekge::Device* pDev; int main() { pDev = new kge::Device(); return 0; }
- pragma comment(lib, "kge.lib")


