Author Topic: Missing dll  (Read 1165 times)

Offline Puzzled

  • Single posting newcomer
  • *
  • Posts: 2
Missing dll
« on: May 19, 2022, 09:34:27 am »
After I reinstalled code blocks, before I went through the work of configuring SFML, I just ran a simple "Hello World" program and I keep getting the same failure:
                             ld.exe  cannot find -lstdc++-6.dll

That dll is nowhere to be found and I've tried re-installing Code Blocks several times, always resulting in the same error. I did a complete directory search from the command prompt for all dll files on my c drive (where Code Blocks resides) and not only doe that dll not exist, NO dll with a name that starts with '-' exists.
Any ideas, anyone?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: Missing dll
« Reply #1 on: May 19, 2022, 11:03:07 am »

Offline Puzzled

  • Single posting newcomer
  • *
  • Posts: 2
Re: Missing dll
« Reply #2 on: May 19, 2022, 04:33:53 pm »
Build log:
=== Build: Debug in t5 (compiler: GNU GCC Compiler) ===
ld.exe||cannot find -lstdc++-6.dll
error: ld returned 1 exit status
=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: Missing dll
« Reply #3 on: May 19, 2022, 04:37:12 pm »
Have you read the information in the link I gave you?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7298
    • My Best Post
Re: Missing dll
« Reply #4 on: May 19, 2022, 04:46:41 pm »
My guess of the cause is User error.
Likely the OP placed an linker option in the library list.
But, it been over a year size I did serious use of normal CB Projects.
Been using CB custom makefile projects in recent months.

But, a full build log would clearly show the cause or at least what direction to head in finding the cause.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org