All Questions
Tagged with gcc compiler-errors
862
questions
0
votes
1
answer
31
views
Tensorflow 2.17.0 build failed with bazel linux
I download the source code of tensorflow-2.17.0 from github, then i run 'configure' and build with bazel-6.5.0 successfully,
> bazel build //tensorflow/core:tensorflow
then i create a folder 'test'...
-1
votes
0
answers
17
views
Im new to C++ idk how to run the code and im getting some errors
I am new to C++ because I've been using python and I just learned how to install packages with vcpkg and I installed dpp/dpp.h but when I put it in a file it says it recognizes the package but as ...
0
votes
0
answers
13
views
Why does clang fail on mabi but not gcc?
Given my file test.c:
#include <stdarg.h>
int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }
I try:
$ clang -m64 -c -g -O2 -mabi=ms test.c -Wall -Wextra
which ...
-2
votes
0
answers
48
views
growisofs - How do I fix the errors returned by attempting to compile it in cygwin? [closed]
Context: I'm attempting to build growisofs from its source code (version 7.1) using the following command in the Cygwin terminal: make TARGET_ARCH=-m64, but it gives me several errors when I attempt ...
1
vote
1
answer
43
views
Failing to compile package from Mac [duplicate]
I'm trying to install a package in R, and I get the following error:
clang: error: unsupported option '-fopenmp'
This, is after I got an error:
ld: warning: search path '/opt/gfortran/lib/gcc/aarch64-...
0
votes
0
answers
31
views
C:\Users\DELL\AppData\Local\Temp\cctSSakm.o:test.c:(.text+0x1e): undefined reference to `get_string' collect2.exe: error: ld returned 1 exit status
I see the error
c:\Users\DELL\AppData\Local\Temp\cc61L1BV.o:test.c:(.text+0x1e): undefined reference to `get_string'
collect2.exe: error: ld returned 1 exit status
C
#include <stdio.h>
#include ...
0
votes
0
answers
34
views
GCC 11.2.0 Installation with nvptx-tools Fails on CentOS 7: 'ACCEL_COMPILER_acc_device' Not Declared
I am trying to run OpenACC code on a GPU and need to use GCC for compiling the C++ code. Specifically, I am attempting to install GCC 11.2.0 with nvptx-tools on a cluster running CentOS 7. The compute ...
0
votes
1
answer
30
views
Issue with building Unikey on Ubuntu 22.04
I'm trying to install Unikey (a program for typing Vietnamese) on Ubuntu 22.04 by following the instructions on the Unikey Linux page. While running ./configure was successful, I encountered an error ...
-3
votes
1
answer
79
views
I get this error regarding the constructor when I try to compile with g++ and I'm using macOS :no matching constructor for initialization of [closed]
I have a perfectly normal code (a cpp and a cpp file) and a makefile and but when I try to compile it with g++ I get this :
g++ -std=c++11 -c subject.cpp -o subject.o
In file included from subject.cpp:...
2
votes
1
answer
51
views
class template argument deduction failed on the use of designated initializers with list initialization
The compilers (GCC and Clang) are giving an error when using the curly braces init syntax with designated initializers when initializing a struct template instance.
Here:
template <class T>
...
-5
votes
1
answer
105
views
C++ Compiler error : The term 'make' is not recognized as the name of a cmdlet [closed]
I want to compile cpp project in vscode and I write "make to terminal after that I have a error :enter image description here What do you think about this error .How I solve this?
I can't ...
0
votes
0
answers
72
views
Can I ask GCC to give me a warning or error on empty structs?
I just had the worst problem ever in my mixed C/C++ project.
The C code is the production code, the C++ is the testing environment. We are compiling with MinGW GCC, but developing on Qt Creator which ...
0
votes
1
answer
281
views
make: cc: No such file or directory
I use ubuntu 24.04 lts. I am trying to compile Makefile of my DEXP ZH-UTC2 usb-ethernet adapter with make command.
That is how Makefile of the driver looks like:
TARGET = ax_usb_nic
KDIR = /lib/...
2
votes
2
answers
70
views
A function returning anonymous structure
Why is the following construct invalid:
struct { int a, b; float c; } func ()
{
struct { int a, b; float c; } test;
return test;
//return (struct { int a, b; float c; }){0,0,0.0}; /* ...
0
votes
0
answers
59
views
Undefined reference to function (Prob makefile error)
I have a code that is not running probably because a error in my makefile file. I have to run 3 functions from a external library but i cant use them because of thet undefined error
My implementation ...