New answers tagged

0

C++11 features, compiled with gcc 4.8 ? Why not g++ 4.8 ? Suggest : Compile your library statically with libstdc++.a → I think the C++11 functions are in *libstdc++-devel, not glibc. The devtoolset-2-libstdc++-devel-4.8.2 comes with static libraries : /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/{ libstdc++.a, libstdc++_nonshared.a }...


0

The --with-native-system-header-dir option takes a relative path from the dir specified with the --with-sysroot option. So to make it work as intended, you need to pass --with-sysroot=${INSTALL_DIR} --with-native-system-header-dir=tools/include


0

I needed GCC 5+ installed on debian jessie and, as is available for debian testing (at least on jun-16) you can use apt-pinning to install packages available there (see https://wiki.debian.org/AptPreferences). To install GCC 5+ from testing on debian jessie using apt-pinning: Add debian testing repo to your apt sources by creating a file on /etc/apt/...


0

Just a few constraints: application is compiled using the same architecture, e.g., x86_64 glibc should be at the same revision or later on the run-server


0

It should work with the Wl,--rpath=/apps/gcc_4.8.0/lib/libstdc++.so.6 compiler switch. Update: If you need also the new loader use this compiler switch: -Wl,--dynamic-linker=<path-to-the-new-dynamic-linker>


1

As can be seen in the Catalogue of Built-In Rules: Linking a single object file n is made automatically from n.o by running the linker (usually called ld) via the C compiler. The precise recipe used is: $(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS) and Variables Used by Implicit Rules: LDFLAGS Extra flags to give to compilers when they ...


2

There's only a Gfortran specific option called -J, but this doesn't make sense combined with a number. Other alternative is that is being confused with make -j n flag that determines the maximum number of concurrent compilation process.


8

Get gcc-doc package In order to be able to fetch this packages with the apt-get install command we need to edit our sources.list file to include both contrib and non-free repositories. For example, here's my /etc/apt/sources.list file: deb http://httpredir.debian.org/debian/ jessie main contrib non-free deb-src http://httpredir.debian.org/debian/ jessie ...


0

My OS is x86_64 Packages.amd64 : g++44_4.4.7-ubuntu8_amd64.deb, gcc44_4-4-7-ubuntu8_amd64.deb, libstdc++44-dev_4.4.7-ubuntu8_amd64.deb, created with $ dpkg-deb -b Links : gcc44 https://drive.google.com/file/d/0B7S255p3kFXNQlVHeXdPc25sSEE/view?usp=sharing g++44 https://drive.google.com/file/d/0B7S255p3kFXNeU5jSG9ZdXNQQTQ/view?usp=sharing libstdc++44-dev ...


0

Removing the system gcc, mpfr is not a good idea. Please reinstall. (sudo apt-get install g++) And : You can have as many versions of gcc as you want, installed at the same time. The default compilers for Hardy : sudo apt-get install g++ g++-3.3 g++-3.4 g++-4.1 ,,, where g++ is the system compiler gcc/g++ version 4.2.4 . Compilers, gcc44, g++44 are ...


0

cpuid.h contains definitions of assembly-language fragments to get low-level info out of certain CPUs, plus names for various numeric constants that a program might use to figure out what kind of CPU it was running on, and what features are available. (For example, if the program wanted to use special matrix-math instructions available on some CPUs, it ...



Top 50 recent answers are included