All Questions
798
questions
0
votes
0
answers
14
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 ...
0
votes
0
answers
32
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 ...
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-...
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 ...
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/...
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 ...
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/...
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 ...
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
...
0
votes
1
answer
123
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-...
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 ...
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 ...
-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 ...
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@...
0
votes
0
answers
42
views
Shared library dependency is not forwarded by a static library target when privately linked
I have a complex CMake project where an executable links to a shared library. The shared library has a dependency on a static library. The static library in turn depends on other shared libraries.
A ...