Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
42 Views

compilation error: errno=13 for architecture i386.

When compiling certain codes I get the following error:  ld: can't open output file for writing: New-code-test.exe, errno=13 for architecture i386.  

 

 

0 Kudos
3 Replies
Highlighted
Employee
42 Views

Try inspecting the permissions where the executables are written to ensure they permit your writing to them.

There was at least one variant (here) on that error (sans the errno=13) that related to directory permissions.

0 Kudos
Highlighted
Beginner
42 Views

Thank you, it was a permission problem.  sudo chmod -R g+rwx . in the directory in question fixed the problem

0 Kudos
Highlighted
Employee
42 Views

Glad to hear that. Thank you for following up. That will be helpful for someone down the road.

0 Kudos