compiler-errors

No copy constructor available or copy constructor is declared 'explicit'

Could somebody please explain why I'm getting a compile error here - error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available or copy constructor is declared 'explicit' #include <memory> #include <vector> #include <string> template<typename T> struct test { typedef std::auto_ptr<T> dataptr; typedef std::auto_ptr< ...

Compiler Error in C: expected ')' before '*' token

As the title says, keep getting this error when trying to compile. From Googling this error people have said that it is not declared in the header file but my function is static and it is not in a header file, I prototyped it.` #include <recGbl.h> #include <devSup.h> #include <devLib.h> #include <drvIpac.h> #include <dbScan.h> #include ...

Troubles with errno.h

I'm coding a simple SDL program with VC10. The problem that I am having is at compiling the program: Error 1 error C1083: Cannot open include file: 'errno.h': No such file or directory c:\program files\microsoft visual studio 10.0\vc\include\cerrno 14 Error 2 error C1083: Cannot open include file: 'errno.h': No such file or directory c...

Delphi Error E1026 File not found: "myprojectname.tlb"

I have a project let's call it Yellow.dproj, which I saved as Blue.dproj, to make some changes. There must be some COM/DCOM related code in this project, but I can't figure out where. The error I am getting when I try to build Yellow.dproj is that it can not find a type library (TLB) file: "E1026 File not found: ". The file it can't ...

Artificial Intelligence Compiler

I was wondering, is it possible to use Artificial Intelligence to make compilers better? Things I could imagine if it was possible - More specific error messages Improving compiler optimizations, so the compiler could actually understand what you're trying to do, and do it better If it is possible, are there any research projects...

Odd compiler error, Davlik error 1 from java.net.DatagramPacket.class

Hello, I suddenly started getting an unusual compiler error and is it making impossible to do any testing, I am running Eclipse with the plugin and compiling on the 2.1 version. [2010-08-11 00:29:38 - PeriodTrackerv2] trouble processing "java/net/DatagramPacket.class": [2010-08-11 00:29:38 - PeriodTrackerv2] Attempt to include a core...

Cannot open include file "jni.h", No such file or directory exists

I am implementing the simple JNI example , as given in http://java.sun.com/docs/books/jni/html/start.html At the second last step, when the C source is being compiled, the following command is used--- C:\Program Files\Java\jdk1.6.0_21> cl -IC:\Program Files\Java\jdk1.6.0_21\include -IC:\Program Files\Java\jdl1.6.0_21\include\win32 ...

VC++ 6.0 MFC - Problem using Macro defined in <WINSER.H>

Hello there, I am facing a weird problem. I have got a file called in which I am using a macro called "WM_USER", the macro is defined in another header file called . Now the problem is that when I am using the macro in the compiler doesn't recognize it. Its not the case that I haven't included , because earlier I wasn't having any prob...

What does delphi compiler error E2134 mean?

In some code I am fixing up, which makes heavy use of generics and interfaced types, I am getting error E2134, Type '<void>' has no type info. I believe it is because I am in the middle of a refactor where some deeply nested set of units that all use generics are out of sync, but the error is not happening in a place where I can mak...

Problem building a silverlight project with MVVM-light on my PC. On other computers it builds.

Hello, I work in a team on a silverlight project. This silverlight project uses MVVM-light. When I want to build the project I get the following two errors: Error 1 : The type 'EventTrigger' does not support direct content. I get this error on this xaml code: <HyperlinkButton x:Name="HyperlinkButtonSelectAll" Content="Select all" IsTa...

jsp compile exception after endorsing jars

I am using opensaml 2.2.3 - Therefore I have to endorse the following jars: resolver-2.9.1.jar serializer-2.9.1.jar xalan-2.7.1.jar xercesImpl-2.9.1.jar xml-apis-2.9.1.jar This causes an error during jsp compilation in my web application: logon.jsp:26:20: Error in example.jsp" at line 83: No tag library could be found with this URI....

How must the prototype of this function look like to be compilable?

I have this code: void PrintMainParameters(int n, char* array[]) { int i = 0; for(i = 0; i < n; i++) { printf("%s \n", array[i]); } } int main(int argc, char* argv[] ) { PrintMainParameters(argc, argv); } Works fine. Now I want to write PrintMainParameters as prototype to declare the function later in the source file. I...

Eclipse Make Error 127

Hey, this is my first time using Eclipse, and my first time programming in a linux environment. So I might end up posting some semi-usless information, but I'm just trying to give what ever details I can. The Issue: I'm trying to build a project, and I'm getting the following errors and warnings. The Question: What would I have to do, ...

Passing Template parameters

I am trying to understand templates better I have a template class that starts like this in my .h: template <class DOC_POLICY, class PRINT_POLICY, class UNDO_POLICY> class CP_EXPORT CP_Application : public CP_Application_Imp Now I need to initialize so in my .cpp so I do: CPLAT::CP_DocumentPolicy_None * d = new CPLAT::CP_DocumentPol...

inheriting from a template class causes errors

I have a template class MyTemplate. It works fine. But as soon as I create another class that derives from it, I get errors. //main.cpp template <typename T> class MyTemplate { public: T* test() { return new T(this); //error here. } }; template <typename T> class MyTemplate2 : public MyTemplate<T> { }; ...

Is there compile warnings or errors for deprecated code in XCode for iOS4 projects by default?

Hi Everyone, I took over an iPhone project recently that was developed prior iOS4. I'm wondering if XCode would prompt warnings or errors on compile. It currently succeeds with "No issues" when built so is it safe to assert that it contains no deprecated code? Or is there a setting to be set on XCode to warn on compile for deprecated co...

Error on missing return statement

How do I generate an error for a missing return statement under GCC? cpfsfuse.c:184: warning: no return statement in function returning non-void I'm able to return errors for implicit function declaration (-Werror-implicit-function-declaration), and I'm aware of a -Werror= switch, but I can't locate an appropriate warning to promote t...

Compiler not following symbolic links in Visual Studio C++

I am using Visual Studio 2008 C++ project (Visa 32 bit). I have the following #include directive in my source code. #include <example/header.h> In my include path I specify the parent directory of 'example', i.e. C:/.../include where the full path to the header looks like C:/.../include/example/header.h However, 'example' is a ...

OpenGL ES - unexpected end of file while looking for precompiled header

I'm trying to learn OpenGL ES with the "OpenGL ES Training Course" (An OpenGL ES tutorial). I use OPENGL-ES 1.1 WINDOWS PC EMULATION with visual studio 2010. I'm trying to comile the 'hello triangle' program and get 9 warnings and an error: The warnings: #include <stdio.h> skipped when looking for precompiled header use #include <TCHAR...

VC++ says "no overloaded function takes 7 arguments" I say YES IT DOES!

In my PDBComponent class's header file, I just created a new constructor for a grand total of two constructors: class PDBComponent { public: PDBComponent(string name,double min_current,double nom_current, double max_current, EPSCommands* command_ptr, double delay); PDBComponent(string name,double...