Re: linker error

HAROLD ROSENKRANS <[email protected]> Sat, 18 Jul 2020 15:48:40 +0000
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <MWHPR15MB13761CF315E0D1DED2158741F07D0@MWHPR15MB1376.namprd15.prod.outlook.com>
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 <[email protected]> on behalf of Eli Zaretskii <eliz-mXXj517/[email protected]>
Sent: Friday, July 17, 2020 11:56 PM
To: MinGW Users List <[email protected]>
Subject: Re: [Mingw-users] linker error

> From: HAROLD ROSENKRANS <[email protected]>
> 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
[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

_______________________________________________
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