News:

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

Main Menu

problem regarding compiler

Started by shubham1251997, February 14, 2016, 04:35:23 PM

Previous topic - Next topic

shubham1251997

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"

oBFusCATed

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.
(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

thanks...but could you be a little more specific.

oBFusCATed

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.
(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!]