linker error
HAROLD ROSENKRANS <[email protected]> Sat, 18 Jul 2020 02:39:46 +0000
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <MWHPR15MB13764E18CEFD965301632A5EF07D0@MWHPR15MB1376.namprd15.prod.outlook.com> |
Hello – I am on a Windows 10,64-bit machine. I installed the MinGW basic installation.
When I tried to compile my first hello world program from the command line.
#include <stdio.h>
int main() {
printf("Hello, This is cool! \n");
return 0;
}
D:\java\gcc HelloWorld.c -o D:\java\Hello.exe
no executable. I tried it first with -o Hello.exe, same result
The compiler acts like it’s doing something, no errors but no output. So I ran it with the -v switch and got (among other things)
d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Hello.exe: Permission denied
I am running the command shell as administrator (full control rights)
Not sure what the problem is – been searching around the web for a bit.
Thanks
Harold
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
_______________________________________________
MinGW-Users mailing list
[email protected]
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe