Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot open shared object file libstdc++.so.6(libstdc++.so.6)
Cannot open shared object file libstdc++.so.6 [message #809266] Tue, 28 February 2012 11:55 Go to next message
Eclipse UserFriend
Hi,

I have built an .out file ( by linking in 32 bit libraries).

When i run the executable ./test.out i get the following error

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Do i need to install something?

In one of the threads someone had said, we need to link it with -static-libstdc++ option. I did that, bit still get this error.

Thanks.
Re: Cannot open shared object file libstdc++.so.6 [message #814784 is a reply to message #809266] Tue, 06 March 2012 17:19 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried to copy the libstdc++.so.6 of MinGW to the same directory where your test.out resides? Maybe you will get further missing-DLL-errors. Try to copy all these DLLs to the directory where your executable resides.

When I start CGI development on Windows I got the same error. I fixed this by copying the missing DLLs to the ./apache/cgi-bin/ directory.

If this solves the problem you have to expand your environment variable %PATH% by the path to the DLLs.
Re: Cannot open shared object file libstdc++.so.6 [message #816270 is a reply to message #814784] Thu, 08 March 2012 11:23 Go to previous message
Eclipse UserFriend
thanks for the reply.

I think i was trying to load 32 bit libraries ,but in the folder i had 64 bit libraries. This was the case if i remember correctly.
Previous Topic:[SEVEN ] Path Problem in Arguments of External Tools Configuration
Next Topic:Custom build steps for QT ui and moc file
Goto Forum:
  


Current Time: Thu Jun 19 18:28:36 EDT 2025

Powered by FUDForum. Page generated in 1.04455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top