Gcc compiler downloads
Author: h | 2025-04-24
GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.c
Downloading GCC - GNU Project - GCC, the GNU Compiler
To start learning programming in C, the first step is to setup an environment that allows you to enter and edit the program in C, and a compiler that builds an executable that can run on your operating system. You need two software tools available on your computer, (a) The C Compiler and (b) Text Editor.The C CompilerThe source code written in the source file is the human readable source for your program. It needs to be "compiled", into machine language so that your CPU can actually execute the program as per the instructions given.There are many C compilers available. Following is a select list of C compilers that are widely used −GNU Compiler Collection (GCC) − GCC is a popular open-source C compiler. It is available for a wide range of platforms including Windows, macOS, and Linux. GCC is known for its wide range of features and support for a variety of C standards.Clang: Clang is an open-source C compiler that is part of the LLVM project. It is available for a variety of platforms including Windows, macOS, and Linux. Clang is known for its speed and optimization capabilities.Microsoft Visual C++ − Microsoft Visual C++ is a proprietary C compiler that is developed by Microsoft. It is available for Windows only. Visual C++ is known for its integration with the Microsoft Visual Studio development environment.Turbo C − Turbo C is a discontinued C compiler that was developed by Borland. It was popular in the early 1990s, but it is no longer widely used.The examples in this tutorial are compiled on the GCC compiler. The most frequently used and free available compiler is the GNU C/C++ compiler. The following section explains how to install GNU C/C++ compiler on various operating systems. We keep mentioning C/C++ together because GNU gcc compiler works for both C and C++ programming languages.Installation on UNIX/LinuxIf you are using Linux or UNIX, then check whether GCC is installed on your system by entering the following command from the command line −$ gcc -vIf you have GNU compiler installed on your Ubuntu Linux machine, then it should print a message as follows −$ gcc -vUsing built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapperOFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsaOFFLOAD_TARGET_DEFAULT=1Target: x86_64-linux-gnuConfigured with: ../src/configure -v . . .Thread model: posixSupported LTO compression algorithms: zlib zstdgcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)If GCC is not installed, then you will have to install it yourself using the detailed instructions available at on Mac OSIf you use Mac OS X, the easiest way to obtain GCC is to download the Xcode development environment from Apple's web site and follow the simple installation instructions. Once you have Xcode setup, you will be able to use GNU compiler for C/C++.Xcode is currently available at developer.apple.com/technologies/tools/Installation on WindowsTo install GCC on Windows, you need to install MinGW. To install MinGW, go to the MinGW downloads page, and follow the link to the MinGW download page. Download the latest version of the MinGW installation program, mingw-w64-install.exe from here.While installing Min GW, at a minimum, you must install gcc-core, gcc-g++, binutils,
Downloading GCC - GNU Project - GCC, the GNU Compiler
Can contain more than one object file, but we only use one here. FreeBSD The compiler flag to create PIC is -fPIC . To create shared libraries the compiler flag is -shared . cc -fPIC -c foo.ccc -shared -o foo.so foo.o This is applicable as of version 13.0 of FreeBSD , older versions used the gcc compiler. Linux The compiler flag to create PIC is -fPIC . The compiler flag to create a shared library is -shared . A complete example looks like this: cc -fPIC -c foo.ccc -shared -o foo.so foo.o macOS Here is an example. It assumes the developer tools are installed. cc -c foo.ccc -bundle -flat_namespace -undefined suppress -o foo.so foo.o NetBSD The compiler flag to create PIC is -fPIC . For ELF systems, the compiler with the flag -shared is used to link shared libraries. On the older non-ELF systems, ld -Bshareable is used. gcc -fPIC -c foo.cgcc -shared -o foo.so foo.o OpenBSD The compiler flag to create PIC is -fPIC . ld -Bshareable is used to link shared libraries. gcc -fPIC -c foo.cld -Bshareable -o foo.so foo.o Solaris The compiler flag to create PIC is -KPIC with the Sun compiler and -fPIC with GCC . To link shared libraries, the compiler option is -G with either compiler or alternatively -shared with GCC . cc -KPIC -c foo.ccc -G -o foo.so foo.o or gcc -fPIC -c foo.cgcc -G -o foo.so foo.o Tip If this is too complicated for you, you should consider using GNU Libtool , which hides the platform differences behind a uniform interface. The resulting shared library file can then be loaded into PostgreSQL . When specifying the file name to the CREATE FUNCTION command, one must give it the name of the shared library file, not the intermediate object file. Note that theDownloading GCC - GNU Project - GCC, the GNU Compiler
Embarcadero Dev-C++ is a new and improved fork (sponsored by Embarcadero) of Bloodshed Dev-C++ and Orwell Dev-C++. It is a full-featured Integrated Development Environment (IDE) and code editor for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as its compiler. Embarcadero Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler. Embarcadero Dev-C++ is built using the latest version of Embarcadero Delphi. Embarcadero Dev-C++ has a low memory footprint because it is a native Windows application and does not use Electron.Main Features Include:TDM-GCC 9.2.0 32/64bitSupport GCC-based compilersIntegrated debugging (using GDB)GPROF profilingProject ManagerCustomizable syntax highlighting editorClass BrowserCode CompletionCode InsightFunction listingAStyle code formatting supportGPROF Profiling supportQuickly create Windows, console, static libraries and DLLsSupport of templates for creating your own project typesMakefile creationEdit and compile Resource filesTool ManagerDevpak IDE extensionsPrint supportFind and replace facilitiesCVS supportSupported Operating System:Windows 7Windows 8.1Windows 10Download the Latest ReleaseFree Download. GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.c GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.cDownloading GCC - GNU Project - GCC, the GNU Compiler
The GNU Compiler Collection, commonly abbreviated GCC, is a portable compiler suite with support for a wide selection of programming languages. Red Hat Developer Toolset is distributed with GCC 9.3.1. This version is more recent than the version included in Red Hat Enterprise Linux and provides a number of bug fixes and enhancements. 2.1. GNU C Compiler2.1.1. Installing the C Compiler In Red Hat Developer Toolset, the GNU C compiler is provided by the devtoolset-9-gcc package and is automatically installed with devtoolset-9-toolchain as described in Section 1.5, “Installing Red Hat Developer Toolset”. 2.1.2. Using the C Compiler To compile a C program on the command line, run the gcc compiler as follows: $ scl enable devtoolset-9 'gcc -o output_file source_file...' This creates a binary file named output_file in the current working directory. If the -o option is omitted, the compiler creates a file named a.out by default. When you are working on a project that consists of several source files, it is common to compile an object file for each of the source files first and then link these object files together. This way, when you change a single source file, you can recompile only this file without having to compile the entire project. To compile an object file on the command line,: $ scl enable devtoolset-9 'gcc -o object_file -c source_file' This creates an object file named object_file. If the -o option is omitted, the compiler creates a file named after the source file with the .o file extension.Downloading GCC - GNU Project - GCC, the GNU Compiler
Line editorii ethtool 1:4.19-1 armhf display or change Ethernet device settingsii fake-hwclock 0.11+rpt1 all Save/restore system clock on machines without working RTC hardwareii fakeroot 1.23-1 armhf tool for simulating superuser privilegesii fbset 2.1-30 armhf framebuffer device maintenance programii fdisk 2.33.1-0.1 armhf collection of partitioning utilitiesii file 1:5.35-4+deb10u1 armhf Recognize the type of data in a file using "magic" numbersii findutils 4.6.0+git+20190209-2 armhf utilities for finding files--find, xargsii firmware-atheros 1:20190114-1+rpt6 all Binary firmware for Atheros wireless cardsii firmware-brcm80211 1:20190114-1+rpt6 all Binary firmware for Broadcom/Cypress 802.11 wireless cardsii firmware-libertas 1:20190114-1+rpt6 all Binary firmware for Marvell wireless cardsii firmware-misc-nonfree 1:20190114-1+rpt6 all Binary firmware for various drivers in the Linux kernelii firmware-realtek 1:20190114-1+rpt6 all Binary firmware for Realtek wired/wifi/BT adaptersii flashrom 1.0-1 armhf Identify, read, write, erase, and verify BIOS/ROM/flash chipsii folder2ram 0.3.3 all script-based utility to manage tmpfs foldersii fontconfig 2.13.1-2 armhf generic font configuration library - support binariesii fontconfig-config 2.13.1-2 all generic font configuration library - configurationii fonts-dejavu-core 2.37-1 all Vera font family derivate with additional charactersii fuse 2.9.9-1+deb10u1 armhf Filesystem in Userspaceii g++ 4:8.3.0-1+rpi2 armhf GNU C++ compilerii g++-8 8.3.0-6+rpi1 armhf GNU C++ compilerii gawk 1:4.2.1+dfsg-1 armhf GNU awk, a pattern scanning and processing languageii gcc 4:8.3.0-1+rpi2 armhf GNU C compilerii gcc-4.9-base:armhf 4.9.4-2+rpi1+b19 armhf GCC, the GNU Compiler Collection (base package)ii gcc-5-base:armhf 5.5.0-8 armhf GCC, the GNU Compiler Collection (base package)ii gcc-6-base:armhf 6.5.0-1+rpi1+b1 armhf GCC, the GNU Compiler Collection (base package)ii gcc-7-base:armhf 7.3.0-19 armhf GCC, the GNU Compiler Collection (base package)ii gcc-8 8.3.0-6+rpi1 armhf GNU C compilerii gcc-8-base:armhf 8.3.0-6+rpi1 armhf GCC, the GNU Compiler Collection (base package)ii gdb 8.2.1-2 armhf GNU Debuggerii gdbm-l10n 1.18.1-4 all GNU dbm database routines (translation files)ii gdisk 1.0.3-1.1 armhf GPT fdisk text-mode partitioning toolii geoip-database 20181108-1 all IP lookup command line tools that use the GeoIP library (country database)ii gettext-base 0.19.8.1-9 armhf GNU Internationalization utilities forDownloading GCC - GNU Project - GCC, the GNU Compiler
To link object files together and create a binary file: $ scl enable devtoolset-9 'gcc -o output_file object_file...' Note that you can execute any command using the scl utility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent. This allows you to run a shell session with Red Hat Developer Toolset gcc as default: $ scl enable devtoolset-9 'bash' To verify the version of gcc you are using at any point: $ which gcc Red Hat Developer Toolset’s gcc executable path will begin with /opt. Alternatively, you can use the following command to confirm that the version number matches that for Red Hat Developer Toolset gcc: $ gcc -vExample 2.1. Compiling a C Program on the Command Line Consider a source file named hello.c with the following contents: #include int main(int argc, char *argv[]) { printf("Hello, World!\n"); return 0;} Compile this source code on the command line by using the gcc compiler from Red Hat Developer Toolset: $ scl enable devtoolset-9 'gcc -o hello hello.c' This creates a new binary file called hello in the current working directory. 2.1.3. Running a C Program When gcc compiles a program, it creates an executable binary file. To run this program on the command line, change to the directory with the executable file and run it: $ ./file_name2.2. GNU C++ Compiler2.2.1. Installing the C++ Compiler In Red Hat Developer Toolset, the GNU C++ compiler is provided by the devtoolset-9-gcc-c++Downloading GCC - GNU Project - GCC, the GNU Compiler
For those wondering how the recent releases of the Clang 16 and GCC 13 are competing for the fastest generated binaries of these leading open-source compilers, here is a fresh round of benchmarks from an Intel Core i9 13900K "Raptor Lake" system looking at the performance for a variety of C/C++ workloads built under each of these compilers.In this article is a look at the GCC 13 vs. LLVM Clang 16 compiler performance on Raptor Lake as Intel's latest-generation desktop processors. A similar GCC 13 vs. LLVM Clang 16 compiler benchmark comparison will be happening soon on AMD Zen 4 as well, with the AMD znver4 target being new to GCC 13.1 and Clang 16.0.This round of testing was focused on the performance of the resulting binaries generated by each compiler. Both compilers were tested when building the software under test with "-O3 -march=native -flto" for using the higher -O3 optimization level, catering to the Intel Raptor Lake CPU under test, and employing link-time optimizations.This is just intended to offer a quick look at the current GCC vs. Clang compiler performance using Fedora Workstation 38.. GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.c GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.c
Downloading GCC - GNU Project - GCC, the GNU Compiler
: /usr/bin/c++-- C++ compiler version : 5.4.1-- CXX flags : -fvisibility-inlines-hidden -Wnon-virtual-dtor-- Build type : Release-- Compile definitions : TH_BLAS_MKL-- CMAKE_PREFIX_PATH : /opt/anaconda/bin/../-- CMAKE_INSTALL_PREFIX : /home/manjaro/Downloads/pytorch/torch-- CMAKE_MODULE_PATH : /home/manjaro/Downloads/pytorch/cmake/Modules;/usr/share/cmake/pybind11-- -- ONNX version : 1.4.1-- ONNX NAMESPACE : onnx_torch-- ONNX_BUILD_TESTS : OFF-- ONNX_BUILD_BENCHMARKS : OFF-- ONNX_USE_LITE_PROTO : OFF-- ONNXIFI_DUMMY_BACKEND : OFF-- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF-- Found gcc >=5 and CUDA flags-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor-- Removing -DNDEBUG from compile flags-- Found OpenMP_C: -fopenmp (found version "4.0") -- Found OpenMP_CXX: -fopenmp (found version "4.0") -- Compiling with OpenMP support-- MAGMA not found. Compiling without MAGMA support-- Could not find hardware support for NEON on this machine.-- No OMAP3 processor on this machine.-- No OMAP4 processor on this machine.-- Looking for cpuid.h-- Looking for cpuid.h - found-- Performing Test HAVE_GCC_GET_CPUID-- Performing Test HAVE_GCC_GET_CPUID - Success-- Performing Test NO_GCC_EBX_FPIC_BUG-- Performing Test NO_GCC_EBX_FPIC_BUG - Success-- Performing Test C_HAS_AVX_1-- Performing Test C_HAS_AVX_1 - Failed-- Performing Test C_HAS_AVX_2-- Performing Test C_HAS_AVX_2 - Success-- Performing Test C_HAS_AVX2_1-- Performing Test C_HAS_AVX2_1 - Failed-- Performing Test C_HAS_AVX2_2-- Performing Test C_HAS_AVX2_2 - Success-- Performing Test CXX_HAS_AVX_1-- Performing Test CXX_HAS_AVX_1 - Failed-- Performing Test CXX_HAS_AVX_2-- Performing Test CXX_HAS_AVX_2 - Success-- Performing Test CXX_HAS_AVX2_1-- Performing Test CXX_HAS_AVX2_1 - Failed-- Performing Test CXX_HAS_AVX2_2-- Performing Test CXX_HAS_AVX2_2 - Success-- AVX compiler support found-- AVX2 compiler support found-- Performing Test HAS_C11_ATOMICS-- Performing Test HAS_C11_ATOMICS - Failed-- Performing Test HAS_MSC_ATOMICS-- Performing Test HAS_MSC_ATOMICS - Failed-- Performing Test HAS_GCC_ATOMICS-- PerformingDownloading GCC - GNU Project - GCC, the GNU Compiler
Changes - Version 5.7.0 - 19 Juli 2014Redesigned Compiler Log.Added an option to shorten compiler paths in Compiler Log.Removed the Perfect Dependency Checking option in Tools >> Compiler Options >> Makefile.Updated DLL Makefile creation to call gcc/g++ instead of dllwrap.exe.Dev-C++ does not require the presence of dllwrap.exe anymore.Fixed a few bugs that caused usage mixups between project compiler sets and global compiler sets.The compiler set validator now does not complain if executables are not set.Removed the Compile Delay option in Tools >> Compiler Options >> Makefile.Fixed a bug that prevented editor tab filenames from being updated when using Save As.Added an option to directly add a file to a folder in the project tree.Fixed a crash in the class browser that happened when it had to redraw during parsing.Fixed a crash in the project saving code that happened due to opening a file twice at the same time.Fixed a crash in the file change monitor code.DownloadThe setup which includes MinGW32 4.8.1 can be downloaded here (63MB).The setup which includes TDM-GCC x64 4.8.1 can be downloaded here (47MB).The setup which does not include a compiler can be downloaded here (2MB).The portable version which includes MinGW32 4.8.1 can be downloaded here (36MB).The portable version which includes TDM-GCC x64 4.8.1 can be downloaded here (34MB).The portable version which does not include a compiler can be downloaded here (2MB).The latest tested compilers can be downloaded here.Lastly, the source code can be found here (1MB).Choosing between 32bit and 64bitThe 64bit compiler will fully work op 32bit systems.The 64bit compiler can create 64bit and 32bit executables and DLLs.The 64bit compiler currently provides much more headers and libraries.The 32bit compiler can only create 32bit executables and DLLs.. GCC installation. C is a compiled language and as such it needs a compiler. To install a gcc compiler, simply type: $ sudo dnf install gcc This command should download and install package with compiler called GCC. To compile and link a program written in C, simply run the gcc command like this: $ gcc your_source.cDownloading GCC - GNU Project - GCC, the GNU Compiler
// Separately prints the details of the precached resources for sounds, models, decals, generic and events in server console. Useful for managing resources and dealing with the goldsource precache limits.rcon_adduser // Add a new IP address or CIDR range to RCON user list (This command adds a new IP address to the RCON user list. The specified IP or CIDR range is granted privileged access to server console. Without any Rcon users, access is allowed to anyone with a valid password)rcon_deluser {removeAll} // Remove an IP address or CIDR range from RCON user listrcon_users // List all IP addresses and CIDR ranges in RCON user listBuild instructionsChecking requirementsThere are several software requirements for building ReHLDS:WindowsVisual Studio 2015 (C++14 standard) and laterLinuxcmake >= 3.10GCC >= 4.9.2 (Optional)ICC >= 15.0.1 20141023 (Optional)LLVM (Clang) >= 6.0 (Optional)BuildingWindowsUse Visual Studio to build, open msvc/ReHLDS.sln and just select from the solution configurations list Release Swds or Debug SwdsLinuxOptional options using build.sh --compiler=[gcc] --jobs=[N] -D[option]=[ON or OFF] (without square brackets)-c=|--compiler=[icc|gcc|clang] - Select preferred C/C++ compiler to build-j=|--jobs=[N] - Specifies the number of jobs (commands) to run simultaneously (For faster building)Definitions (-D)DEBUG - Enables debugging modeUSE_STATIC_LIBSTDC - Enables static linking library libstdc++ICC ./build.sh --compiler=intelLLVM (Clang) ./build.sh --compiler=clangGCC ./build.sh --compiler=gccChecking build environment (Debian / Ubuntu)Click to expandInstalling required packagessudo dpkg --add-architecture i386sudo apt-get updatesudo apt-get install -y gcc-multilib g++-multilibsudo apt-get install -y build-essentialsudo apt-get install -y libc6-dev libc6-dev-i386Select the preferred C/C++ Compiler installation1) sudo apt-get install -y gcc g++2) sudo apt-get install -y clangHow can I help the project?Just install it on your game server and report problems you faced.Merge requests are also welcome :)Comments
To start learning programming in C, the first step is to setup an environment that allows you to enter and edit the program in C, and a compiler that builds an executable that can run on your operating system. You need two software tools available on your computer, (a) The C Compiler and (b) Text Editor.The C CompilerThe source code written in the source file is the human readable source for your program. It needs to be "compiled", into machine language so that your CPU can actually execute the program as per the instructions given.There are many C compilers available. Following is a select list of C compilers that are widely used −GNU Compiler Collection (GCC) − GCC is a popular open-source C compiler. It is available for a wide range of platforms including Windows, macOS, and Linux. GCC is known for its wide range of features and support for a variety of C standards.Clang: Clang is an open-source C compiler that is part of the LLVM project. It is available for a variety of platforms including Windows, macOS, and Linux. Clang is known for its speed and optimization capabilities.Microsoft Visual C++ − Microsoft Visual C++ is a proprietary C compiler that is developed by Microsoft. It is available for Windows only. Visual C++ is known for its integration with the Microsoft Visual Studio development environment.Turbo C − Turbo C is a discontinued C compiler that was developed by Borland. It was popular in the early 1990s, but it is no longer widely used.The examples in this tutorial are compiled on the GCC compiler. The most frequently used and free available compiler is the GNU C/C++ compiler. The following section explains how to install GNU C/C++ compiler on various operating systems. We keep mentioning C/C++ together because GNU gcc compiler works for both C and C++ programming languages.Installation on UNIX/LinuxIf you are using Linux or UNIX, then check whether GCC is installed on your system by entering the following command from the command line −$ gcc -vIf you have GNU compiler installed on your Ubuntu Linux machine, then it should print a message as follows −$ gcc -vUsing built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapperOFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsaOFFLOAD_TARGET_DEFAULT=1Target: x86_64-linux-gnuConfigured with: ../src/configure -v . . .Thread model: posixSupported LTO compression algorithms: zlib zstdgcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)If GCC is not installed, then you will have to install it yourself using the detailed instructions available at on Mac OSIf you use Mac OS X, the easiest way to obtain GCC is to download the Xcode development environment from Apple's web site and follow the simple installation instructions. Once you have Xcode setup, you will be able to use GNU compiler for C/C++.Xcode is currently available at developer.apple.com/technologies/tools/Installation on WindowsTo install GCC on Windows, you need to install MinGW. To install MinGW, go to the MinGW downloads page, and follow the link to the MinGW download page. Download the latest version of the MinGW installation program, mingw-w64-install.exe from here.While installing Min GW, at a minimum, you must install gcc-core, gcc-g++, binutils,
2025-04-18Can contain more than one object file, but we only use one here. FreeBSD The compiler flag to create PIC is -fPIC . To create shared libraries the compiler flag is -shared . cc -fPIC -c foo.ccc -shared -o foo.so foo.o This is applicable as of version 13.0 of FreeBSD , older versions used the gcc compiler. Linux The compiler flag to create PIC is -fPIC . The compiler flag to create a shared library is -shared . A complete example looks like this: cc -fPIC -c foo.ccc -shared -o foo.so foo.o macOS Here is an example. It assumes the developer tools are installed. cc -c foo.ccc -bundle -flat_namespace -undefined suppress -o foo.so foo.o NetBSD The compiler flag to create PIC is -fPIC . For ELF systems, the compiler with the flag -shared is used to link shared libraries. On the older non-ELF systems, ld -Bshareable is used. gcc -fPIC -c foo.cgcc -shared -o foo.so foo.o OpenBSD The compiler flag to create PIC is -fPIC . ld -Bshareable is used to link shared libraries. gcc -fPIC -c foo.cld -Bshareable -o foo.so foo.o Solaris The compiler flag to create PIC is -KPIC with the Sun compiler and -fPIC with GCC . To link shared libraries, the compiler option is -G with either compiler or alternatively -shared with GCC . cc -KPIC -c foo.ccc -G -o foo.so foo.o or gcc -fPIC -c foo.cgcc -G -o foo.so foo.o Tip If this is too complicated for you, you should consider using GNU Libtool , which hides the platform differences behind a uniform interface. The resulting shared library file can then be loaded into PostgreSQL . When specifying the file name to the CREATE FUNCTION command, one must give it the name of the shared library file, not the intermediate object file. Note that the
2025-04-14The GNU Compiler Collection, commonly abbreviated GCC, is a portable compiler suite with support for a wide selection of programming languages. Red Hat Developer Toolset is distributed with GCC 9.3.1. This version is more recent than the version included in Red Hat Enterprise Linux and provides a number of bug fixes and enhancements. 2.1. GNU C Compiler2.1.1. Installing the C Compiler In Red Hat Developer Toolset, the GNU C compiler is provided by the devtoolset-9-gcc package and is automatically installed with devtoolset-9-toolchain as described in Section 1.5, “Installing Red Hat Developer Toolset”. 2.1.2. Using the C Compiler To compile a C program on the command line, run the gcc compiler as follows: $ scl enable devtoolset-9 'gcc -o output_file source_file...' This creates a binary file named output_file in the current working directory. If the -o option is omitted, the compiler creates a file named a.out by default. When you are working on a project that consists of several source files, it is common to compile an object file for each of the source files first and then link these object files together. This way, when you change a single source file, you can recompile only this file without having to compile the entire project. To compile an object file on the command line,: $ scl enable devtoolset-9 'gcc -o object_file -c source_file' This creates an object file named object_file. If the -o option is omitted, the compiler creates a file named after the source file with the .o file extension.
2025-04-17Line editorii ethtool 1:4.19-1 armhf display or change Ethernet device settingsii fake-hwclock 0.11+rpt1 all Save/restore system clock on machines without working RTC hardwareii fakeroot 1.23-1 armhf tool for simulating superuser privilegesii fbset 2.1-30 armhf framebuffer device maintenance programii fdisk 2.33.1-0.1 armhf collection of partitioning utilitiesii file 1:5.35-4+deb10u1 armhf Recognize the type of data in a file using "magic" numbersii findutils 4.6.0+git+20190209-2 armhf utilities for finding files--find, xargsii firmware-atheros 1:20190114-1+rpt6 all Binary firmware for Atheros wireless cardsii firmware-brcm80211 1:20190114-1+rpt6 all Binary firmware for Broadcom/Cypress 802.11 wireless cardsii firmware-libertas 1:20190114-1+rpt6 all Binary firmware for Marvell wireless cardsii firmware-misc-nonfree 1:20190114-1+rpt6 all Binary firmware for various drivers in the Linux kernelii firmware-realtek 1:20190114-1+rpt6 all Binary firmware for Realtek wired/wifi/BT adaptersii flashrom 1.0-1 armhf Identify, read, write, erase, and verify BIOS/ROM/flash chipsii folder2ram 0.3.3 all script-based utility to manage tmpfs foldersii fontconfig 2.13.1-2 armhf generic font configuration library - support binariesii fontconfig-config 2.13.1-2 all generic font configuration library - configurationii fonts-dejavu-core 2.37-1 all Vera font family derivate with additional charactersii fuse 2.9.9-1+deb10u1 armhf Filesystem in Userspaceii g++ 4:8.3.0-1+rpi2 armhf GNU C++ compilerii g++-8 8.3.0-6+rpi1 armhf GNU C++ compilerii gawk 1:4.2.1+dfsg-1 armhf GNU awk, a pattern scanning and processing languageii gcc 4:8.3.0-1+rpi2 armhf GNU C compilerii gcc-4.9-base:armhf 4.9.4-2+rpi1+b19 armhf GCC, the GNU Compiler Collection (base package)ii gcc-5-base:armhf 5.5.0-8 armhf GCC, the GNU Compiler Collection (base package)ii gcc-6-base:armhf 6.5.0-1+rpi1+b1 armhf GCC, the GNU Compiler Collection (base package)ii gcc-7-base:armhf 7.3.0-19 armhf GCC, the GNU Compiler Collection (base package)ii gcc-8 8.3.0-6+rpi1 armhf GNU C compilerii gcc-8-base:armhf 8.3.0-6+rpi1 armhf GCC, the GNU Compiler Collection (base package)ii gdb 8.2.1-2 armhf GNU Debuggerii gdbm-l10n 1.18.1-4 all GNU dbm database routines (translation files)ii gdisk 1.0.3-1.1 armhf GPT fdisk text-mode partitioning toolii geoip-database 20181108-1 all IP lookup command line tools that use the GeoIP library (country database)ii gettext-base 0.19.8.1-9 armhf GNU Internationalization utilities for
2025-04-14