Recommended Posts

Hey there,
I''m having trouble compiling an OpenGL window with Dev C++. I''m following the NeHe OpenGL tutorial 1. Whenever I compile, I get the following error:
C:\Dev-C++\bin\mingw32\lb.exe Permission Denied
I know this has something to do with the compiler itself, as Dev C++ uses the Mingw32 compiler. The question is what, and how do I fix it. I''d appreciate any help anyone can give me on this.
Thanx

0

Share this post

Link to post

Share on other sites

I think ld is the program that performs the linking with other libraries, this sounds like more of an operating system problem than a problem with the compiler. What version of Windows are you using? Are you logged in as a user? Check the Read-Only attribute of the compiler files and the bin folder itself.

0

Share this post

Link to post

Share on other sites

I''m running Windows ME (but it came with my computer so it works fine) and it''s my own PC so there shouldn''t be any restrictions. I tried making the file "read-only", but that didn''t seem to work. Thanx for the idea though.

0

Share this post

Link to post

Share on other sites

Sorry, I wasn’t very clear on the read-only thing, your bin folder and the files in it should NOT be read only. Mingw creates a number of temporary files when it compiles/builds and you will get a ‘Permission Denied’ error if it tries to write to a folder that has read only access. I got a similar error message to you once before because I copied Mingw from a backup CD and the OS also copied the file attributes.

Also try typing ld -v or ld --help from your command line.

[edited by - KiwiMelon on June 19, 2003 2:22:03 AM]

0

Share this post

Link to post

Share on other sites

Also make sure the program executable you have compiled is *not* still running. If you''ve got an infinite loop type app with no window, you won''t see it on the task bar, you''ll need to open up the task manager and kill it manually.