libgcc

Adding linker options to Code::Blocks

≯℡__Kan透↙ 提交于 2019-12-18 06:51:08
问题 When i try to run an executable compiled with Code::Blocks on my Win 7 x64 machine, it says it cannot run because the libgcc_s_dw2-1 is missing. I found a solution, to include the library in the linker options. (here is the reference i got it from: http://forums.codeblocks.org/index.php?topic=16748.0;prev_next=prev. look at the last post) The thing is, when i go to the linker settings, in Project Build Options, there are no libraries available there. Do i have to download the -static-libgcc

LFS 7.2 glibc-2.16.0 make error

∥☆過路亽.° 提交于 2019-12-13 21:53:23
问题 I'm building an LFS system ( refering to LFS 7.2 ) I got this make error while building glibc-2.16.0: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/iconv' make[1]: *** [iconv/others] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0' make: **

Include mingw libraries in compiled file

自古美人都是妖i 提交于 2019-12-07 16:51:52
问题 I am using cmake to generate a Eclipse CDT MinGW Project. (Eclipse Version Kepler) This is my Cmakelist: project(IMGTODICOM) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) add_executable(IMGTODICOM IMGTODICOM.cxx) target_link_libraries(IMGTODICOM ITKReview ${ITK_LIBRARIES}) The code compile and run without problem in my computer, but in other PC it does not run. Some dll like libgcc_s_dw2-1.dll are required. I looked for this dll in my computer and I found it in C:\MinGW\bin . To solve

Include mingw libraries in compiled file

≯℡__Kan透↙ 提交于 2019-12-06 02:03:20
I am using cmake to generate a Eclipse CDT MinGW Project. (Eclipse Version Kepler) This is my Cmakelist: project(IMGTODICOM) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) add_executable(IMGTODICOM IMGTODICOM.cxx) target_link_libraries(IMGTODICOM ITKReview ${ITK_LIBRARIES}) The code compile and run without problem in my computer, but in other PC it does not run. Some dll like libgcc_s_dw2-1.dll are required. I looked for this dll in my computer and I found it in C:\MinGW\bin . To solve the problem I copied the content of this folder in the other PC and the exe file finally run. However, I

Do DLLs built with Rust require libgcc.dll on run time?

纵饮孤独 提交于 2019-12-05 00:09:18
问题 If I build a DLL with Rust language, does it require libgcc*.dll to be present on run time? On one hand: I've seen a post somewhere on the Internet, claiming that yes it does; rustc.exe has libgcc_s_dw2-1.dll in its directory, and cargo.exe won't run without the dll when downloaded from the http://crates.io website; On the other hand: I've seen articles about building toy OS kernels in Rust, so they most certainly don't require libgcc dynamic library to be present. So, I'm confused. What's

Adding linker options to Code::Blocks

元气小坏坏 提交于 2019-11-29 11:32:09
When i try to run an executable compiled with Code::Blocks on my Win 7 x64 machine, it says it cannot run because the libgcc_s_dw2-1 is missing. I found a solution, to include the library in the linker options. (here is the reference i got it from: http://forums.codeblocks.org/index.php?topic=16748.0;prev_next=prev . look at the last post) The thing is, when i go to the linker settings, in Project Build Options, there are no libraries available there. Do i have to download the -static-libgcc -static-libstdc++ as stated by the post, and put them in a directory so Code::Blocks can see them and

Compilng libgcc xgcc error

谁说我不能喝 提交于 2019-11-27 02:20:34
问题 I'm trying to install cross compiler, this tutorial, and when I want to make libgcc I just put make all-target-libgcc in my terminal. This make throws error checking whether ln -s works... yes checking for i586-elf-gcc... /usr/src/build-gcc/./gcc/xgcc -B/usr/src/build-gcc/./gcc/ -B/usr/local/cross/i586-elf/bin/ -B/usr/local/cross/i586-elf/lib/ -isystem /usr/local/cross/i586-elf/include -isystem /usr/local/cross/i586-elf/sys-include checking for suffix of object files... configure: error: in `