Questions tagged [compiler-errors]

An error that is generated during the compilation phase, often due to problems with invalid syntax and/or types. Compare to [runtime-error].

20222 questions
1128
votes
108 answers

R cannot be resolved - Android error

I just downloaded and installed the new Android SDK. I wanted to create a simple application to test drive it. The wizard created this code: package eu.mauriziopz.gps; import android.app.Activity; import android.os.Bundle; public class ggps…
894
votes
61 answers

The located assembly's manifest definition does not match the assembly reference

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error: System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral,…
leora
  • 188,729
  • 360
  • 878
  • 1,366
535
votes
18 answers

What does a "Cannot find symbol" or "Cannot resolve symbol" error mean?

Please explain the following about "Cannot find symbol", "Cannot resolve symbol" or "Symbol not found" errors (in Java): What do they mean? What things can cause them? How does the programmer go about fixing them? This question is designed to seed…
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
473
votes
12 answers

Resolve build errors due to circular dependency amongst classes

I often find myself in a situation where I am facing multiple compilation/linker errors in a C++ project due to some bad design decisions (made by someone else :) ) which lead to circular dependencies between C++ classes in different header files…
Sandeep Datta
  • 28,607
  • 15
  • 70
  • 90
467
votes
31 answers

Why is this program erroneously rejected by three C++ compilers?

I am having some difficulty compiling a C++ program that I've written. This program is very simple and, to the best of my knowledge, conforms to all the rules set forth in the C++ Standard. I've read over the entirety of ISO/IEC 14882:2003 twice to…
James McNellis
  • 348,265
  • 75
  • 913
  • 977
404
votes
8 answers

Assign a variable inside a Block to a variable outside a Block

I'm getting an error Variable is not assignable (missing __block type specifier) on the line aPerson = participant;. How can I make sure the block can access the aPerson variable and the aPerson variable can be returned? Person *aPerson =…
tommi
  • 6,883
  • 8
  • 37
  • 60
375
votes
14 answers

No acceptable C compiler found in $PATH when installing python

I'm trying to install a new Python environment on my shared hosting. I follow the steps written in this post: mkdir ~/src wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz tar -zxvf Python-2.7.1.tar.gz cd Python-2.7.1 mkdir…
mik.ro
  • 4,381
  • 2
  • 18
  • 23
361
votes
15 answers

Non-static variable cannot be referenced from a static context

I've written this test code: class MyProgram { int count = 0; public static void main(String[] args) { System.out.println(count); } } But it gives the following error: Main.java:6: error: non-static variable count cannot be…
Greg
  • 3,643
  • 3
  • 16
  • 3
325
votes
45 answers

Could not load file or assembly or one of its dependencies

I'm having another of these "Could not load file or assembly or one of its dependencies" problems. Additional information: Could not load file or assembly 'Microsoft.Practices.Unity, Version=1.2.0.0,…
ronag
  • 49,529
  • 25
  • 126
  • 221
286
votes
22 answers

Python3: ImportError: No module named '_ctypes' when using Value from module multiprocessing

I am using Ubuntu and have installed Python 2.7.5 and 3.4.0. In Python 2.7.5 I am able to successfully assign a variable x = Value('i', 2), but not in 3.4.0. I am getting: Traceback (most recent call last): File "", line 1, in
279
votes
31 answers

Duplicate AssemblyVersion Attribute

I have a project that generates following error on compilation: error CS0579: Duplicate 'AssemblyVersion' attribute I have checked the file AssemblyInfo.cs and it looks like there is no duplication there. I found this article on MSDN which…
Aamir
  • 14,882
  • 6
  • 45
  • 69
276
votes
11 answers

Extension methods must be defined in a non-generic static class

I'm getting the error: Extension methods must be defined in a non-generic static class On the line: public class LinqHelper Here is the helper class, based on Mark Gavells code. I'm really confused as to what this error means as I am sure it was…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
268
votes
16 answers

libpthread.so.0: error adding symbols: DSO missing from command line

When I'm compiling openvswitch-1.5.0, I've encountered the following compile error: gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter…
jaeyong
  • 8,951
  • 14
  • 50
  • 63
252
votes
12 answers

Error in Swift class: Property not initialized at super.init call

I have two classes, Shape and Square class Shape { var numberOfSides = 0 var name: String init(name:String) { self.name = name } func simpleDescription() -> String { return "A shape with \(numberOfSides) sides." …
JuJoDi
  • 14,627
  • 23
  • 80
  • 126
250
votes
49 answers

Error: Could not find or load main class in intelliJ IDE

I'm a beginner in Java and am trying to run my code using IntelliJ that I just installed as my IDE with JDK 1.7. The following piece of code keeps does not even compile and keeps giving me the error: Error: Could not find or load main class…
Confused Mailman
  • 2,609
  • 2
  • 14
  • 4
1
2 3
99 100