Questions tagged [compiler-errors]

1

votes
1

answer
26

Views

Java 8 wildcard type cannot be instantiated directly

Java 8 here. I have the following generic class: public class Memory { private String moniker; private Date timestamp; private T data; // constructors, getters & setters, etc. } I'm trying to build a non-generic MemoryFactory like so: public class MemoryFactory { public Memory createMemory(Object da...
hotmeatballsoup
1

votes
1

answer
97

Views

Releasing .exe file from input string as code

I have a question. How to release .exe file from string input? I want to compile to exe Hello World C# example. Here is my code: var code = input.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); var provider = CodeDomProvider.CreateProvider('CSharp'); string exeName = string.Fo...
michasaucer
0

votes
0

answer
17

Views

Lambdas, Is this keyword needed to disambiguate const/non-const member functions?

When I use MSVC to compile this program, I receive the error, 'Example::bar ambiguous call to overloaded function' Then, I found that the this keyword was able to resolve the error. Surprised, I used rextester and found that both Clang and GCC were able to compile the program without the this keywo...
Rabster
1

votes
2

answer
7.1k

Views

'bzero' was not declared in this scope

I already included using this function bzero(&server, length); but the compiler says error: 'bzero' was not declared in this scope `
User10259
1

votes
2

answer
44

Views

Does public static functions of base class become member functions of derived class if base class is inherited publicly?

I am trying to run the following code but getting error. #include template class Base { public : static T& Get() { static T t; return t; } }; class Derived : public Base { private : Derived() {} // friend Base; //un-commenting this will make code work. }; int main(...
kapil
1

votes
2

answer
76

Views

NASM floating point - invalid combination of opcode and operands

I am trying to compile the following code sample (NASM syntax) from this article on x86 assembly floating point: ;; c^2 = a^2 + b^2 - cos(C)*2*a*b ;; C is stored in ang global _start section .data a: dq 4.56 ;length of side a b: dq 7.89 ;length of side b ang: dq 1.5 ;opposite angle to side c (a...
Jet Blue
1

votes
3

answer
49

Views

What is a exception error and how do I fix it?

I am extremely new to Java and need your help. I was given the class MD5Digest by my instructor, and when I run the file by itself, it compiles without an issue. But when I copy and paste the class over to my file, it doesn't work. Can someone please help me? I read that it has something to do w...
GarbageCoder
1

votes
3

answer
66

Views

Compiler errors with incorrect use of nullptr

I am trying the solution provided in this SO Q/ACompiler error while using shared_ptr with a pointer to a pointer and I am not able to use the solution provided in a proper way. I still get compilation errors on Ubuntu 18.04 with g++ version 7.3 Here is my minimum complete verifiable example to repr...
gansub
1

votes
1

answer
38

Views

Electron Atom - Module “Node-Windows” not found after compiling

After hours of searching and still not finding a usefull answer, I hope somebody could help me with following issue that I'm facing: I inclued to my Electron APP a module called 'node-windows' so I could register a script as a service to a windows machine. I've installed it over the command => npm...
Dennis
1

votes
0

answer
145

Views

Both methods have same erasure, yet overrides the other

I'm trying to implement a Queue but my method 'enqueue(E e)' is giving me an error saying that the method clashes with the method in the Queue interface but neither override the other. What is going on? Here is the Queue Interface public interface Queue { /** * Returns the number of elements in the...
MMelvin0581
1

votes
0

answer
25

Views

Error compiling LWJGL example with Java/NetBeans

I recently looked at these tutorials on LWJGL. I'm trying to compile them in a NetBeans environment. But it gives an error: Cannot find symbol. Location: class Texture; Method: getTexture (); I declare the method as follows: public Texture getTexture () { return texture; } Location of method: class...
Kareist
1

votes
1

answer
314

Views

Overriding Clone() method in Java [duplicate]

This question already has an answer here: Is protected method in super class visible in sub class in a different package? [duplicate] 2 answers I know I should implement the Cloneable interface and then override the clone() method of the Object class in Test, and this is not my problem . I just do...
John
1

votes
0

answer
217

Views

libmysqlclient compile error: In function `yaSSLv3_server_method'

I want to compile C files in ubuntu16.04, the makefile file is as follows: TARGET := matchengine.exe INCS = -I ../network -I ../utils LIBS = -L ../utils -lutils -L ../network -lnetwork -Wl,-Bstatic -lev -ljansson -lmpdec -lmysqlclient -lz -lrdkafka -lssl -lcrypto -lhiredis -Wl,-Bdynamic -lm -lpthre...
丁文軍
1

votes
0

answer
20

Views

Different results when building with cmd devenv vs. VS2017 IDE

When I compile my solution from within the VS2017 IDE, it worked fine. However, when I run it from a commandline (no matter if from the 'normal' commandline or the developer tools' commandline), it fails with the error Inputfile ...\silk_common.lib was created using an older compiler than the other...
tmighty
1

votes
0

answer
378

Views

Class not found using the boot class loader; no stack available

I have a trouble with this error Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available I read some article, they said that I should enable/disable Instant Run. But this way doesn't work for me. Any recommend me?
Phuc Coi
1

votes
0

answer
170

Views

Can't compile libpqxx 6 on Ubuntu 16.04

I'm trying to compile the example code for the postgres C++ drivers libpqxx 6 repo here. I keep getting errors (as below). Anyone know how to resolve ? g++ -std=c++11 -I /usr/local/include/pqxx/ -L /usr/local/lib/ -I /usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ postgres.cpp -lpqxx -lpq In f...
avrono
1

votes
0

answer
112

Views

Error Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. when compile apk from cocos2dx project

I'm new with cocos2d-x. I've stuck in this error for two day, when I compile my project, this showed up : * What went wrong: Execution failed for task ':FlappyBird:transformClassesWithDexBuilderForDebug'. com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilde...
nguyen nam
1

votes
1

answer
352

Views

Sample Pyspark program returns [WinError 2] The system cannot find the file

Here is the code I am trying to run. I have set the paths for spark, hadoop, java and python. Using Java 8, Spark 2.2.1 and hadoop 2.7.5. import random from pyspark import SparkContext, SparkConf conf = SparkConf().setAppName('MyFirstStandaloneApp') sc = SparkContext(conf=conf) NUM_SAMPLES = 20 def...
GLalor
1

votes
1

answer
455

Views

Migrating from ARM 5 to ARM 6 Compiler: Unknown type name '__STATIC_INLINE' in ARM CMSIS file

Currently migrating a large embedded C project in uVision from ARM 5 to ARM 6 compiler. The most persistent error is error: unknown type name '__STATIC_INLINE' which occurs in the core_cm4.h file which is provided by ARM which is read-only, hence I am hesitant to edit it. Nevertheless, I changed (un...
a2xia
1

votes
1

answer
22

Views

How to convert non-numeric values to blank for use in case statement?

I am working on the following query: declare @start date = '06/01/2016'; declare @end date = '07/31/2017'; ----------------------------------------------------------------------------- ------------------------------------------------ -- Pull all claims with paid date in range parameter --------...
G SQL
1

votes
1

answer
328

Views

How to include Google API JSON credentials file in Pyinstaller?

My first question here. I am hobbyist self-learned python. I know this may be a silly question but I can't find any information after many days of searching. I'm making an app to read data in google spreadsheet using Google API and then outputted PDF file with a nice picture of the pre-formatted la...
Harin Yu
1

votes
3

answer
498

Views

libpcre throwing a “.rodata can not be used when making a shared object” error while compiling NGINX

I am trying to compile NGINX on Ubuntu 16.04.3 LTS, with these instructions: https://www.vultr.com/docs/how-to-compile-nginx-from-source-on-ubuntu-16-04 Instead of nginx-1.13.1, I'm trying to do so with nginx-1.13.8 (mainline), but during make, I'm running into an error with the pcre Library: ... ob...
Katai
1

votes
0

answer
66

Views

mex -I flag not finding include files in a separate directory

Running into another MATLAB mex file related issue. Currently trying to automatically generate mex files from .cpp files in a given directory given the paths to said directories. Currently my command looks soft of like this... % These are getting passed in, but I verified the contents % input = 'C:\...
Ian
1

votes
0

answer
178

Views

multiple definition error in Clion

I added 'Mersenne Twist Pseudorandom Number Generator Package' (one header file and one source file) to my Clion C project, but I can not build the project. the error is : multiple definition of `mts_lrand' I can successfully compile and run the program using just command line and gcc but in Clion...
shayeste
1

votes
0

answer
68

Views

PHP7.1.X and PHP7.0.X X64 compile fails

Having issues with X64 compiling on Windows. Using VC14 and X64 as targets. On the same machine and with same setup X86 versions compile fine. Using instructions to compile X64 from following link: https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 D:\php-sdk2\php-sdk-binary-tools\phpdev\v...
VladacusB
1

votes
0

answer
1.2k

Views

Mono compiler // Terminal emulator issue

I get this error when I try to compile csharp or fsharp files. This happens when using gnome terminal or jetbrain rider. It works fine in tty or termials like xterm and urxvt. Also I am able to compile c, c++ and go code. Btw, I am using Arch/Antergos and got this issue yesterday. Unhandled Excepti...
Lucas Roschnowski
1

votes
1

answer
358

Views

Metadata file 'Newtonsoft.Json.dll' could not be found

I have a console application that I am attempting to deploy to an Azure VM (Windows Server 2012R2). The console application creates a CSharp compilier instance and processes C# scripts that are sent to it. CSharpCodeProvider provider = new CSharpCodeProvider(); CompilerParameters options = new Compi...
webworm
1

votes
1

answer
86

Views

C++ C4716 Beginner error. Understand the error conecpt but not sure how to make the program work

I'm currently working on a program for one of my classes that goes like so: #include // std::cout using namespace std; #include // SetConsoleCursorPosition(HANDLE,COORD) #include // _getch() struct Vector2 { int x, y; Vector2() : x(0), y(0) {} Vector2(int x, int y) { x = x; y = y...
Tiffany Tice
1

votes
1

answer
107

Views

C++ Give compiler error for setting a (static) const global variable to another static const variable

Is it possible for clang to give a compiler error if you accidentally set a const global variable to another static const variable in C++ (in different translation units). Since the behaviour is pretty much undefined, it would be very useful to detect if doing this accidentally. EDIT: My question is...
keyboard
1

votes
1

answer
267

Views

Error in building angular app in production mode

When I want to build my app with prod flag, building process will be failed because of using Http module in one of my services. It cannot resolve the parameter for this service. here is the sample of code import { BadInput } from './../common/bad-input'; import { NotFoundError } from './../common/no...
MOSH
1

votes
0

answer
158

Views

Fatal Error C1047

I received a project built in VS15 in Release mode. I am trying to build it on my machine that has VS17. The problem is I am receiving this error: https://msdn.microsoft.com/en-us/library/ms173554.aspx 'The object or library file 'pathToFile\file.lib' was created with an older compiler other other...
JetsYanks08
1

votes
1

answer
54

Views

how to limit undefined symbol errors in ld?

Often, when a library is missing, the link step will show a ton of Undefined symbols errors, eg: Undefined symbols for architecture x86_64: 'std::__1::error_code::message() const', referenced from: llvm::errorToErrorCode(llvm::Error) in libLLVMSupport.a(Error.cpp.o) ... Is there a ld flag to limit t...
timotheecour
1

votes
0

answer
311

Views

Issue installing rDEA - compilation failed for package

I'm trying to use the package rDEA. I have most recent r version 3.4.4 ('Someone to Lean On'). I'm using most recent R Studio 1.1.423. I get the error compilation failed for package 'rDEA'. Can anyone help? Precise details: install.packages('rDEA') Package which is only available in source form, and...
Jessica Milligan
1

votes
0

answer
22

Views

PPL get Compiling Errors when run command

I need to run some ppl code in ppl command. Here is the code: service tar0_starter function start const pathFolder= OS.consol?.ask_string ('Please enter at path of file:') if_null: error const my_folder = directory.creat(directory_path.create (pathFolder)) if not my_folder.exists then OS.out.write_...
foo
1

votes
1

answer
909

Views

libmpi_mpifh.so.12: cannot open

I'm trying to run an Atmospheric Model (RegCM) but I've the next error when I try to run an executable ./regcmMPI: error while loading shared libraries: libmpi_mpifh.so.12: cannot open shared object file: No such file or directory I'd trying running commands like: Sudo apt-get install openmpi-de...
Carlos Madrigal
1

votes
0

answer
73

Views

Code Compilation errors with poco-1.8.1

I have built a windows service using poco 'poco-1.8.1'. I am using various features of poco like services, json, httpclientsession, httprequest etc. While building the code I get errors like: 1>. . . \libs\poco-1.8.1\foundation\include\poco\metaprogramming.h(104): error C2059: syntax error: 'string'...
RKum
1

votes
0

answer
2.4k

Views

Get current record values

I'm quite new at programming in Access VBA. I have a form that shows one record at a time, and I added a button to run a code when you press it. In some part of the code, I need to get the values of the current record (shown in the form). So, the form I'm working on is 'frmProductos', and I want to...
Cristina K
1

votes
2

answer
39

Views

Try Catch for OS Errors due to Syntax when compiling C++ Program in Python

I am trying to create a python function which will execute a C++ script based off users input. The function replaces some lines in a C++ file, and then executes it on python. Whenever the lines being replaced in the C++ file have wrong syntax, an error on invalid syntax occurs. In such case, I want...
1

votes
0

answer
81

Views

Compilation errors when including <regex> using Clang 3.x with --std=c++11

I've been trying to compile the Catch2 header as part of a larger existing project where I used to rely on googletest. I've been able to get the port working nicely on Windows, but I'm struggling to get the library compiled on Ubuntu using Clang. I've tested versions 3.5 through 3.7. I've included t...
Julius
1

votes
1

answer
61

Views

Errors compiling WolfSSL

I'm a newbie,and I'm trying to compile static library for Click Router, currently wolfSSL, i'm on Ubuntu 17.10 i'm following these steps: Clone wolfSSL GIT repo: cd clickDynCOAP git clone https://github.com/fvdnabee/wolfssl.git cd wolfssl git checkout click compile wolfSSL: [cd wolfssl] ./autogen.s...
nope123

View additional questions