Return to main page

C++ Errors

  • cout was not declared in this scope
  • hello was not declared in this scope
  • std::string Movie::name is private
  • character constant too long for its type
  • conversion from Movie* to non-scalar type Movie requested
  • deprecated conversion from string constant to char*
  • expected , or ; before return
  • expected ; before int
  • expected ) before name
  • expected initializer before < token
  • expected primary-expression before int
  • incompatible types in assignment of int to Movie* [3]
  • invalid conversion from const char* to char
  • multiple definition of Movie::Movie
  • no match for operator>> in std::cout >> "hello world"
  • no match for call to (std::ostream {aka std::basic_ostream<char>}) (const char [12])
  • No such file or directory
  • request for member getName in Pixar[i], which is of non-class type Movie*
  • undefined reference to foo()
  • no match for call to (std::ostream {aka std::basic_ostream<char>}) (const char [12])
  • warning: MonstersInc may be used uninitialized in this function
  • #include nested too deeply
  • storage size of 'a' isn't known
  • size of array 'a' has non-integral type 'double'
  • uninitialized const 'foo'
  • extra tokens at end of #include directive
  • converting to non-pointer type 'int' from NULL
  • invalid conversion from 'int' to 'int*'
  • comparison with string literal results in unspecified behaviour
  • invalid type argument of unary '*' (have 'int')
  • missing terminating " character
  • redeclaration of 'int x'
  • request for member 'getYear' in '*(const char*)"The Incredibles"', which is of non-class type 'const char'
  • aggregate 'student bar' has incomplete type and cannot be defined
  • invalid types 'int[int]' for array subscript
  • switch quantity not an integer
  • unknown escape sequence: '\T'
  • unterminated comment
  • return-statement with a value, in function returning 'void'
  • invalid operands of types 'double' and 'int [5]' to binary 'operator+'
  • Can't find what you're looking for? Send us your error!

    Helpful links

  • Common compiler and linker errors