User forums > Using Code::Blocks

compilation error

<< < (2/3) > >>

MortenMacFly:

--- Quote from: rexona on November 17, 2005, 03:01:48 pm ---i've tried that so many times, but still cannot work  :(

--- End quote ---
You might want to try the OpenGL template provided with Code::Blocks. This normally works and you can copy/paste the settings.
You might also install the OpenGL DevPack (use the DevPack plugin for download) to make sure you have the right libraries and other "stuff" installed.

Morten.

rexona:

--- Quote ---You might want to try the OpenGL template provided with Code::Blocks. This normally works and you can copy/paste the settings.

--- End quote ---

can you tell me please how to do that?

what do i need in my slackware to do opengl project?

MortenMacFly:

--- Quote from: rexona on November 18, 2005, 12:27:46 am ---can you tell me please how to do that?

--- End quote ---
Open Code::Blocks, select "File" -> "New Project...". Scroll down in the templates and seelect the "OpenGL Application". Click on "Create". Right-Click on the project and veryfiy the settings made in the project options and build options. Especially make sure the path's is setup (added) in a way the compiler can find the OpenGL libs and headers.

Morten.

rexona:
i couldn't find the "OpenGL Application" template :( so how?

sorry and thx

MortenMacFly:

--- Quote from: rexona on November 20, 2005, 10:20:31 am ---i couldn't find the "OpenGL Application" template :( so how?

--- End quote ---
I didn't notice that you are now on slackware. Your first post was about an ".exe " so I thought this in a Win32 application. The OpenGL template is only available for Windows. Sorry. But: I guess it should be easy possible to adopt the template for Linux. You might want to download the source code of Code::Blocks, extract the OpenGL template (it's under templates\win32) and give it a try.

I don't have access to a Linux box otherwise I would provide you with it.

Morten.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version