Author Topic: "That file isn't assigned to any target" message when trying to build [solved]  (Read 8475 times)

Offline astroannie

  • Single posting newcomer
  • *
  • Posts: 2
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.
« Last Edit: August 29, 2016, 03:56:53 am by astroannie »


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7179
    • My Best Post
Re: "That file isn't assigned to any target" message when trying to build
« Reply #2 on: August 28, 2016, 11:19:01 pm »
Edit the file properties inside CB and add it to a build target!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org