Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

How to use gcc compiler on Github windows runners when using scikit-build-core [duplicate]

I'm using scikit-build-core to build my c++ program on github windows runners. I would like to use gcc instead of microsoft visual studio as the compiler. Below is how I configure compiler settings in ...
Jiawei Lu's user avatar
  • 537
0 votes
0 answers
31 views

Need to convert a Visual studio C++ project to a Cmake [duplicate]

I have a c++ code repo it has almost 68 projects within it. It was initially created using MSVC. I need to build that same project with gcc using cmake. Is there a way to convert that to a CMAKE ...
Nesan Mano's user avatar
  • 2,126
-2 votes
0 answers
51 views

Address sanitizer CHECK failed [closed]

I am writing a program using the gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux toolchain. There is a task to check if there are any memory leaks in the program. I saw in tutorials that adding ...
Waldemar _'s user avatar
0 votes
0 answers
19 views

Why is CMake not using the specified toolchain? [duplicate]

I'm trying to compile a binary for a atmega328p-based board using the AVR 8-bit toolchain via CMake. I'm on windows. My cmake command is: mkdir build cd build cmake --toolchain C:\Users\Me\src\alarm-...
MHebes's user avatar
  • 2,915
0 votes
0 answers
13 views

Cmake 3.17.5 (Centos7): using ISO C90 whereas CMAKE_CXX_STANDARD=11 [duplicate]

I have a simple program I compile with make via CMake. The CMakeLists.txt contains set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) but I get lots of warnings and errors. warning: ISO ...
None's user avatar
  • 2,358
0 votes
0 answers
33 views

Linker problem while retargeting newlib with static library [duplicate]

I use a Gnu Arm toolchain with GCC v12.3. I want to do some retargeting on my stm32. For this, I have a file stdlib_override.cpp: #include <cerrno> #include <sys/stat.h> #include <sys/...
Nicolas's user avatar
  • 618
0 votes
0 answers
34 views

attempting to install libdeflate - "gcc versions older than 4.9 are no longer supported", but I'm using gcc 7.3

I am trying to install libdeflate in an python environment on a HPC using the following code cd $tools_dir git clone https://github.com/ebiggers/libdeflate.git cd $tools_dir/libdeflate module load ...
Ashley Keesling's user avatar
4 votes
0 answers
121 views

Multiple object files with identical T(ext) symbols in GCC on Mac aarch64

I have a very simple project on my Mac (architecture = aarch64, xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64). It consists of the following: // main.cpp #include "s1.hpp" #include <boost/...
SupAl's user avatar
  • 949
0 votes
0 answers
21 views

Using vscode's cmake plug-in, .asm files and .S files cannot be loaded

I'm encountering an issue while using the CMake plugin in VSCode. It seems unable to load .asm and .S files. I've tried several approaches, including configuring CMAKE_ASM_SOURCE_FILE_EXTENSIONS in ...
kanghao chen's user avatar
0 votes
0 answers
69 views

How can I handle multiple gcc stdc++ configurations in cmake for _GLIBCXX_DEBUG_BACKTRACE?

How can I handle multiple gcc configurations in cmake? The following fails for some releases of ubuntu. if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") target_compile_options(myapp PRIVATE ...
jozxyqk's user avatar
  • 17k
0 votes
1 answer
119 views

package installed but not detected by CMake

The dependency are already installed but still not being detected by Cmake build. For example Package 'hyprcursor', required by 'virtual:world', not found and other package like libliftoff, libdisplay-...
shohel hossain's user avatar
0 votes
0 answers
56 views

How to use CMake with offloading-enabled gcc built from source

I want to use an offloading-enabled gcc in a CMake project. To this end, I built gcc from source to use it for OpenMP offloading to an NVIDIA GPU. I could not use distro packages, because of recent ...
RL-S's user avatar
  • 847
0 votes
0 answers
61 views

Stop CMake from exporting dependencies

I am compiling a shared object using CMake (3.24) for Linux using gcc. For better code management, I have split our code into multiple static libraries that I combine together along with dependencies ...
Tejas Pendse's user avatar
-1 votes
1 answer
280 views

'AvailabilityInternalLegacy.h: No such file or directory' error when running C++

I am running my C++ project via CLion. I use the g++ compiler and have the defaults set for the CMake and ninja toolchains in CLion. It used to work totally fine till now, but recently I installed ...
MangoPizza's user avatar
0 votes
1 answer
39 views

Integration of drake to OpenSUSE - Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp:28:10: fatal error: mpi.h: No such file or directory

I am trying to integrate drake to OpenSUSE. This is the custom GitHub repo containing my progress. Despite installed openmpi-devel and exporting the location of my openmpi package location: dan@...
Daniel He's user avatar

15 30 50 per page
1
2 3 4 5
54