Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: rohitprogammer on January 29, 2013, 10:15:56 am

Title: i'm newbie so tell me this
Post by: rohitprogammer on January 29, 2013, 10:15:56 am
i've made new project in compiler but when i put this code and try to built
#include <stdio.h>
int main()
{
    printf( "Hello world! \n" );
    return 0;
}
It shows me this erorr message
ld.exe||cannot open output file C:\Program Files (x86)\my\main.exe Permission denied| ld.exe||cannot open output file C:\Program Files (x86)\my\main.exe Permission denied| ||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===| so please tell me how can i fix it
Title: Re: i'm newbie so tell me this
Post by: jarod42 on January 29, 2013, 10:25:40 am
Avoid to use directory with restricted permission like C:\Program Files (x86)\
Title: Re: i'm newbie so tell me this
Post by: rohitprogammer on January 29, 2013, 10:32:01 am
can you please clarify me
Title: Re: i'm newbie so tell me this
Post by: scarphin on January 29, 2013, 10:50:24 am
Use another folder for your project files like 'C:\projects\myFirstProject' or something.
Title: Re: i'm newbie so tell me this
Post by: rohitprogammer on January 29, 2013, 08:04:50 pm
thank you all i got my answer