User forums > Using Code::Blocks
Linking lib's in C::B
perento:
Just starting to learn openGL , this article is for working with Visual C++, but I honestly dont feel comfortable with it.
http://nehe.gamedev.net/tutorial/creating_an_opengl_window_(win32)/13001/# The first few lines make me ask the next question.
--- Quote ---After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you've done this click on OK. You're now ready to write an OpenGL Windows program.
--- End quote ---
How can i link those while in Code::Blocks IDE?
I relly dont get into Visual C++ and feel very uncomfortable, is there a way to stay with Code::Blocks for those tutorials?
Thanks!
jarod42:
In Project -> Build options... ->
Linkers settings : Link libraries
and Search Directories
'Compiler' for paths where search include
'Linker' for paths where search libraries.
Note also that VC libraries are not compatible with gcc.
So, choose libraries compatible with your toolchain.
perento:
Ok and wich one is the Win32 Application? I see only Win32 GUI project.
And, OpenGL32.lib GLu32.lib and GLaux.lib, are they compatible with my toolchain (I dont know what is, or how to check it, please excuse, its my first time setting up something different than creating a C++ simple project).
Thanks!
perento:
Sorr yfor the double post, one last question please.
Does Code::Blocks support Win32 Aplication (Not console aplication) ? Thanks.
MortenMacFly:
--- Quote from: perento on June 27, 2012, 01:44:13 pm ---Does Code::Blocks support Win32 Aplication (Not console aplication) ? Thanks.
--- End quote ---
Yes. C::B supports everything a compiler can create. If your compiler can compile Win32 code (which all Win32 compilers do) then yes.
Navigation
[0] Message Index
[#] Next page
Go to full version