![]() Building C object CMakeFiles/hello.dir/prog.c.oĪfter that, let’s check the binary using the file command: $ file prog Building C object CMakeFiles/hello.dir/main.c.o ![]() Build files have been written to: /home/baeldung/CMake/project/buildįinally, we run the Makefile using the make tool to generate the executable program: $ make The CXX compiler identification is GNU 10.3.1 The C compiler identification is GNU 10.3.1 Compiling 32-bit Programs on 64-bit SystemsĪfter that, we run cmake from the build directory to generate a Makefile for our project: $ cmake. ![]() ![]() Gcc version 10.3.1 20210422 (Red Hat 10.3.1-1) (GCC)Īs we can see, the target is x86_64 – this is the architecture name in the Linux system for the 64-bit processor (AMD or Intel). Supported LTO compression algorithms: zlib zstd configure -enable-bootstrap -enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto -prefix=/usr -mandir=/usr/share/man -infodir=/usr/share/info -with-bugurl= -enable-shared -enable-threads=posix -enable-checking=release -enable-multilib -with-system-zlib -enable-_cxa_atexit -disable-libunwind-exceptions -enable-gnu-unique-object -enable-linker-build-id -with-gcc-major-version-only -with-linker-hash-style=gnu -enable-plugin -enable-initfini-array -with-isl -enable-offload-targets=nvptx-none -without-cuda-driver -enable-gnu-indirect-function -enable-cet -with-tune=generic -with-arch_32=i686 -build=x86_64-redhat-linux Now, let’s check our gcc installation: $ gcc -vĬOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/10/lto-wrapperĬonfigured with.
0 Comments
Leave a Reply. |