Code::Blocks Forums

User forums => Help => Topic started by: ShiroAisu on October 22, 2011, 02:36:21 pm

Title: CB tries to link a single file when i try to build it
Post by: ShiroAisu 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.
Title: Re: CB tries to link a single file when i try to build it
Post by: Alpha 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)?