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
»
problem regarding compiler
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: problem regarding compiler (Read 2766 times)
shubham1251997
Single posting newcomer
Posts: 2
problem regarding compiler
«
on:
February 14, 2016, 04:35:23 pm »
well i have created two sourcefiles in the project named main and prg2 . when i try to run prg the main gets executed.
can anyone help me in executing prg2.
note- i have the main function in the" main"
«
Last Edit: February 14, 2016, 04:37:06 pm by shubham1251997
»
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: problem regarding compiler
«
Reply #1 on:
February 14, 2016, 05:43:51 pm »
A single target can have just a single output file (exe, dll/so, a/lib).
If you want to have multiple outputs in a project just create multiple targets.
Project -> Properties -> Build targets.
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
shubham1251997
Single posting newcomer
Posts: 2
Re: problem regarding compiler
«
Reply #2 on:
February 15, 2016, 10:28:26 am »
thanks...but could you be a little more specific.
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: problem regarding compiler
«
Reply #3 on:
February 15, 2016, 10:32:28 am »
Create two targets. Add one file in each target.
Then in the compiler toolbar you can select which target is active.
Build & run the target.
If something is unclear ask specific questions.
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
problem regarding compiler