Never got this error DEV-C++: Permission Denied
Author |
Message |
QuantumPhysics
|
Posted: Thu Dec 27, 2012 11:16 pm Post subject: Never got this error DEV-C++: Permission Denied |
|
|
code: |
%:include <stdio.h>
%:include <locale.h>
%:include <time.h>
%:include <wchar.h>
%:include <stdlib.h>
main ()<%
setlocale(LC_ALL, "en_US.UTF-8");
setlocale(LC_TIME, "ja_JP");
wchar_t str[100];
time_t t = time(NULL);
wcsftime(str, 100, L"%A %c", localtime(&t));
wprintf(L"Date: %Ls\n", 3.14, str);
return EXIT_SUCCESS;
system("pause");
%>
|
I am trying to make a program to output the current time, and date to 16-bit unary.
When I compile my code I get an error : Permission Denied
Can someone explain to me why this is? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
A.J

|
Posted: Fri Dec 28, 2012 12:21 am Post subject: RE:Never got this error DEV-C++: Permission Denied |
|
|
This could be happening because you program hasn't been properly closed. If you're using Windows, open up task manager and manually end the process that pertains to your program's .exe. |
|
|
|
|
 |
QuantumPhysics
|
Posted: Fri Dec 28, 2012 10:24 am Post subject: Re: Never got this error DEV-C++: Permission Denied |
|
|
Everything is closed. I restarted my computer anew and it doesn't work. But when I write another program - for example one that attaches threads to a queue on socket dial, it works. When I write a hello world program it gives the same error. This error generally occurs when I am writing with .c extension. |
|
|
|
|
 |
|
|