User forums > Using Code::Blocks

"That file isn't assigned to any target" message when trying to build [solved]

(1/1)

astroannie:
Running code::blocks in Linux Mint 17.3 and I apparently didn't have g++ installed initially.  I remedied that, but it kept not compiling.  So I tried just compiling the one file (It's a one-file project).

EDITED TO ADD BUILDLOG



--- Code: ----------------- Build: Debug in RollDIce (compiler: GNU GCC Compiler)---------------

Linking stage skipped (build target has no object files to link)
Nothing to be done (all items are up-to-date).

--- End code ---
I tried uninstalling and reinstalling code::blocks.  I tried resetting gcc to the defaults under compiler options.  I tried deleting the .codeblocks from my home directory.  None of that worked.

Suggestions, please.

BlueHazzard:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

stahta01:
Edit the file properties inside CB and add it to a build target!

Tim S.

Navigation

[0] Message Index

Go to full version