News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Graphics Libraries that work with codeblocks

Started by CodeGuy, February 18, 2010, 05:02:00 AM

Previous topic - Next topic

rcoll

Quote from: CodeGuy on February 25, 2010, 01:32:16 AM
Pressing a simple button and the program debugging is all that I've ever experienced in the past. Why should code::blocks be any different?

Then, in the past, you have used more simple systems; probably the type of systems schools use to teach students.

But Code::Blocks is one of the most advanced (and therefore complicated) build systems in the world today.  Don't let the price (i.e. free) fool you, this is NOT a system to learn on.  This is for advanced software engineers who have a specific goal in mind, and a specific plan on how to get there.

Quote from: CodeGuy on February 25, 2010, 01:32:16 AM
So much time has been fucking wasted, my frustration builds!

This is going to be true for every new system that you ever use.  Be nice, be patient, and all will come to you in time.

Ringo

oBFusCATed

CodeGuy, you're still here?  :P

Have you read this: http://forums.next.codeblocks.org/index.php/topic,9996.0.html ?

If you want to be a c++ programmer change your attitude else you're doomed!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

CodeGuy

Sorry, I've been an ass.

Should I download the mingw installer? I have vista, and the webpage I got it from said mingw is unstable on vista.

I don't know how to use the openGL library. Do I need to download it? How do I get it to work with my program? I know how to code it into my program somewhat (#include<iostream.h> for example) but not how to get it to find that header and work with my program. I did try MVSE, but it won't install on my machine. They won't help me at the forums for that compiler, that is the one I prefer because it is the only one that runs the language I like (a microsoft language, VB.net, I'm just comfortable with it and the hassle required to get libraries working (something I don't know how to do) makes me lean more to that than any other language)). They were helping for a while but I got busy and stopped posting for about 4 days, then no matter how many bumps I make no one will even reply! Its as if they see my name as the last reply and assume I got my problems fixed!

The problem is that when I try and run a hello world! Program, I get a message box saying that the debugger executable is not set and I need to set it by going into some menu tab and find the programs tab then change something. I went there, and couldn't find a programs tab. That is the main problem, how do I set the debugger executable? I run windows vista, and I downloaded and installed the non MingW executable installer.

Seronis

1.  install MinGW from http://www.tdragon.net/recentgcc/.   Its vista/win7 friendly.
2.  install codeblocks that DOES NOT include a bundled mingw.  Preference is to install the latest 'nightly release' avialable from the forums.  if you get the one from the forums make certain you dont forget to download the  wxWidgets dll that is mentioned in addition to the CB archive.
3.  its   #include <iostream>   in C++ for standard headers.   no  *.h
4.  as for your debugger issue  TDMs installer will install a compatible debugger at the same time
5.  if i recall right opengl headers are already in a standard install and dont need seperate installation

See how well that info helps you out and post back.  At a minimum that should be enough for you to have 'hello world' compile and debugable.

CodeGuy

I did all that Seronis, it debugs/compiles, but now I'm getting errors from a perfect hello world program.

Here's a pic:

http://img32.imageshack.us/i/69995552.jpg/


Also when I try and debug with another project, nothing happens. The program just sits there.

Seronis

well  <iostream>  isnt a legal  'C'  library.   Only 'C++'.   you created a C project judging by the extension on your file names.

CodeGuy

Ok, why are they always C? I made a new file, and its back to giving me that error about the debugger executable. Do I need to install the mingw somewhere in the code::blocks directory?

MortenMacFly

Look:
By definition:
- *.c files are C files (guess what the extension stands for), so they are operated by the C compiler.
- *.cpp (*.cc, *.c++, *.cxx...) files are C++ files and are operated by the C++ compiler.

Don't put C++ code in C files, otherwise the C compiler will complain and error (as it doesn't not know C++). However, you can put C code in C++ files.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

CodeGuy

Yes I knew that, but how do I create a C++ file? I've been going to File>New>Project then selecting empty project (since I'm not doing anything with ogre, or lightfeather or whatever). Then I go back to File>New>empty file. I did some searching and that didn't help. I typed .cpp after the filename when creating a new file, the second step, but again I get the debugger problem! How do I make sure its compiling or whatever as a C++ file, and how do I get it to debug once I've done that???

evstevemd

I guess with full respect you need to brush up some concept:
1. What is Compiler
2. What is source code and hence source code editor
3. What is C/C++ their basic difference
4, What is Ide

Once done on that (Some few hours may be), Start with some forums that specializes on C++ like my favorite DaniWeb forum. If you have Code::Block problem then you come back here  :D
IMHO
Steve

MortenMacFly

Quote from: CodeGuy on March 03, 2010, 12:48:30 AM
- File>New>Project then selecting empty project
- File>New>empty file
If you do this, the file is not yet added to the project. To do so, you'll either go to the project options and add the file there or you use File -> New -> File... -> C/C++ header or C/C++ Source and answer the following queries right.

"File -> New empty file" does exactly that: Only create a new empty file. Not belonging to a project. Nothing.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

CodeGuy

WHY won't you tell me how to get the fricking thing to compile?! I've asked you multiple times and every single time you've skirted around it! The information on this is NOWHERE else I've searched! Google, the forum search, reading the forum stickies whatever! Its NOWHERE!

I know the difference between C and C++, I know they are two separate programming languages, but are very close in syntax and function because they were developed by the same person and derived from each other. Those other things you are suggesting I research are a good idea I will look into that.

MortenMacFly

Quote from: CodeGuy on March 04, 2010, 03:08:29 AM
WHY won't you tell me how to get the fricking thing to compile?!
Because I don't understand that question. Once you've added the file to a project just hit the compile button. (If that's what you are asking for.) Consult the C::B documentation if in doubt where this button is.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

CodeGuy

Ok, I click on debug/continue to start debugging, and this appears and it won't let me do anything:


MortenMacFly

#29
Quote from: CodeGuy on March 04, 2010, 06:20:56 PM
Ok, I click on debug/continue to start debugging, and this appears and it won't let me do anything:
So why don't you do what's written in the message?

Also read this again:
http://forums.next.codeblocks.org/index.php/topic,12040.msg81824.html#msg81824

I've the feeling we are moving in circles...

Edit:
To close this discussion: Have a look at the image attached. Also read the sentence in red on that dialog. Use your explorer to verify.

(Topic locked as further discussion leads to nowhere.)

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]