[Mingw-users] linker error

Back to archive index
HAROLD ROSENKRANS im_halro****@msn*****
Sun Jul 19 00:48:40 JST 2020


Thanks for your reply Eli. Actually what I did about a half an hour after posting was reboot my PC. Then the compiler had no problems. So I am guessing the OS had some pending transactions that were settled with the reboot. Maybe that should be recommended in the notes about what to do after installation. I also found that I didn't have to explicitly declare the .exe for the output file. The GNU compiler/linker added it. Same thing with the -shared switch, the .dll extension is automatically suffixed.

Regards
Harold

________________________________
From: MinGW-Users <mingw****@lists*****> on behalf of Eli Zaretskii <eliz****@gnu*****>
Sent: Friday, July 17, 2020 11:56 PM
To: MinGW Users List <mingw****@lists*****>
Subject: Re: [Mingw-users] linker error

> From: HAROLD ROSENKRANS <im_halro****@msn*****>
> Date: Sat, 18 Jul 2020 02:39:46 +0000
>
> d:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Hello.exe:
> Permission denied

Did you try doing this in another directory?

And why is your gcc.exe in the same directory where you are trying to
build the Hello problem, as evidenced by this:

> D:\java\gcc HelloWorld.c -o D:\java\Hello.exe

And finally, what are the owner and access rights to the D:\java
directory?

_______________________________________________
MinGW-Users mailing list
MinGW****@lists*****

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:mingw****@lists*****?subject=unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200718/b4cc0a4d/attachment.html>


More information about the MinGW-Users mailing list
Back to archive index