Page 1 of 1
Using C++ Standard Library and using OGL with CL
Posted: Thu Dec 06, 2012 2:07 am
by Fox Mulder
Hello,
Im very new to the CodeLite IDE and have some Questions.
1.If I want to use the STL for example the "iostream" object I need to tell codlite where the .hpp files are. Is there any option to make the paths as standart for Codelite? For now I had to give codlite every path manually for every project.
2.I know this is a mingw question but... How can I use the OpenGL with CodeLite. For now I copied the OpenGL32.lib from somewhere else in the mingw/lib folder and uses the gl.h header from MinGW-4.6.1\include\GL folder. Why the include the header but not the lib file of openGl, or is there a diferent name?
3.Some time past I red a post how to use the plain WinApi with codeLite without the console - there was something with mWindow option but I cant remember exactly. And I cant find the post. Do I need to tell Codelite to link with the win specific libs (kernel32...)?
4. I have customized my colours to a darker theme - is there a way to customize the background of the left explorer panel .
Thanks.
Re: Using C++ Standard Library and using OGL with CL
Posted: Thu Dec 06, 2012 1:21 pm
by eranif
Fox Mulder wrote:1.If I want to use the STL for example the "iostream" object I need to tell codlite where the .hpp files are. Is there any option to make the paths as standart for Codelite? For now I had to give codlite every path manually for every project.
This sounds very strange to me. If your compiler can't find basic things such as "iostream" - then there is something wrong with your compiler. Maybe explaining us what was the problem that you were trying to solve will give us a clue on what you are doing wrong
Fox Mulder wrote:2.I know this is a mingw question but... How can I use the OpenGL with CodeLite. For now I copied the OpenGL32.lib from somewhere else in the mingw/lib folder and uses the gl.h header from MinGW-4.6.1\include\GL folder. Why the include the header but not the lib file of openGl, or is there a diferent name?
This sounds WRONG to me. You should not copy any files from MinGW *lib* folder, again show us what was your initial problem - not how you "fixed" it
Fox Mulder wrote:3.Some time past I red a post how to use the plain WinApi with codeLite without the console - there was something with mWindow option but I cant remember exactly. And I cant find the post. Do I need to tell Codelite to link with the win specific libs (kernel32...)?
You need to pass -mwindow to the linker (right click on your project settings -> common settings -> linker) and add -mwindows. If you have other options there, separate them with semi-colon
Fox Mulder wrote:4. I have customized my colors to a darker theme - is there a way to customize the background of the left explorer panel .
You cant (from within codelite). The left side tree is a native windows' tree. This means it takes the colors of your system scheme
Eran
Re: Using C++ Standard Library and using OGL with CL
Posted: Thu Dec 06, 2012 1:24 pm
by eranif
Fox Mulder wrote:1.If I want to use the STL for example the "iostream" object I need to tell codlite where the .hpp files are. Is there any option to make the paths as standart for Codelite? For now I had to give codlite every path manually for every project.
This sounds very strange to me. If your compiler can't find basic things such as "iostream" - then there is something wrong with your compiler. Maybe explaining us what was the problem that you were trying to solve will give us a clue on what you are doing wrong
Fox Mulder wrote:2.I know this is a mingw question but... How can I use the OpenGL with CodeLite. For now I copied the OpenGL32.lib from somewhere else in the mingw/lib folder and uses the gl.h header from MinGW-4.6.1\include\GL folder. Why the include the header but not the lib file of openGl, or is there a diferent name?
This sounds WRONG to me. You should not copy any files from MinGW *lib* folder, again show us what was your initial problem - not how you "fixed" it
Fox Mulder wrote:3.Some time past I red a post how to use the plain WinApi with codeLite without the console - there was something with mWindow option but I cant remember exactly. And I cant find the post. Do I need to tell Codelite to link with the win specific libs (kernel32...)?
You need to pass -mwindow to the linker (right click on your project settings -> common settings -> linker) and add -mwindows. If you have other options there, separate them with semi-colon
Fox Mulder wrote:4. I have customized my colors to a darker theme - is there a way to customize the background of the left explorer panel .
You cant (from within codelite). The left side tree is a native windows' tree. This means it takes the colors of your system scheme
Eran
Re: Using C++ Standard Library and using OGL with CL
Posted: Thu Dec 06, 2012 9:46 pm
by Fox Mulder
Ok I try,
all I want to do is to create an empty project an link the OpenGl lib to it.
I downloaded the CodeLite files for Windows "CodeLite + mingw" and installed it.
If i try to type #include <iostream> std::cout - compiler tells me it cant find the file iostream,
than i gives him the path to iostream but since iostream includes c++configure.h compiler cant find this file so I route him to this file.
After a few such steps i can build my project without errors. Now I give him the path to gl.h couse I include it but then it needs the lib to link with. I searched in the mingw folder for "OpenGL32.lib" but could not find it there so I searched for it on my system drive and found it in a Microsoft folder - I think couse I installed VS2012 - so i copied this file from there to the Mingw/lib folder, and ad the lib in project settings. Now it works fine but alot a afford just to use StL and OpenGl so I asked here. It seems Codelite cant see the Mingw folder structure. Mayby I should reinstall all. But where is the OpenGL lib. There is a header file in the Mingw folder but no lib.
Re: Using C++ Standard Library and using OGL with CL
Posted: Thu Dec 06, 2012 9:55 pm
by eranif
Please use this thread to provide as much as info as you can:
HOW TO POST - PLEASE READ
Eran