Questions tagged [compiler-errors]
An error that is generated during the compilation phase, often due to problems with invalid syntax and/or types. Compare to [runtime-error].
20,341
questions
0
votes
1
answer
25
views
Program isn't running on VS Code, FullyQualifiedError and gcc.exe error
Image of terminal showing the error
On running C program it is showing
+FullyQualifiedErrorId: NativeCommandFailed and gcc.exe error in the VS code terminal.
I tried using V
Terminal commands to ...
0
votes
0
answers
7
views
linking error during compilation with exit code 1 while downloading ruby. How can I solve this?
I try to install Ruby by using ruby-install ruby 3.2.2.. I constantly get an error
compiling ripper.c
ripper.c:10310:9: warning: variable 'yynerrs' set but not used [-Wunused-but-set-variable]
int ...
-2
votes
1
answer
24
views
Cannot invoke equals(String) on the primitive type double [closed]
Cannot invoke equals(String) on the primitive type double this problem occuring when i try to comapare double fees with string name how to resolve it.
i want to compare fees in the frontedn ie one ...
1
vote
2
answers
24
views
Lombok not compiling an abstract generic superclass
I have this class:
@SuperBuilder
public abstract class EventFinder<EventType> {
private final String accountId;
public abstract List<EventType> find();
public static abstract ...
0
votes
1
answer
13
views
an error in my python code that i can not understand
I am writing a python code that calculate (nCr), i made a factorial function to use in the process.
this is my first-time learning python so understanding the errors are quite hard can anyone explain?
...
3
votes
1
answer
55
views
Why does TypeScript/Javascript allow usage of uninitialized variables without throwing errors?
I have encountered an issue where TypeScript or JavaScript does not throw an error or warning for using an uninitialized variable within code snippets. Consider the following scenarios:
In the first ...
-1
votes
0
answers
33
views
how can i resolve the graphic.h error in vs code? [duplicate]
enter image description here
I can't use graphics.h or any graphics commands in VS Code on my laptop. I am new to coding and can't find a way to resolve this issue. I also tried to install the ...
-4
votes
0
answers
25
views
Cannot read properties of null (reading 'firstName') TypeError: Cannot read properties of null (reading 'firstName') [closed]
[enter image description here](https://i.stack.imgur.com/B217D.png)
Tried crosschecking the code, but couldnt find any solution. The issue keeps showing on the navbar page, but all other pages are ...
0
votes
0
answers
29
views
The method getSubmittedFileName is undefined for the type Part
Here's the code snippet of .java file...I've imported javax.servlet.http.part to use getsubmittedFileName method, but it's not working.
Even i have servlet version 4.0..
tomcat version 9.0.82..
How ...
0
votes
0
answers
25
views
unknown type name macro coding preprocessor [closed]
`When I run a test file on my hashltable.h, one of the errors says :
In file included from src/hashltable_test.c:2: src/hashltable.h:250:50: error: unknown type name ‘typkey’ 250 | int ...
-1
votes
0
answers
9
views
Property type is not allowed. error Drupal
Hello everyone I face a problem with my libraries.yml file specifically when I want to add external links for CSS and JS it gives me this error: "Property type is not allowed."enter image ...
-1
votes
1
answer
66
views
C++ doesn't recognize my class as a class [duplicate]
I am stuck on this and I am sure it is something obvious that I just don't see. I have been staring at the code too long or something. Compiler generates this error:
[build] /home/chrisk/Projects/TMH/...
-1
votes
2
answers
74
views
ICE: Internal compiler error: 0 @ 00000000 in C++ builder when using the exprtk.hpp library
I get this error every time I try to create an exprtk::parser<double> object. This is the only object that causes this error when I create it, and I have no idea why.
I just want the project to ...
0
votes
0
answers
7
views
Node listen EPERM operation not permitted
I use beget hosting, write express server
app.js:
const express = require('express');
const app = express();
const http = require('http');
const server = http.createServer(app);
app.get('/', (req, ...
-2
votes
0
answers
49
views
SDL2/SDL.h: No such file or directory gcc my compiler can't find the SDL2 folder and the SDL.h file
SO i wanted to try C++ and SDL2 im actually learning some stuff and i wanted to start creating a game with SDL2 i followed a tuto to install everything, everything seemed fine until the error showed ...
-2
votes
0
answers
25
views
Fatal error: L6002U: Could not open ./abc.o no such directory or file [closed]
L6002U: Couldn't open ./abc.o no such file or directory.
Hello Everyone,
I am getting the Fatal error during building the project.
It says that L6002U: Couldn't open ./abc.o no such file or directory.
...
0
votes
0
answers
42
views
JOptionPane cannot be resolved [closed]
I'm a newbie to the programming world and was trying to make a GUI by learning from a YouTube tutorial, but I'm getting an error. I'm using Eclipse as my IDE.
The Code is as follows:
package beforedsa;...
0
votes
0
answers
16
views
ERROR: Resource and asset merger: Can't determine type for tag [closed]
Bom dia pessoal, estou a um bom tempo co m esse erro que ocorre quando excecuto o comando "YARN ANDROID".
"ERROR:C:\Users\DEV-THIAGO.gradle\caches\transforms-3\...
0
votes
0
answers
25
views
build.gradle file not compile
Build file 'C:\Users\Felipe\AndroidStudioProjects\MyApplication\build.gradle' line: 23
Could not compile build file 'C:\Users\Felipe\AndroidStudioProjects\MyApplication\build.gradle'.
> startup ...
-2
votes
0
answers
122
views
When I compile some C++ code, I sometimes get seg faults [closed]
This is error info, and this seems unrelated to the code:
0x7f621672e08f ???
/build/glibc-BHL3KM/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f621670f082 ...
0
votes
0
answers
51
views
Trying to Compile/Run CPP MSYS2 but Receiving "No such file or directory" Error Message
I wrote a .cpp program on Notepad as a test run.
#include <iostream>
int main()
{
std::cout << "Hello\n";
}
I then installed mingw-w64-x8664-gcc onto MSYS2 for my 64-...
-1
votes
0
answers
6
views
How can I force "ionic serve" to fail upon startup if there are compilation errors in the codebase?
I'm using Ionic 7 and React 18. There are places in my codebase where VSCode warns me about typing errors, for example in a reducer
logout: (state) => {
state.user = null
state.isAuthenticated ...
-2
votes
0
answers
45
views
Need help understanding Go syntax with curly brace and equal-sign use in map declarations [duplicate]
I'm learning Go, still very beginner, and I'm having trouble grokking the style/intent/grammar of variable declaration.
Specifically, the code example below has confused me about when to use curly-...
-3
votes
0
answers
37
views
MS Visual Studio doesn't compile template function [duplicate]
I need to use template function. for instance:
template <typename T>
void fncAdd(const T a, const T b, T* c)
{
*c = a + b;
}
When I keep this code in the same file as function main() ...
-1
votes
0
answers
28
views
compile error while running mvn clean install
while running mvn clean install compile error occurring
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/Hp/AppData/Local/Temp/...
0
votes
0
answers
44
views
I got this build error: spawn C:\WINDOWS\system32\cmd.exe ENOENTBuild finished with error(s) [closed]
`I'm currently using VSCode to run C++ programs. It was running all well then suddenly I got this error
enter image description here
Anyone has encountered this before? How can I fix this?
Thank you ...
0
votes
1
answer
81
views
Archlinux PHP-8.2.12 Source Build
I am unable to compile the latest PHP from source on Arch Linux.
I have looked up several how to install documentations but they are for Ubuntu/Debian.
Am I missing a library or do I need to specify ...
0
votes
0
answers
48
views
Scala3 doesn't display type mismatch or format errors in Intellij
I'm using Scala 3.3.1 and Intellij isn't giving me helpful build error outputs and no error highlighting.
For example, if my project uses any 3.x Scala SDK, and I have the following incorrect code, it ...
0
votes
2
answers
70
views
Why does one of these work and the other not?
I want to share (and change) a mutable Vec across threads, in a scoped thread pool context, using scoped_thread_pool.
let ids_for_discard: Arc<Mutex<Vec<String>>> = Arc::new(Mutex::...
0
votes
0
answers
21
views
cannot find -lfl when i compile a file with flex ( Windows)
i have this code
%{
#include <stdio.h>
%}
%%
[0-9]+ printf("Entier : %s\n", yytext);
[a-zA-Z]+ printf("Mot : %s\n", yytext);
\n printf("Nouvelle ligne\n&...
-1
votes
0
answers
17
views
Flutter::: Unresolved reference: `groovy-gradle-plugin Error Line 6
Launching lib\main.dart on V2149 in debug mode...
e: E:\my Project\flutter\packages\flutter_tools\gradle\build.gradle.kts:6:5: Unresolved reference: groovy-gradle-plugin
FAILURE: Build failed with an ...
-1
votes
0
answers
20
views
Encountering "compilerIncompatibleAssign" error while implementing a generic binary tree insertion function in Go [closed]
I am relatively new to Go's generic types and I am attempting to create a generic binary tree insertion function for different types. Most online examples focus on generic types in the context of ...
0
votes
0
answers
75
views
Inferring (at compile-time) which members are read inside method
Consider this code:
#include <type_traits>
#include <tuple>
// Random structs that follow this pattern
struct X { int x; using Type = int; };
struct Y { float y; using Type =...
-1
votes
1
answer
77
views
Can you explain why does the compiler report an error CS0826?
When I tried to create an implicitly typed array I got this error.
I tried to compile this code:
public class Bad
{
public static implicit operator Good(Bad bad)
{
return new Good();
...
3
votes
0
answers
89
views
How to Convert .i file to .asm with cl.exe
I have a simple C code like this :
#include <stdio.h>
int main(){
printf ("this a test");
return 0;}
I want convert this code (code.c) to code.i (Preprocessing file) ,so ...
-1
votes
0
answers
25
views
Error: invalid vs_2_0 output semantic 'SV-TARGET' [closed]
I was looking to install the hl2ss app in the Hololens-2, however whenever I run the code on VS Studio this error appears and I can´t quite figure out what it stands for and why it happens.
I've seen ...
0
votes
0
answers
11
views
How can I fix this hyper terminal command-line error code: 800A0404?
I was trying to configure my Hyper Terminal Command-Line through Edit -> Preferences and this popped up Microsoft JScript compilation error: 800A0404 Please, I need help to resolve the problem (I'm ...
1
vote
1
answer
85
views
Unsure what to do with this Compile error
I'm trying to compile some C source code (https://github.com/smcameron/space-nerds-in-space)
PC is running Ubuntu 18.04
I run into the following error when I run the 'make' command
COMPILE mathutils.c
...
0
votes
1
answer
18
views
make: *** [makefile:135: obj/bitvector.o] Error 1
I'm trying to compile the tool Shapeit5.
After running the make command the tool give the following warning:
g++ -std=c++17 -O3 -mavx2 -mfma -D__COMMIT_ID__="3d97fcd" -D__COMMIT_DATE__="...
0
votes
0
answers
39
views
Angular upgrade to 16 throws many unknown elements errors from AppModule
I have upgraded my project from Angular 15 to 16. After this for many ,compilation errors for unknown errors. Tried many solutions like adding schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA], but ...
0
votes
0
answers
54
views
Compiling a library with Rcpp causing many 'unknown type'/'no member named' errors
I'm trying to compile a package that includes Rcpp functions and compilation is finding a ton of errors:
==> R CMD INSTALL --preclean --no-multiarch --with-keep.source polowam
* installing to ...
-1
votes
0
answers
29
views
I can't compile a kivy python program
I have tried everything to compile my code in google colab, but there is always this error:
# COLAB_KERNEL_MANAGER_PROXY_PORT = '6000'
# CLOUDSDK_PYTHON = 'python3'
# NV_LIBNPP_DEV_VERSION ...
-1
votes
0
answers
31
views
Templated class implementation in cpp [duplicate]
It gives error whenever I try to implement functions in cpp file. I tried many things and only instantiation in cpp worked, but it works for only predefined type so it's not a solution. How to fix it?
...
-2
votes
0
answers
31
views
how do I fix this missing return statement error [duplicate]
How can there be a missing return if it is already stated in the "else-if" operation?
I already have 2 return statements in the else-if operation, so why is there a missing return statement?
...
0
votes
0
answers
51
views
error: expected unqualified-id before ‘)’ when I compile a c++ project
I'm having this error when trying to compile a cpp hook project
/root/lib-173/hook.cpp:14:77: error: expected constructor, destructor, or type conversion before ‘(’ token
rcmp::hook_function<...
0
votes
1
answer
90
views
Compiler error about control reaches end of non void function
I'm getting a compiler error when compiling my code.
The problem is to find the largest prime factor for each of the fixed number of numbers from the user
The error I got -
Solution.c: In function ‘...
1
vote
0
answers
60
views
Dagger Hilt error in Android Studio (Unsupported metadata version)
Hi guys i am working in a little project using dagger hilt in android studio, but the app is not running and instead displays an error like this :
Task :app:hiltJavaCompileDebug FAILED
error: [Hilt]
...
0
votes
1
answer
52
views
C programs not giving expected results after compiling in Mac terminal
I have a project that compiles 24 C files in MacBook air terminal, each containing their own function. I created a library for these functions using ar rcs libLibrary_name.a * .o, compiled them all ...
0
votes
0
answers
44
views
how to fix an apple silicon arm64 program thats getting an error saying that two of the variables are not 4 aligned
The error that I am getting is complaining about one of the string variables and the input variable that is set to six for testing. It says that they are not 4 aligned. This is on my mac mini with an ...
0
votes
2
answers
108
views
Makefile won't find *.lib but path is declared
I am trying to compile a plugin example for a software from autodesk.
here is the Makefile
##############################################################################
# Makefile for use ...