devtoolset

I created a new project in VS 2019 and it doesn't compile because VS fails to find Toolset v142

左心房为你撑大大i 提交于 2021-01-28 06:20:26
问题 The 'template' for the new project is MFC Dynamic Link Library. The problem seems to boil down to Visual Studio looking for the folder "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v142" - which doesn't exist. I have run and re-run the Visual Studio installer - always adding more things for toolset v142, but nothing seems to help. Is there some way to get this folder to appear? With the right stuff in it? In reality, I am upgrading an existing

CentOS: Using GCC 4.7 from devtoolset results in linking libstdc++ incorrectly (undefined symbols)

不想你离开。 提交于 2020-05-25 07:26:26
问题 I am using the devtoolset-1.0 for CentOS 6.3 in order to upgrade temporarily the GCC version. Although I am now able to compile my C++ application, the final binary is missing some symbols: $ ldd -d -r myapp $ [..] $ libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003216e00000) $ [..] $ undefined symbol: _ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node_base7_M_hookEPS0_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node

(How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL?

时光怂恿深爱的人放手 提交于 2019-12-28 15:38:09
问题 My goal is to use gcc 7.2 (and clang 6) on Centos 7 to build executables compatible with Centos 7 targets without devtoolset installed but * using the newer C++ ABI *. The newer ABI fixed a couple of deficiencies in the lib that weren't able to be fixed without an ABI change. E.g list::size O(1) Vs O(n), no COW for strings. I speculated on an answer as to why this might not be possible in the following question. -D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 回答1: This

Install Obsolete Devtoolset Collection for CentOS

自古美人都是妖i 提交于 2019-12-22 12:33:15
问题 At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum (only Devtoolset-6 and 7 are available). Nevertheless this collection can be downloaded as a list of rpm-packages. Is it possible to enable such EOL collections for yum, or maybe there is another way to install them correctly? 回答1: You can install the obsolete devtoolset-3 in this way: sudo yum --obsolete install devtoolset-3 回答2: There was no DTS 5 release. It was

Installing gcc on linux

青春壹個敷衍的年華 提交于 2019-12-14 03:30:01
问题 How to install gcc version 4.8 on centos or scientific linux operating systems which require yum for installing. I tried to download gcc from https://ftp.gnu.org/gnu/gcc/gcc-4.8.2/ and then ran ./configure and then make. After running make it gives me the error: configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Is there some way by which I may install gcc version 4.8 on linux using yum install I tried: 1). I tried with yum --enablerepo

_GLIBCXX_USE_CXX11_ABI disabled on RHEL6 and RHEL7?

风格不统一 提交于 2019-12-10 15:56:58
问题 I have gcc 5.2.1 on RHEL6 and RHEL7, and it looks like _GLIBCXX_USE_CXX11_ABI gets disabled. It's not working even if I manually run -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14 . This means I won't get small string optimization feature. For example, the output of following code always have 8 and 'micro not set'. For SSO, size of std::string should be at least 16 if we look at code bits/basic_string.h. Any workaround? #include <string> #include <iostream> int main() { std::cout << sizeof(std::string

Install Obsolete Devtoolset Collection for CentOS

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:21:19
At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum (only Devtoolset-6 and 7 are available). Nevertheless this collection can be downloaded as a list of rpm-packages. Is it possible to enable such EOL collections for yum, or maybe there is another way to install them correctly? You can install the obsolete devtoolset-3 in this way: sudo yum --obsolete install devtoolset-3 There was no DTS 5 release. It was skipped to align the DTS version with the GCC major release, once GCC switched to a yearly increasing version

(How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL?

我与影子孤独终老i 提交于 2019-11-29 07:01:19
My goal is to use gcc 7.2 (and clang 6) on Centos 7 to build executables compatible with Centos 7 targets without devtoolset installed but * using the newer C++ ABI *. The newer ABI fixed a couple of deficiencies in the lib that weren't able to be fixed without an ABI change. E.g list::size O(1) Vs O(n), no COW for strings. I speculated on an answer as to why this might not be possible in the following question. -D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 This seems like a duplicate of the question you linked to, I don't see any reason to keep both open. Can I use the

C++ project compiled with modern compiler, but linked against outdated libstdc++

天涯浪子 提交于 2019-11-27 09:32:09
Consider the situation when a C++ project is built and shipped within a Centos 7 virtual machine or container. Default gcc for Centos 7 is 4.8 . In order to allow developers to use modern C++, the more recent version of gcc (for example, 6.3 ) is installed into Centos 7 which runs as a CI server. This provides -std=c++14 support. [builder@f7279ae9f33f build (master %)]$ /usr/bin/c++ -v 2>&1 | grep version gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) [builder@f7279ae9f33f build (master %)]$ /opt/rh/devtoolset-6/root/usr/bin/c++ -v 2>&1 | grep version gcc version 6.3.1 20170216 (Red Hat 6

C++ project compiled with modern compiler, but linked against outdated libstdc++

☆樱花仙子☆ 提交于 2019-11-26 11:37:27
问题 Consider the situation when a C++ project is built and shipped within a Centos 7 virtual machine or container. Default gcc for Centos 7 is 4.8 . In order to allow developers to use modern C++, the more recent version of gcc (for example, 6.3 ) is installed into Centos 7 which runs as a CI server. This provides -std=c++14 support. [builder@f7279ae9f33f build (master %)]$ /usr/bin/c++ -v 2>&1 | grep version gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) [builder@f7279ae9f33f build (master