compile-error

error: expected ';' before '<' token

my compiler throws error: expected ';' before '<' token on this line of code: std::vector< std::vector<int> > data; What's real weird is that I compiled this earlier today on my mac with g++ on the command line and now i'm trying to compile in xCode on the same mac (which i assume also uses g++) and it throws this error. What am I...

Compile redeclaration error of global variable in C++, but not in C.

Suppose that I have those three files: a.h //a.h header #include <stdio.h> int int_variable; void a_f() { printf("int_variable: %d\n", int_variable) int_variable++; } b.h //b.h header #include <stdio.h> int int_variable; void b_f() { printf("int_variable: %d\n", int_variable) int_variable++; } main.c //main.c #inclu...

Emacs next-error (C-x `) visualization.

Hello, when I get a compiler error (in my case gcc) in Emacs (version 23 for information) I use next-error Lisp function to jump to the next error :) But when I do this the window is split vertically, but I want this to be done horizontally. Anyone know how to modify this behavior? Thanks ...

11415 compile errors FTW?!

Hello. This is something I've really never seen but, I downloaded the source code of the sine wave example at http://www.audiosynth.com/sinewavedemo.html . It is in an old Project Builder Project format, and I want to compile it with Xcode (GCC). However, Xcode gives me 11415 compile errors. The first few are (all in the precompilation ...

Ways to show your co-programmers that some methods are not yet implemented in a class when programming in C++

What approaches can you use when: you work with several (e.g. 1-3) other programmers over a small C++ project, you use a single repository you create a class, declare its methods you don't have a time do implement all methods yet you don't want other programmers to use your code yet (because it's not implemented yet); or don't want to ...

Compiling with OpenSSL ssl_conn errors.

I am trying to compile a small .c file which uses OpenSSL includes, at first I had problems compiling but I solved it installing libssl-dev and that solved the include errors. But now when I try to compile I get: ‘ssl_conn’ has no member named ‘encrypted’ ‘ssl_conn’ has no member named ‘write_seq’ ‘ssl_conn’ has no member named ‘read_s...

Java compile error with interfaces

I get the following error message (reduced to the important part) when I'm compiling my classes: reference to keySet is ambiguous, both method keySet() in java.util.SortedMap<E,capture#614 of ?> and method keySet() in test.ImmutableMap<E,capture#614 of ?> match return map.keySet().iterator(); ^ map is of type Immutab...

C# compile error: “X is inaccessible due to its protection level”

hi, when c# gives this compile error? 'Favorite.Favorites.FavoriteCollection' is inaccessible due to its protection level private void Form1_Load(object sender, EventArgs e) { Favorites objFavorites = new Favorites(); objFavorites.ScanFavorites(); foreach (WebFavorite objWebFavorite in objFavorites.FavoriteCollecti...

multiple nested wildcard - arguments not applicable

I've heavily simplified my problem. Here's how it reads. I'm trying to figure out why the following code does not compile: List<AnonType<AnonType<?>>> l = new ArrayList<AnonType<AnonType<?>>>(); l.add( new AnonType<AnonType<String>>() ); where public class AnonType<T> { T a; List<T> b; } The compiler error is saying that ad...

Notes 7.0.3 Client throws Error in compile JavaScript on a form with not much JavaScript. Any ideas as to a potential cause?

Straight to the question and then the background. What would cause a Notes 7.0.3 client to throw a JavaScript error "Error in compile JavaScript"? Followup Question: what's a good tool for tracking JS errors in the Notes Client? My suspcions: - flaky JS written by developer(s) - unusual input by user - memory management issues (Win...

Symbol(s) not found. Collect2: Id returned 1 exit status

I received the following error: Undefined symbols: "_OBJC_CLASS_$_SurveyDelegate", referenced from: objc-class-ref-to-SurveyDelegate in Menus.o ld: symbol(s) not found collect2: ld returned 1 exit status The error was caused by removing SurveyDelegate and was fixed when I removed the code that tried to use a survery delegate. ...

Strange compile error regarding overload resolution

This code fragment: namespace ns { struct last; struct first { typedef last next; }; template <typename T> struct chain { chain<typename T::next> next; }; template <> struct chain<last> { }; } using namespace ns; template <typename T> void f(const T& x) // #1 ...

Beginner template compile error - Having trouble passing function as arg

Hello everyone, Most of my classes have lists as private data members. As such, most of them also have adder/remover public members. I noticed I was writing basically the same thing for each of the adders, so I thought I'd turn it into a template. Here's what I've got: template <class N, class I> void add(N element, std::list<N> & con...