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].

17836 questions
1096
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…
800
votes
58 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
  • 163,579
  • 332
  • 834
  • 1,328
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
  • 327,682
  • 71
  • 882
  • 954
447
votes
16 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
  • 632,615
  • 86
  • 730
  • 1,096
403
votes
11 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…
Autodidact
  • 25,926
  • 15
  • 63
  • 81
391
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,714
  • 8
  • 35
  • 58
323
votes
12 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,263
  • 3
  • 14
  • 3
278
votes
11 answers

Python: No acceptable C compiler found in $PATH when installing python

I'm trying to install 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
  • 3,381
  • 2
  • 15
  • 22
264
votes
43 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, Culture=neutral, …
ronag
  • 43,567
  • 23
  • 113
  • 204
242
votes
35 answers

Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

I have imported framework for sending email from application in background i.e. SKPSMTPMessage Framework. Can somebody suggest why below error is shown Undefined symbols for architecture i386: "_OBJC_CLASS_$_SKPSMTPMessage", referenced from: …
Mann
  • 5,367
  • 6
  • 42
  • 54
235
votes
10 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
  • 56,187
  • 79
  • 269
  • 433
229
votes
10 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
  • 13,081
  • 22
  • 75
  • 121
228
votes
14 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
  • 7,966
  • 10
  • 44
  • 56
222
votes
3 answers

MySQL Update Inner Join tables query

I have no idea what the problem is. Using MySQL 5.0 I get a compile error when attempting to run the following MySQL update query: UPDATE b SET b.mapx = g.latitude, b.mapy = g.longitude FROM business AS b INNER JOIN business_geocode g ON…
Vibration Of Life
  • 2,907
  • 3
  • 19
  • 23
211
votes
27 answers

Could not load file or assembly ... The parameter is incorrect

Recently I met the following exception at C# solution: Error 2 Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' or one of its dependencies. The parameter is incorrect.…
Liker777
  • 2,067
  • 2
  • 15
  • 18
1
2 3
99 100