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.
Using C++ Standard Library and using OGL with CL
-
- CodeLite Enthusiast
- Posts: 38
- Joined: Wed Oct 03, 2012 12:19 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Using C++ Standard Library and using OGL with CL
I want to believe.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Using C++ Standard Library and using OGL with CL
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 wrongFox 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 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" itFox 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?
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-colonFox 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 cant (from within codelite). The left side tree is a native windows' tree. This means it takes the colors of your system schemeFox 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 .
Eran
Make sure you have read the HOW TO POST thread
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Using C++ Standard Library and using OGL with CL
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 wrongFox 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 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" itFox 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?
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-colonFox 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 cant (from within codelite). The left side tree is a native windows' tree. This means it takes the colors of your system schemeFox 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 .
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 38
- Joined: Wed Oct 03, 2012 12:19 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Using C++ Standard Library and using OGL with CL
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.
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.
I want to believe.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Using C++ Standard Library and using OGL with CL
Make sure you have read the HOW TO POST thread