Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
empty file
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: empty file (Read 5100 times)
pronoob?
Guest
empty file
«
on:
December 19, 2012, 04:04:27 pm »
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.
«
Last Edit: December 19, 2012, 04:08:24 pm by pronoob?
»
Logged
MortenMacFly
Administrator
Lives here!
Posts: 9723
Re: empty file
«
Reply #1 on:
December 19, 2012, 06:04:12 pm »
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?
Logged
Compiler logging
: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual
:
https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ
:
https://wiki.codeblocks.org/index.php?title=FAQ
Alpha
Developer
Lives here!
Posts: 1513
Re: empty file
«
Reply #2 on:
December 19, 2012, 11:08:43 pm »
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.
Logged
dmoore
Developer
Lives here!
Posts: 1576
Re: empty file
«
Reply #3 on:
December 19, 2012, 11:55:16 pm »
Build -> Compile current file
Logged
Python plugins:
https://github.com/spillz/codeblocks-python
Code::Blocks Daily Builds -- Ubuntu PPA:
https://launchpad.net/~damien-moore/+archive/codeblocks
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
empty file