20,620 questions
0
votes
0
answers
42
views
Compiler errors related to avx512 when upgrading from Eigen 3.4.0 to 5.0.0 on x86-64 RHEL cluster
I get the following error when compiling my C++17 project that uses the Eigen 5.0.1 library; I didn't see this error when using Eigen 3.4.0 on the same machine:
<path>/eigen-5.0.1/Eigen/src/Core/...
16
votes
2
answers
854
views
Why can std::string create a constexpr object only if it's a static variable?
I'm wondering why std::string can't be constexpr if it's a stack variable:
#include <string>
#include <iostream>
#include <cstring>
constexpr std::string str15 {"...
-7
votes
0
answers
123
views
Whenever I try to compile my MAUI project I get CS0246 Error
I'm trying to build a three piece Streaming Project in which I need to build an API that is already working, a Java App for Android that I haven't even started and this .NET MAUI using C# that is ...
0
votes
0
answers
43
views
Cannot find UniProvider used by unidac10. Check the search path of package unidac10, try a clean rebuild, check the uses (implementation) sections
I’m trying to compile a Lazarus project that uses UniDAC, but Lazarus keeps failing with:
unidac10.pas(11,3) Error: Cannot find UniProvider used by unidac10.
Check the search path of package unidac10,...
0
votes
1
answer
78
views
Problems getting JavaFX running on VS Code
I have never used JavaFX before and I am trying to get it running in VS Code using the basic Maven project build tools and it creates the project just fine. I then go in and update all the version in ...
4
votes
1
answer
114
views
Cannot declare instance members in an extension block with an unnamed receiver parameter
I am trying to declare an extension property for the int type in C# 14:
extension(int)
{
public int MyProperty => 13;
}
I am getting this compilation error:
'MyProperty': cannot declare ...
Best practices
2
votes
1
replies
24
views
Can compiler infer final type when merging objects of complementary generic type?
I want to create an object of type whole by merging objects types Omit<whole,keyof A> and A. Is there a way to do this without using a type assertion(as)?
function merge<Whole extends object, ...
-3
votes
1
answer
35
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
3
votes
1
answer
119
views
Deleted function compiler errors using thrust::remove in C++
I am currently attempting to use the thrust::remove function on a thrust::device_vector of structs in my main function as shown bellow:
#include <iostream>
#include <thrust/device_vector.h>...
0
votes
1
answer
107
views
How to compile multiple .cpp files in a folder using visual studio code with MinGW?
I'm trying to compile my app using vs code and g++ on windows 11 without having to type all the files manually in the task.json file, but everytime I try to compile I get a fatal error :
cc1plus.exe: ...
0
votes
1
answer
182
views
Is it valid to explicitly call a constructor, like S::S{}?
Here's the code:
struct S{};
int main()
{
S::S{};
return 0;
}
When using GCC and Clang, it will fail with a clear error output:
qualified reference to 'S' is a constructor name rather than a ...
1
vote
0
answers
50
views
Why does `in` not guard types to allow indexing an object? [duplicate]
The TypeScript handbook recommends using the in operator for narrowing.
Yet this doesn't work when the attribute name is variable.
type MyObj = {
a?: string;
b?: boolean;
c?: number;
};
...
2
votes
1
answer
64
views
NG8004: No pipe found with name 'PipeName'. [plugin angular-compiler]
I'm using Angular 19, and my project is non-standalone. I catch an error about pipe's name not found.
I've created a pipe:
@Pipe({
name: "translate",
standalone: false
})
export class ...
1
vote
1
answer
165
views
The "gcc" command is either misspelled or could not be found
I’ve installed GCC (MinGW-w64) and the necessary VS Code extensions for C/C++ development.
However, when I try to run even a simple C program, I get the following error:
The "gcc" command is ...
2
votes
0
answers
164
views
timespec, timespec_get not found in the std namespace and TIME_MONOTONIC not defined
I was trying to learn about how to use timespec_get in c++ (for fun)
I tried to compile the following code using g++ 14.1.0
//main.cpp
#include <ctime>
int main(){
std::timespec CurrentTime;...
3
votes
5
answers
267
views
Why does strlen(NULL) cause a compile-time warning, while my custom ft_strlen(NULL) only crashes at runtime?
I'm trying to reimplement the standard strlen function in C, and I'm closely replicating its behavior. I defined my function based on standard C declaration for strlen:
size_t ft_strlen(const char *s);...
0
votes
0
answers
256
views
Unreal Engine 5.6.1 Packaging Compiler Error {LogOutputDevice: Error: Ensure condition failed: bCustomPropertyListForPostConstructionInitialized}
I'm having a problem that I can't solve because I'm just to rookie for it, and I spent the last day trying to find a solution that it didn't work, I tried to rename it, it didn't work, I tried ...
-3
votes
1
answer
107
views
I apparently hit a Rust bug, what to do?
I apparently hit a Rust bug. The minimal example:
use std::cell::RefCell;
thread_local! {
static REQUESTS_CHECKER: RefCell<()> = RefCell::new(());
}
async fn a() {}
async fn b() {
...
0
votes
1
answer
65
views
Error in OPENMODELICA: INTEGER_ATTRIBUTE' has no member named 'nominal'
I have created a modelica package with dymola with opensource libraries. the models in the package are compiled and simulated in Dymola perfectly but when I try to simulate them in openmodelica, the ...
0
votes
0
answers
72
views
Qt isn't detecting MSVC compiler while installation
My Qt isn't able to detect MSVC 2022 compiler only showing MINGW compiler in installation. I have Visual Studio with MSVC 2022 Latest and have all the necessary configuration like software ...
1
vote
0
answers
154
views
Excel VBA Compile error, method not found
My code has suddenly stopped working. I am getting compile error when I run this macro Image 1. the combobox1 object definitely exists Image 2
I really cannot think what has changed for it to fail ...
2
votes
1
answer
537
views
Kotlin compiler error in Android Studio after using "Replace with new library catalog declaration" quickfix
NOTE: Scroll to the bottom for the exact reproduction steps.
When I add the dependency com.squareup.okhttp3:okhttp:5.1.0 to build.gradle.kts (app module), apply the "Replace with new library ...
2
votes
1
answer
169
views
Why calling static field with the class is different from use just the variable name? [duplicate]
Consider the following code:
public class Example {
static { System.out.println(Example.value); }
static final int value = 7;
public static void main(final String[] args) { }
}
...
0
votes
1
answer
61
views
Problem in compiling c++ codes including FFmpeg libraries using em++ into WebAssembly
When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using:
emconfigure ./configure \
--prefix=$(pwd)/installed ...
0
votes
1
answer
427
views
Apple Clang 21 unable to compile with c++ 23 stacktrace header
I am trying to use the C++ 23 stacktrace header in my project but I can't get it to compile. I've reproduced this with a minimal case to demonstrate the error I am getting. Any input would be greatly ...
0
votes
1
answer
100
views
Omnet++ Inet4.5 cannot resolve import
I'm new to OMNeT++ 6.1 with INET 4.5. I wanted to create a .msg file where I import the TagBase from inet.common.TagBase. I referenced inet4.5 in Properties -> Project References but it can't ...
1
vote
2
answers
140
views
How can i convert a negative binary number to sbyte(c#)
I am messing around with c#, and i noticed something. If i were to instantiate an sbyte
with 8 bits, such as 0b_1111_1111 (-1), it throws an error, but if i were to first make a byte with it, and then ...
0
votes
0
answers
71
views
Bundler option to use older Ruby headers?
I am running some old ruby code and it misbehaves with the latest versions of some dependencies. I can change the dependency version in the Gemfile and then ask bundle to install the dependencies.
The ...
1
vote
1
answer
67
views
Parameter 0 of constructor in Service required a bean of type 'Repository' that could not be found
For some reason whenever I try to even start my Spring REST API after adding the second datasource it says it can't find the repository classes.
I use custom DB Config classes for each one and even ...
2
votes
1
answer
74
views
Why in Erlang do i need to specify `-module` if it is equal to filename?
For example, if I create file jopa.erl with this code inside ...
-module(jopa).
...everything compiles without errors
However, if I put this code inside jopa.erl ...
-module(lol).
and try to compile....
0
votes
0
answers
51
views
How can I get more helpful syntax error messages in a Groovy 4.0.9 Script with embedded methods?
I have embedded Groovy 4.0.9 in my application as a scripting language, and I want to be able to provide helpful feedback to my users when their scripts don't compile. This works ok with a basic ...
2
votes
1
answer
56
views
GHC(Haskell) not picking up imports from makefile
I have been making a Haskell project that I want to continue on in C at some point through the FFI. I wanted to create a makefile to compile all the source with Clang for C and GHC for Haskell.
The ...
0
votes
1
answer
157
views
What causes the "undefined reference to ..." error when compiling with gcc
I encountered an error while attempting to compile a larger project. I didn't have any problems with this before when I was using the Code Blocks IDE. To diagnose the issue I attempted to recreate the ...
0
votes
1
answer
70
views
Flutter error while running without debugging
I made no changes in any but once i ran the app as usual it started giving me this error
: file:///C:/src/flutter/packages/flutter_tools/gradle/src/main/kotlin/DependencyVersionChecker.kt:97:99 ...
1
vote
1
answer
100
views
Execution failed for task ':launcher:mapReleaseSourceSetPaths' - Unity 6
I am trying to build my Unity mobile game to Android. And when building the gameI got this error:
Execution failed for task ':launcher:mapReleaseSourceSetPaths'.
Could not resolve all files for ...
0
votes
0
answers
41
views
Can't install PyCuba
I am unable to use PyCuba, a Python interface for the multidimensional-integration library Cuba, on macOS 15.5. PyMultiNest, which requires PyCuba, is common for Bayesian analysis in the scientific ...
2
votes
1
answer
87
views
compiler errors when trying to use modify function in boost multiindex when looping over a specific iterator?
I have made a boost multiindex of my GameObject, and I am trying to loop through and call non const functions on it. And I cannot for the life of me to get boost to stop giving long nasty compiler ...
1
vote
1
answer
67
views
How to fix this lifetime-related error happen when using the Fn trait?
Context
I'm trying to learn Rust by just reading the book and working through the problems in Advent of Code (the 2024 edition). Just to make it harder, I decided to practice TDD while I do it.
To ...
0
votes
0
answers
98
views
How to fix this error in Zegocloud Flutter development
I was following this documentation to create a ZegoCloud Video Call UIKit on Flutter using Dart (https://www.zegocloud.com/docs/uikit/callkit-flutter/quick-start-(with-call-invitation)). However, I ...
3
votes
2
answers
111
views
How to instantiate std::vector using decltype?
This is my test code:
#include<vector>
#include<iostream>
#include<type_traits>
using std::vector;
using std::is_same_v;
using std::cout;
using std::endl;
int func()
{
struct ...
2
votes
0
answers
289
views
Caused by: org.jetbrains.kotlin.gradle.tasks.CompilationErrorException: Compilation error. See log for more details
When I run my react native project it give the above error
Here I shared the details description of the error
Task :react-native-gesture-handler:compileDebugKotlin FAILED e: file:///Users/apple/...
0
votes
1
answer
112
views
tradingview! Persistent Pine Script v6 error: Syntax error at input 'end of line without line continuation'
It affects any struct. I've cleaned chars, renamed, tried new scripts – still fails.
Any solutions? So frustrating.
//@version=6
indicator("TestStruct", overlay=true)
struct MyData
float ...
1
vote
1
answer
145
views
Errors when compiling MPC-BE from unmodified source code
I'm trying to build MPC-BE, an open-source media player for Windows, using the instructions provided in Compilation.txt and the GitHub README, because I want to add some features to allow external ...
1
vote
2
answers
181
views
What is this compiler error trying to convey?
The test code is as shown below:
#include<vector>
#include<algorithm>
#include<iostream>
using std::vector;
using std::min;
using std::cout;
using std::endl;
int func()
{
vector&...
1
vote
0
answers
75
views
Why does the rust compiler keep a mutable reference here? [duplicate]
Consider the following program:
struct RNG {
numbers: Vec<u32>,
}
impl RNG {
pub fn new() -> RNG {
RNG { numbers: vec![] }
}
pub fn generate_random_numbers(&mut ...
0
votes
0
answers
89
views
Compiling JS failed in Expo(React Native)
I am currently developing with Expo (React Native) and am getting errors as shown in the attached image.
I would like to debug it. How do developers who usually use React Native debug it? I would like ...
1
vote
1
answer
841
views
How to resolve TypeScript type error with jwt.sign and Secret in jsonwebtoken? [duplicate]
I'm working on a TypeScript project where I'm using the jsonwebtoken library to generate and verify JWT tokens. However, I'm encountering a type error when trying to use the jwt.sign function.
import ...
0
votes
0
answers
47
views
getting Cannot invoke "org.w3c.dom.Node.getLocalName()" because "node" is null in Android studio [duplicate]
I'm working on an Android project and encountering a strange error during the build process. The app fails while executing the :app:mergeDebugResources task with the following error:
I have tried with ...
0
votes
1
answer
35
views
Progress compile option 'requireReturnValues' fails with error throwing
I have set the compile option requireReturnValues="Error".
I tried to compile the following example code but it doesn't pass the option:
METHOD PUBLIC LOGICAL checkValue(i_cValue AS CHAR):
...
1
vote
1
answer
139
views
{dcc64 Error} E2042 Write error on '.\Win64\Debug\MyApp.exe' in Delphi IDE when compiling
Every time I try to compile and/or run my app I get this error:
[dcc64 Error] E2042 Write error on '.\Win64\Debug\MyApp.exe'
According to the Embarcadero docwiki the issue is:
The compiler ...