Author Topic: CB tries to link a single file when i try to build it  (Read 2326 times)

ShiroAisu

  • Guest
CB tries to link a single file when i try to build it
« on: October 22, 2011, 02:36:21 pm »
Hi

When i try to build one of the files in my project (a specific one) CB tries to create an executable by linking only that single file...

What am i doing wrong here?

I can offer not much more information about the problem, but just moments ago i could build the file fine and it would build normaly.

I can still compile the whole project correctly and it will link correctly, so the problem only occurs when i try to build that specific file.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: CB tries to link a single file when i try to build it
« Reply #1 on: October 24, 2011, 12:40:28 am »
It is correct behavior for Code::Blocks to attempt to compile and link a single file if no project is open.

Is there a reason why you are trying to compile (but not link) a single file (instead of the whole project)?