Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Дмитро on June 11, 2016, 11:54:07 pm

Title: As without any distinct extraneous dll?
Post by: Дмитро 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.  :-[
Title: Re: As without any distinct extraneous dll?
Post by: stahta01 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.
Title: Re: As without any distinct extraneous dll?
Post by: Дмитро 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.
Title: Re: As without any distinct extraneous dll?
Post by: raynebc 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).
Title: Re: As without any distinct extraneous dll?
Post by: Дмитро 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.
Title: Re: As without any distinct extraneous dll?
Post by: raynebc 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.
Title: Re: As without any distinct extraneous dll?
Post by: Дмитро on June 15, 2016, 02:21:38 pm
Thank you!

Edit: Removed non-English content. Please respect our forum policies!