compiler-errors

CS0246: Missing an assembly reference - works locally, but not on webserver.

I'm trying to implement a paymentgateway (Ewire, a danish payment gateway), and it works fine locally, but when I'm putting it online, it says I'm missing an assembly reference. I am sure that I'm using all the assembly references I need, since it works offline, and I'm also sure that the public class is registered (it's in my masterpag...

Getting Invalid Authsub Token Error 403

Hi, I am trying to authenticate my application using Blogger API but when user grant access to the application and blogger api return the token and the token i use to exchange the by sending the request on https://www.google.com/accounts/AuthSubSessionToken it return an error called Error 403 Invalid AuthSub Token. Kindly help me in this...

Is there a way to use expressions evaluated at compile-time with inline asm in gcc?

I have some code that basically needs to use a small expression in an assembly statement, where the expression is fairly trivial like i*4, but GCC doesn't seem to realize that at compile time (tried no -O flag, and -O3). Neither "i" nor "n" constraints work in the following snippet for the third usage. #include <stdint.h> #include <st...

How to reference a function from one .m file in another?

Hi, this is a bit of a newbie question but I can't seem to find it anywhere. I have defined a class in a set of .h/.m files and have a separate .h/.m for drawing. What I'm trying to do is create an array of objects from this class, and draw them sequentially to the screen. Of course, I'm getting a 'squares' undeclared (first use in this...

Error compiling the Device-Driver Source Code in Linux

I am writing a simple device driver in C in Ubuntu 8.04 and when I compile my C code: #define MODULE #include <linux/module.h> int init_module(void) { printk("<1>Hello, world\n"); return 0; } void cleanup_module(void) { printk("<1>Goodbye cruel world\n"); } it gives the error: "Module.h not found", to handle which I searched for mod...

c syntax problem w/some changes now

Right now I am only trying to get my getline() function to work. I have the code from the book and it seems to be identical, but I cant get it to compile. This is homework but this part should be just copying from the book. #include <stdio.h> #include <stdlib.h> #include <math.h> //error list #define ENDOFFILE = -1; #define TOOMANYN...

Switch error:: cannot appear in a constant-expression

Hi Guys - this is a strange one... I am playing with some decompression algo. Instead of going through the char buffer[] and looping until a stop-bit in buffer[i] is found, I am trying use some bit-mask techniques but with chars. I have the following example: // In a *.h file const char ch = '\x81'; // To avoid Endianess unio...

const correctness problem with copy constructor?

...

Why isn´t this compiling

#include <stdio.h> typedef struct point{ int x; int y; }; void main (void){ struct point pt; pt.x = 20; pt.y = 333; struct point pt2; pt2.y = 55; printf("asd"); return; } VS 2008 c:\documents and settings\lyd\mis documentos\ejercicio1.c\ejercicio1.c\ejercicio1.c(14) : error C2143: syntax erro...

Operator error in template

I am trying to create a "value" template class, where additional properties can be assign to it easily. Properties are stored in std::map<std::string, std::string>, and operator[] has been overloaded to provide quick access to them. #if ! defined __VALUE_H__ #define __VALUE_H__ #include <string> #include <map> namespace Algorithm { ...

Weird Compilation Error on Xcode

Simple problem... I had some comments on my code and deleted them and got an error. After some hours I arrived at the source. This code works: switch (indexPath.row) { case 0: NSLog(@"case 0"); break; case 1: // Clients NSLog(@"case 1"); ViewClientListTableController *viewListTableController = [...

Java generics and wildcards: How to make this code compile?

I'm writing some matchers using the Hamcrest 1.2 library, but I'm having a hard time with Java wildcards. When I try to compile the following code public class GenericsTest { public void doesNotCompile() { Container<String> container = new Container<String>(); // this is the desired assertion syntax assertT...

Synthesize property errors when compiling iPhone app.

I am following the tutotial on Apple's website for building your first iPhone application, as this is a field i would like to be involved in. I completed the app, but then decided to merge it with another app. (One simply changes an image when tapped, one displays text from a text box when a button is tapped, so not too tricky to combi...

C++ infix to postfix

I get the following error when I compile: convert.cpp: In function 'std::string convert()': convert.cpp:62: error: expected primary-expression before 'else' convert.cpp:62: error: expected `;' before 'else' convert.cpp:108: error: expected `}' at end of input convert.cpp:108: error: expected `}' at end of input convert.cpp:108: error...

Compile-time error or runtime error

for example Class B extends A. An object A test= new B (x,y); Then a method that there is only on Class B is invoked on the test object. Will it be a Compile time error or a run time error? Overall what are the different between both errors. ...

Obscure compiler error on piece of beginner C++ code

Hello guys, g++ is letting out an obscure error, undefined reference to '__gxx_personality_sj0' in two lines of my project. What does this mean in this context? I googled a lot and found out this is usually related to the inclusion of C code in C++ or something like that, which is not what I'm going for. (I know the code isn't high qual...

Error compiling in release mode but not in debug mode

When I compile on VS 2008 in deubg mode everything works fine. When I compile the same thing in release mode not everything works. As far as I can tell the include directories are the same and there are no additional preprocessor symbols. Any help? 1>zlib.cpp 1>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xutil...

System not declared in scope?

I know its simple code, How do I fix "System not declared in scope" problem? #include<iostream> using namespace std; int main(void) { system ( "TITLE Calculator" ); system ( "COLOR 2" ); char cChar; double dfirstnumber; double dsecondnumber; char cDoagain; do { system("CLS"); cout << "...

CS0234 for Referenced Local Project

I am receiving the CS0234: The type or namespace name '...' does not exist in the namespace '...' (are you missing an assembly reference?) I notice when I click on "Show Detailed Compiler Output" that the project nor its binary output is referenced in the csc build command. It was working fine before but after I make a few changes in...

"Cannot Find Symbol" compile error

My coding experience has only gone back a few years, so this question should be easy enough to answer. I have written two interfaces: Class and Game. Interface CLASS is supposed to extend interface GAME. Here are the two interface sources: package Impl; public interface Game { //METHODS AND VARS } package Impl; public inte...