User forums > Using Code::Blocks

Code::Blocks/compiler? bungling up on first program: Hello, World!

(1/2) > >>

theAdmiral:
Following the subject line, CodeBlocks was generating an error in the window pane at the bottom that shows five tabs for reference.  The build log had its tab open, and the error showing indicated to me, as best as I understood it, that there needed to be a couple of lower level directories below that directory where the project was (the project was named 21Days, from the title of the book I am working from).  I then placed the indicated directories under the project directory.  The two directories were \bin and \Debug.  As as I could tell, that is all that was needed and indicated by the error message.  However, when I tried to run "Hello World", I got an error message in the tab for the Build log.  The error message reads "Linking stage skipped (build target has no object files to link).  Nothing to be done."

This is where I would like some help, please.  How do I get my program to run given this error message, and how do I fix the error?  It really doesn't tell me much as I am a novice user.

Thanks,
theAdmiral

killerbot:
seems your project setup might be incorrect.

Can you add here in a zip file your project ?

Is your compiler installed correctly ? Which OS ?

theAdmiral:
I am sorry about this, but like I said, I am really new to Code::Blocks.  I used to program in Java, and I think there are similarities between the two IDEs.  However, there are also differences.  And at that point, when I notice the differences, is one of the ways that I get stuck.  For example, can't find a feature in CB to compress files.  Is one there?  How would you suggest I send you a compressed file?  Also, in desperation of trying to get the damn thing debugged and working, I am creating objects throughout the 21Days directory that show up in the navigation pane, but only partially show up in the Windows folder, and vice versa.  Could we take it one step at a time?  I see that you are an uberuser.  But this kid is just taking his first steps with Code::Blocks, and recovering from a long hiatus from C++.  Thanks, theAdmiral.

killerbot:
ok :

1) compressing : outside CB --> just zip the project tree

BUT FIRST :

2) how did you create the project ?

theAdmiral:
I believe it was File | New | Project | Empty Project.  Beyond that I am unsure.

Navigation

[0] Message Index

[#] Next page

Go to full version