Author Topic: As without any distinct extraneous dll?  (Read 6815 times)

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
As without any distinct extraneous dll?
« on: June 11, 2016, 11:54:07 pm »

It seems, on the other side of the machine, compiled programs are not working. It seems that they are looking libgcc_s_dw2-1.dll.
How can no any various dll, no various third-party dependencies?

Otherwise, this is not good.  :-[

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: As without any distinct extraneous dll?
« Reply #1 on: June 12, 2016, 12:47:00 am »

It seems, on the other side of the machine, compiled programs are not working. It seems that they are looking libgcc_s_dw2-1.dll.
How can no any various dll, no various third-party dependencies?

Otherwise, this is not good.  :-[

Find out the information about YOUR compiler; ask the support for your compiler what options are needed!

Once, you figure out what compiler options are needed; then, you can ask here where/how to set them in Code::Blocks.

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

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
Re: As without any distinct extraneous dll?
« Reply #2 on: June 12, 2016, 08:59:26 pm »
Indeed, it is a problem.

I have a friend on the computer run the program.
I had to put this near libgcc_s_dw2-1.dll,
then another libstdc ++ - 6.dll. After that, the program began to fall immediately, calling the debugger.

My compiler is probably C: \ MinGW \ bin
How to switch compilers for the project?
A few weeks earlier, I switched the different compilers, without straining.
Now I can not find .. I can not ... I klatsat long very long drop-down lists, and not znajshov.
I'm starting to rage. And it was before I switched well.

The program should call natural things, such as Sleep: KERNEL32 which without doubt is at all, and never look unnatural various others.

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: As without any distinct extraneous dll?
« Reply #3 on: June 12, 2016, 09:57:39 pm »
Point being it is a problem that has nothing to do with Code::Blocks.  Look into statically linking, such as with the "-static-libgcc" link option (exact steps may vary depending on exactly what compiler you are using).

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
Re: As without any distinct extraneous dll?
« Reply #4 on: June 12, 2016, 11:11:15 pm »
I added it inside

Other linker options: -static-libgcc

Still looking for libstdc ++ - 6.dll

Compiler I now see that
mingw32-g ++. exe



And how, indeed, to switch between different compilers? I do not find this option.
For example there are significantly Open Watcom.
Still other compilers should be as well.
« Last Edit: June 13, 2016, 12:46:55 am by Дмитро »

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: As without any distinct extraneous dll?
« Reply #5 on: June 13, 2016, 07:50:35 pm »
For that C++ compiler, try -static-libstdc++ link flag.  Depending on the version number of the compiler you're using,  you may have to use something else.  The more information you give, the more help you can get.

Offline Дмитро

  • Multiple posting newcomer
  • *
  • Posts: 107
Re: As without any distinct extraneous dll?
« Reply #6 on: June 15, 2016, 02:21:38 pm »
Thank you!

Edit: Removed non-English content. Please respect our forum policies!
« Last Edit: June 16, 2016, 07:31:10 am by MortenMacFly »