Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: astroannie on August 28, 2016, 05:39:05 pm

Title: "That file isn't assigned to any target" message when trying to build [solved]
Post by: astroannie on August 28, 2016, 05:39:05 pm
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).
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.
Title: Re: "That file isn't assigned to any target" message when trying to build
Post by: BlueHazzard on August 28, 2016, 09:10:25 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Title: Re: "That file isn't assigned to any target" message when trying to build
Post by: stahta01 on August 28, 2016, 11:19:01 pm
Edit the file properties inside CB and add it to a build target!

Tim S.