User forums > Help

New to code blocks - compiling and decompiling

(1/2) > >>

chessguy:
Greetings all. Ok, here is my story. I have slight background programming expierience. However, I am new to the need to have a compiler/debugger/IDE. IT is all a bit of a mess for me. I don't know much in terms of anything right now, but I am currently learning C++. Meaning, I need, at least, to be able to test run (debug) programs. I have no clue on how to compile them either, but I assume it'd be the same problem. I'd be glad to know the ins and outs of using it, but right now I just want to learn and get it to work. Right now, it seems a bit more than I need. All I really want is debugging, compiling... color-coding is useful however. Thus, I found my way to an IDE.

Long story short, I installed everything - basic stuff, othe rplugins, MinGW, etc. When I try to debug (start), it says... it isn't set. Go to toolchain exutables, etc. I did. I couldn't ifnd, however, which debug program you are supposedf to link to, or decompiler. Which makes it kind of useless currently.

Can anyone help me get started with this? It is a bit frustrating currently.
Thanks.

stahta01:
What is the name and version of your Compiler?

Tim S.

chessguy:
Thanks for replying.

As per compiler, none, really. I installed code blocks and the Min GW compilers and that stuff, if it helps. Not that I k now much about that, though.

Alpha:
I think you should start by reading up on your terms:

* What is Code::Blocks?
* Compiler
* Linker
Then read the relevant parts of Installing a supported compiler (pay special attention to Compiler-neutral setup steps).

And finally:

* Creating a new project
* Debugging with Code::Blocks
If you are still unable to get it to work, post another question here (hopefully the above reading will enable you to find more specifications).

chessguy:
I read up on all of those articles, actually. Except on linking. I wasn't sure if linking or decompiling were part of debugging... for instance, MinGW has the debug program gdb.exe. I was a bit confused on the matter...

When I do auto detect, it switches to:

C:\Program Files\Microsoft Visual Studio 8\VC

Which is interesting... I tried to install visual studio but it failed. Unless, that is the installer. Either way. Hm.

Currently, The code blocks folder (and thus, MinGW within) are located directly on c:\

c:\Code Blocks, etc.

That is about all I know, currently. If I make a new project, edit the main.cpp, and trydebug > start, I get:


Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Programming\y\
Adding source dir: C:\Programming\y\
Adding file: bin\Debug\y.exe
Starting debugger:
failed


also, win a single file (not a project), there is no color coding , and in the debug start is grayed out. I am not very used to using multiple files for one .exe, (though I am sure I will learn that soon), and this is wh y the term of projects and th elike are a bit confusing for me. Is this significant?



PS: While I was making a new project to debug and get the above, C:B crashed. Mabye I am cursedd...

Navigation

[0] Message Index

[#] Next page

Go to full version