compilation-errors

Deciphering C++ template error messages

I'm really beginning to understand what people mean when they say that C++'s error messages are pretty terrible in regards to templates. I've seen horrendously long errors for things as simple as a function not matching its prototype. Are there any tricks to deciphering these errors? EDIT: I'm using both gcc and MSVC. They both seem...

Compilation fails randomly: "cannot open program database"

During a long compilation with Visual Studio 2005 (version 8.0.50727.762) I sometimes get the following error in several files in some project: fatal error C1033: cannot open program database 'v:\temp\apprtctest\win32\release\vc80.pdb' (The file mentioned is either vc80.pdb or vc80.idb in the project's temp dir.) The next build of the sa...

How to ignore gcc compiler pedantic errors in external library headers?

I recently added -pedantic and -pedantic-errors to my make gcc compile options to help cleanup my cross platform code. All was fine until it finds errors in external included header files. Is there a way to turn off this error checking in external header files IE: Keep checking for files included like this: #include "myheader.h" Stop...

Java-FX compilation error

Im using Java-FX pre-release SDK, and Im getting a compilation error: D:\...\src\javafxapplicationmousetest\Main.fx:38: cannot find symbol symbol : method get$nodesList() location: interface javafxapplicationmousetest.Main$Intf var nodesList:Node[] = [ 1 error BUILD FAILED (total time: 0 seconds) var nodesList:Node[] = [ Rectangl...

Strange ld error

I have a project consisting of two files, main.c and logoff.c. When I try to compile them I get this error: gcc -c -g -Wall main.c gcc -c -g -Wall logoff.c gcc -o main -g -Wall main.o logoff.o ld: duplicate symbol _logoff in logoff.o and main.o I have a function named logoff in logoff.c, but I have searched main.c for the text "logoff...

HierarchicalDataTemplate and TreeView binding compilation error

Hi, I have implemented a UserControl and put a TreeView control on that. The XAML file looks as follows. I am using a HierarchicalDataTemplate for data binding with the Treeview, <UserControl x:Class="Trinity.Windows.Viewer.Alarm.AlarmPage.TrinityDeviceTree" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml...

Compilation error on Zxing

Since I don't own a G1 for development purposes, I am doing my best with the emulator. This said, I am trying to scan a JPEG image or a PNG image in my sdCard, with the ZXing (Zebra Zrossing) library. I tried to change the code in the Android project, so it would scan from an image in the sdCard, instead from the camera, without any luc...

linux kernel module linker warnings: "*** Warning: <function> [<module>] undefined!" - any way to get rid of them?

While compiling Linux kernel modules that depend on each other, linker gives undefined symbol warnings like Building modules, stage 2. MODPOST *** Warning: "function_name1" [module_name] undefined! *** Warning: "function_name2" [module_name] undefined! *** Warning: "function_name3" [module_name] undefined! The unresolved symbols ar...

Error when compiling C program

Hi, I'm trying to complete a project for school involving the use of semaphores. I have included the proper header files ( plus one for pthreads). I have pointed the compiler to the proper libraries as well. This is written in C. Yes, this is an assignment, but please be aware I am not looking for help with implementation, rather I can't...

How can I fix these compilation errors?

for (int z = 0; z < alParmValues.Count; z++) { asd.Add((alParmValues[z].ToString().Split(',')));// asd is list<string> def.Add(alMethSign[z].ToString().Substring(alMethSign[z].ToString().IndexOf('(') + 1, alMethSign[z].ToString().IndexOf(')') - (alMethSign[z].ToString().IndexOf('(') + 1)).Split(','));// def is list<string> } T...

What caused the "Fatal error in ccfe" compilation error in the Solaris C++ compiler?

I got this error message from the C++ compiler: CC: Fatal error in ccfe: Segmentation Fault (core dumped) What could cause it? ...

asp.net mvc page cant find reference

i created a new class called HTMLRenderer and i am calling it from my aspx view code namespace Golf.Content { public static class HtmlRenderer { public static void RenderHtmlPage(HtmlHelper helper_, string path_) { var reader = new StreamReader(path_); var contents = reader.ReadTo...

New string added to .resx file in VS2008 cause compilation error that it doesn't exist

I recently upgraded my projects from VS2005 to VS2008. I use a .resx file to store strings and it worked fine with VS2005. Now, with VS2008, I added a new string to Strings.resx file and used it in my code (C#). But I got a compilation error that my new string doesn't exist in Strings. I asked my colleague to check it on his machine an...

Why is an event firing during compilation of a VB6 app?

I am trying to compile a VB6 application, but it fails with the error, "Run-time error '91': Object variable or With block variable not set". It turns out the Resize event of a user control is firing during compilation and calling code that attempts to access an object that has not been instantiated yet. Why is an event firing during c...

Eclipse compiling problem

Is there a way to set Eclipse report compile errors same as javac? I stumble upon few cases where something is working in eclipse, and cannot be compiled with javac. I understand that eclipse uses ECJ and that cannot be changed, but can it anywhere be set that everything that cannot compile with javac be a compile error in Eclipse? (sin...

Qt Linking Error.

...

[Java6] Same source code, Eclipse build success but Maven (javac) fails

Keep getting this error when compiling using Maven: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object Generics type interference cannot be applied to primitive types. But I thought since Java5, boxing/unboxing mechanism works seamlessly between pr...

Buffered Images in java

static BufferedImage img1[]; for(int i=0;i<60;i++) { img1[i] = new BufferedImage((int) (width), (int) (height), BufferedImage.TYPE_INT_RGB); } It shows an error on the line above this code : Syntax error on token ";", { expected after this token and below this code as: Multiple markers at this line - Method breakpoint:V...

Why is Set marked by the compiler as "not a known variable in this context"?

This is my code; import java.util.*; class State extends HashMap<Character, State>{ boolean isFinal; State () { isFinal = false; } } class Automaton{ private Set<State> allStates; private Set<State> finalStates; private State initialState; private State currentSt...

long long int compilation error in vc++ 6.0

I'm encountering this error while compiling some old VC++ 6.0 source code. error C2632: 'long' followed by 'long' is illegal There's a part of the code that declares a long long int variable which caused the error. Does anybody know how I can fix this error compiling it in VC++ 6.0? I've searched around and I've read that this data ty...