compiler-errors

What is "[DCC Fatal Error] frm_Test.pas(381): F2084 Internal Error: C15700"?

Hello, I am upgrading a project from Delphi 2009 to D2010 and came across the following Internal Error [DCC Fatal Error] frm_Test.pas(381): F2084 Internal Error: C15700 when calling (ILocalizable(TMyProgram.MainForm.AbilitiesForm)).Localize('c:\test.txt'); Here are the definitions: ILocalizable = interface ['{4DF36053-2651...

illegal reference to non-static member 'Sun::m_SunTexture'

Hi, I am not overly competent in C++ and this compiler error is just making no sense to me. The following line calls the compiler error shown in the title: m_SunTexture = LudoTextureManager::GetInstance()->GetTextureData(hardcoded.c_str()).m_Texture; where m_SunTexture is defined in my header file as IDirect3DTexture9 *m_SunTexture...

Method for solving error: "cannot instantiate abstract class"

I find one of the most time-consuming compiler errors for me is "cannot instantiate abstract class," since the problem is always that I didn't intend for the class to be abstract and the compiler doesn't list which functions are abstract. There's got to be a more intelligent way to solve these than reading the headers 10 times until I fi...

sqrt from math.h causes compile error

So I've run into an interesting problem I've never seen before. I created a small program, as follows: #include <math.h> #include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { int i; double tmp; double xx; for(i = 1; i <= 30; i++) { xx = (double) i + 0.01; tmp = sqrt(xx); ...

Strange C# compiler error

Can someone help me sort out this compiler error? I have a class like this public class Test { public delegate void TestAction<T>(T arg); public delegate void TestActionCaller<T1, T2>(T1 arg, TestAction<T2> action); public static void Call<T1,T2>(TestActionCaller<T1,T2> actioncaller) { actioncaller(default(T1), arg...

error C2664 + generic classes + /Wp64

Hi! I've got the following lines of code: p_diffuse = ShaderProperty<Vector4>(Vector4(1,1,1,1)); addProperty(&p_diffuse, "diffuse"); p_shininess = ShaderProperty<float>(10.0f); addProperty(&p_shininess, "shininess"); the addProperty function is implemented as follows: template <class A_Type> void IShader<A_Type>::addProperty( Shade...

<list> retreving items problem with iterator

I have a list of type Instruction*. Instruction is a class that I made. This class has a function called execute(). I create a list of Instruction* list<Instruction*> instList; I create an Instruction* Instruction* instPtr; instPtr = new Instruction("test",10); If I call instPtr.execute(); the function will be executed correct...

Boost Multi-Index with hashed_unique_index produces compiler error

Hello, I learned in THIS THREAD how a hashed_unique<> index can be used with a composite_key using an int and a std::vector<int>. But unfortunately the following code produces quite an error message: 1> boost/multi_index/hashed_index.hpp(439) : error C2784: 'size_t .. composite_key_hash<...>::operator ()(const boost::tuples::tuple<......

was not declared in this scope C++

Why do I get this error in the code below? class ST : public Instruction{ public: ST (string _name, int _value):Instruction(_name,_value){} void execute(int[]& anArr, int aVal){ //not implemented yet cout << "im an st" <<endl; anArr[value] = aVal; } virtual Instruction* Clone(){ return new ST(*this); ...

Error preverifying class javax.crypto.interfaces.DHPrivateKey

Hi I am getting the following error during compilation(JAVA ME). any ideas?..thanks Error preverifying class javax.crypto.interfaces.DHPrivateKey java/lang/NoClassDefFoundError: java/security/PrivateKey ...

What's causing this error in a subclass of MKAnnotationView?

I'm trying to create a subclass of MKAnnotationView for an iPhone Mapkit app, but for some reason I am suddenly encountering this error: Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 These are my header and main files for the code that seems to be causing the error. Though the error d...

create singleton class that has constructor which accepts arguments that are evaluated runtime

I want to have singleton class that its object is not statically created. having the following code, when I call ChromosomePool::createPool() I get the following error message : --> ChromosomePool.h:50: undefined reference to `myga::ChromosomePool::pool' <-- Can anyone please tell me how can I solve the problem ? class ChromosomePool ...

include file error in C++

Problem fixed! Thanks a lot for the constructive suggestions! I am unable to figure out what is the mistake in the following code. Is there something wrong with the way I am doing includes? // This is utils.h #ifndef UTILS_H #define UTILS_H #include <iostream> #include <fstream> #include <stack> #include <queue> #include <vector> #inc...

Getting multiple definition error

Hey, I'm trying to compile some c++ files. I'm getting the following types of errors at the linking phase (the compiling is working) - Main.o: In function operator<<(std::basic_ostream<char, std::char_traits<char> >&, Set const&)': /usr/include/c++/4.3/new:105: multiple definition of operator<<(std::basic_ostream< char, std::char_tr...

What does the "head mismatch" compiler error mean?

I tries to write code to print Z character. zzzzzzz z z z z z zzzzzzz But when I compile this code, it throws D:\erlang\graphics>erlc zeez2.erl d:/erlang/graphics/zeez2.erl:19: head mismatch d:/erlang/graphics/zeez2.erl:6: function zeez/3 undefined I can't fixed this error. I didn't find what wrong in my could. Doe...

Java JUnit: The method X is ambiguous for type Y

I had some tests working fine. Then, I moved it to a different package, and am now getting errors. Here is the code: import static org.junit.Assert.*; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.jgrapht.Graphs; import org.jgrapht.WeightedGraph; import org.jgrapht.graph.DefaultWeightedEdge; import or...

Java compiler error. Cannot find symbol

Why am I getting this error when the SystemController class is in the same directory? sgs$ javac Main.java Main.java:27: cannot find symbol symbol : class SystemController location: class sgs.Main SystemController sc = new SystemController(); ^ Main.java:27: cannot find symbol symbol : class SystemController location...

Public operator new, private operator delete: getting C2248 "can not access private member" when using new

A class has overloaded operators new and delete. new is public, delete is private. When constructing an instance of this class, I get the following error: pFoo = new Foo(bar) example.cpp(1): error C2248: 'Foo:operator delete': cannot access private member declared in class 'Foo' But there's no call to delete here, so what is going o...

Error C2589 on std::numeric_limits<double>::min()

Hi! When I try to compile some code (not my own) i get a C2589 '(':illegal token on right side of'::' on this line: maxPosition[0]=std::numeric_limits<double>::min(); i guess this is because there is already a min() macro defined, but why is the compiler not taking the min() from the specified namespace instead of the macro? ...

Autohotkey choking on curly brace in simple If's

I have a problem with Autohotkey telling me there was a missing { in front of an else where I think my Code is perfectly fine (and worked until before I changed the window-related if's from Pidgin to qutIM) ^!p:: IfWinExist ahk_class QWidget, ,qutIM{ ;if there is a qutIM-window other than the buddy-list... IfWinNotActive ahk_class...