OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Code Blocks Compiler Setup
View page
Source of version: 6
(current)
%prevogre% {DIV(class="Layout_box1")}{SPLIT(colsize=15%|85%)} {img src="img/wiki_up/CBsplash.jpg" alt="CBsplash.jpg"}--- {DIV(class="bigBold")}Using Ogre with Code::Blocks + MingW{DIV}{SPLIT}{DIV} {img src="img/wiki_up/CB_FirstStart.png" alt="CB_FirstStart.png"} The first time you run Code::Blocks you will get the dialogue pictured above. {img src="img/wiki_up/CB_SetDefaultComp.png" alt="CB_SetDefaultComp.png"} No compilers are selected as the default, so select the gcc compiler. It is now the default compiler. Select OK and the Code::Blocks IDE should start up. {DIV(class="Layout_box4")} __WARNING:__ If you have several different MinGW versions installed, Code::Blocks will only select the first one it finds. For those migrating from Dev-cpp, this can be a problem, since Code::Blocks will probably find the Dev-cpp installation of MinGW before the one you just installed. The Dev-cpp installation uses MinGW 3.4.2 which will not work with the Ogre SDK.{DIV} {img src="img/wiki_up/CB_SetC_D.jpg" alt="CB_SetC_D.jpg"} Open up the Compiler/Debugger settings dialogue. {img src="img/wiki_up/CB_CompilerSettings.png" alt="CB_CompilerSettings.png"} Make sure that the Compiler Installation Directory is set to your MinGW C++ Toolbox directory. You can use the little button to the right of the directory entry field to navigate to the correct directory. Also make sure that the paths in Search Directories settings are pointing to valid MinGW C++ Toolbox sub-directories. If you have older MinGW installations or cygwin installed make sure that MinGW C++ Toolbox directory paths are positioned before any other mingw/cygwin paths in the PATH environment variable. The MinGW C++ Toolbox installer does not seem to correctly set the PATH environment variable so you will probably have to set it manually.
Search by Tags
Search Wiki by Freetags
Latest Changes
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
...more
Search
Find
Advanced
Search Help
Online Users
31 online users