compiler-errors

Strange "Argument not optional" error in VBA

Private Sub importClipboard_Click() Dim data As Collection data = getClipboardData() ...do something... End Sub Function getClipboardData() As Collection ...do something... End Function I am getting an "Argument not optional" compile error on the line: data = getClipboardData() What am I doing wrong? There no ar...

MSVC++ 6.0: Fatal error C1509 "Too many exception handler states in function"

I'm working on a project that uses a lot of generated files for a GUI. After some recent updates, I get this error. If I remove some controls (the new ones or some old ones, doesn't seem to matter which), the error goes away. I've temporarily worked around the problem, but I'd like a more permanent solution. I've seen mentioned on th...

"Call Stack" for C++ errors in Visual Studio 2005

Is there a "call stack" for compiler errors in Visual Studio 2005 (C++)? For example, I am using a boost::scoped_ptr as the value in a QHash. This is however causing the following compile error: 1>c:\qt\include\qtcore\../../src/corelib/tools/qhash.h(743) : error C2248: 'boost::scoped_ptr<T>::operator =' : cannot access private member d...

Error: incompatible types in assignment

I am writing some objective-C code and i can't figure out why this does not work: buttonRect = CGRectMake(0,0,100.0,100.0);//error:incompatible types in assignment CGRect newFrame = CGRectInset(buttonRect, -0.2, -0.2);//error:incompatible type for argument 1 of CGRectInset button.frame = newFrame; buttonRect is a CGRect defined as an ...

getting strange stacktrace on compiling groovy class

I'm coding a small test app in Groovy. I have the following code. class Address { static constraints = { street(blank:false, maxSize:100) residencenumber(min:1, max:65000) addition() zip() city(blank:false, maxSize:100) county() country(blank:false, maxSize:50) } String street String zip int residencenumber...

C++ strange compile linker error

...

private non-const and public const member function - coexisting in peace?

I am trying to create a class with two methods with the same name, used to access a private member. One method is public and const qualified, the other is private and non-const (used by a friend class to modify the member by way of return-by-reference). Unfortunately, I am receiving compiling errors (using g++ 4.3): When using a non-co...

C++ compile errors in Unicode Release MinDependency but not in Debug

Let me start out by saying I'm in charge of the creating and managing the builds and installs and I'm not a C++ developer so most of the errors below are incomprehensible to me. That being said a developer (not around right now) checked in some code that compiles fine in Debug|Win32 (using VS08) but I need to get it to compile in Unicod...

C++ STL map typedef errors

I'm having a really nasty problem with some code that I've written. I found someone else that had the same problem on stackoverflow and I tried the solutions but none worked for me. I typedef several common STL types that I'm using and none of the others have any problem except when I try to typedef a map. I get a "some_file.h:83: erro...

(C++ and gcc) error: expected constructor, destructor, or type conversion before 'inline'

I have a header file with some inline template methods. I added a class declaration to it (just a couple of static methods...it's more of a namespace than a class), and I started getting this compilation error, in a file that uses that new class. There are several other files that include the same .h file that still compile without com...

for_each() in C++

Hey guys, I've compiled my code on two different machines, which I thought had identical setups. However, one compiles without issues, and the other gives the following error. LogEventReader.cpp(320) : error C3861: 'for_each': identifier not found, even with argument-dependent lookup The relevant code: #include <algorithm> ... for_...

Objective-C on GNUstep AutoReleasePool undeclared problem

I'm new to Objective-C and working in GNUstep and MinGW environment. I am compiling this code but having an error: #import "Foundation/Foundation.h" @interface C : NSObject { float f; } - (void) gamerHell: (NSString *) name : (NSString *) lastName ; @end @implementation C - (void) gamerHell: (NSString *) firstName : (NSString *...

solving identifier "xxx" is undefined

Hi All, I am experiencing something weird that I dont quite understand. I am getting errors like: framework/CP_STLArrayDefines.h(37): error: identifier "CP_String" is undefined typedef std::vector<CP_String, std::allocator<CP_String> > CP_Strings_Array; ^ framework/CP_STLArrayDefines.h(37): error: iden...

Getting a compile error : 0x2 trying to open file <vfdmsg>.

I'm trying to build http://chitchat.at.infoseek.co.jp/vmware/vfd.html (VS 2008, Windows Server 2008 x64) however I'm getting the following error messages: Error 1 error : 0x2 trying to open file <vfdmsg>. mc lib Error 2 error PRJ0019: A tool returned an error code from "Compiling Message - L:\src\lib\vfdmsg.mc" lib lib Error 3 error : 0...

unsatisfied forward or external declaration

getting an error while compiling .pas file "unsatisfied forward or external declaration :TxxxException.CheckSchemeFinMethodDAException." any idea what this error could imply? Does it mean that "CheckSchemeFinMethodDAException" was not called in all the concerned files? ...

Object slicing with private copy constructor in derived class in C++

Hi all Suppose I have something like the following in test.cxx (and that I do the object slicing at 1 intentionally): class A { }; class B : public A { // prevent copy construction and assignment B(const B& other); B& operator=(const B& other); public: explicit B(){} }; class C { A m_a; public: explicit C() : m_a( B() ) {...

Why doesn't this C++ template code compile?

Does anyone know why this will not compile? I've tried both VS 2008 and GCC 4.something and both spit out errors. It doesn't matter whether or not I'm referencing "ThisFunctionDoesNotCompile()". I can workaround this by just passing 'InternalType' as a second template parameter to Base, but I'm still curious why this comes up as an er...

Compiling Error On BlackBerry

Hi Friends I have done simple java app for blackberry, while building am getting following error. "Building Hisantosh C:\BlackBerryJDE4.5.0\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=Hisantosh Hisantosh.rapc warnkey=0x52424200;0x52525400;0x52435200 "C:\Documents and Settings\Santosh\My Documents\Downloads\greetingscree...

Java errors and syntax. Any help appreciated

I am asking for help on self-help, which is kind of an oxymoron. How do I bug you nice folks less by solving more of my own problems? I am in my last week of Java programming and I am having a huge hurdle with learning Java. I have read all the books but I keep getting hung up on tiny little issues. It is like trying to build a house ...

Visual Studio 2005 C compiler problem when optimizing a switch statement

General Question which may be of interest to others: I ran into a, what I believe, C++-compiler optimization (Visual Studio 2005) problem with a switch statement. What I'd want to know is if there is any way to satisfy my curiosity and find out what the compiler is trying to but failing to do. Is there any log I can spend some time (pro...