Hi, I just installed the latest CYGWIN on my WinXP SP3 Professional.
When I compile a hello.cpp like below using g++ -shared -o hello hello.cpp It successfully compiles but when I run ./hello, it complains: -bash: ./hello: Permission denied I've already run "chmod 777 /lib" and "chmod 777 /bin", and it doesn't help. Also added export LD_LIBRARY_PATH=/lib still doesn't work. If I compile by "g++ -o hello hello.cpp", it runs well. Could anybody give me some clue how to fix it? Thanks a lot. Henry hello.cpp: #include <iostream> using namespace std; int main () { cout << "Hello World!\n"; return 0; } -- View this message in context: http://www.nabble.com/permission-denied-for-g%2B%2B-with-shared-library-tp23166858p23166858.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/