News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

empty file

Started by pronoob?, December 19, 2012, 04:04:27 PM

Previous topic - Next topic

pronoob?

while im working on a project everythings fine. in order to test a code piece i opened a new empty file and put the code then "build and run" but the code in empty file is not compiled. instead the one in main project is compiled. I'm doing C programming. Why is it not compiled?any other way to test a code pice away from main proj? Thanks in advance. ;D

MortenMacFly

Let me ask you a similar question: I have two files the one works, the other not. Why?

See how little information you provided? What answer do you expect?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Alpha

As a guess, you have a project open, and the file that is not compiling is not part of the active target (and maybe not even part of the project).
But this is just a guess; you have provided very little information.

dmoore

Build -> Compile current file
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]