Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (60 sloc) 10.8 KB

(C++) Compile error

xkcd #371: compiler complaint

Error emitted by the compiler, that prevents program execution. A compile warning starts program execution anyway.

  1. OKAYQt CreatorWindows  ::swprintf has not been declared
  2. OKAYC++ BuilderWindows  _algo.c: Call to undefined function 'rand'
  3. OKAYC++ BuilderWindows  _algo.c: Cannot modify a const object
  4. OKAYC++ BuilderWindows  _algobase.h: Cannot convert 'const int' to 'MyClass *'
  5. ?OKAYCommand lineWindows  _popen is not a member of std
  6. TODOQt CreatorWindows  'assert' was not declared in this scope
  7. OKAYQtQt CreatorLubuntuWindows base class 'struct QtPrivate::AlignOf_WorkaroundForI386Abi<double>' has a non-virtual destructor
  8. ?FAILCommand lineUbuntu  boost/filesystem.hpp: No such file or directory
  9. FAILC++ BuilderWindows  borland.hpp: Only member functions may be 'const' or 'volatile'
  10. FAILC++ BuilderWindows  bzconfig.h: Unknown compiler
  11. OKAYWtQt CreatorUbuntu cc1plus: internal compiler error: Segmentation fault
  12. ?OKAYCommand lineWindows  CLK_TCK was not declared in this scope
  13. OKAYQt CreatorUbuntuNDS 'consoleInitDefault' was not declared in this scope
  14. FAILQt CreatorUbuntu  'Container::value_type' is not a type
  15. OKAYC++ BuilderWindows  'cout' is not a member of 'std'
  16. OKAYCommand lineWindows  duplicate symbol
  17. FAILC++ BuilderWindows  enable_if_does_not_work_on_this_compiler<void>
  18. OKAYC++ BuilderWindows  'endl' is not a member of 'std'
  19. FAILC++ BuilderWindows  iterator.hpp: Invalid template argument list
  20. OKAYQt CreatorUbuntu  jconfig.h: No such file or directory
  21. ?OKAYQt CreatorUbuntu  jpeglib.h: No such file or directory
  22. ?FAILQt CreatorUbuntu  'jpeg_read_image' was not declared in this scope
  23. OKAYC++ BuilderWindows  Multithreaded RTL must be selected
  24. OKAYC++ BuilderWindows  'MyPolicy::MyMethod' is not a direct base class of 'MyClass<MyPolicy>'
  25. OKAYQt CreatorUbuntu  No matching function for call to 'ptr_fun'
  26. OKAYC++ BuilderWindows  Only member functions may be 'const' or 'volatile'
  27. OKAYQt CreatorUbuntu  openssl/conf.h: No such file or directory
  28. OKAYC++ BuilderWindows  'operator+' not implemented in type 'std::map<int,double>' for arguments of type 'int'
  29. ?FAILQt CreatorUbuntu  QCanvas: No such file or directory
  30. OKAYQt CreatorUbuntu  Request for member 'mX' in 'w', which is of non-class type 'Widget()'
  31. ?OKAYC++ BuilderWindows  shared_ptr.hpp: Call to undefined function 'assert'
  32. OKAYC++ BuilderWindows  shared_ptr.hpp: Cannot convert 'Y *' to 'Widget *'
  33. OKAYC++ BuilderWindows  Size of @_STL@%vector%78_STL@... is unknown or zero
  34. ?FAILCommand lineUbuntu  stdio.h:430: error: expected initializer before 'throw'
  35. OKAYQt CreatorUbuntuNDS 'SUB_BG0_CR' was not declared in this scope
  36. OKAYC++ BuilderWindows  tuple_basic.hpp: Multiple declaration for 'element<N,T>'
  37. ?OKAYQt CreatorUbuntu  Undefined reference to '[anything]'
  38. OKAYQt CreatorCygwinWindows UnicodeQt4.h:197: error: call of overloaded 'toLower(UChar32&)' is ambiguous
  39. FAILC++ BuilderWindows  utilities.hpp: Invalid template argument list
  40. FAILC++ BuilderWindows  Your compiler and/or configuration is unsupported by this verions of uBLAS
  41. ?FAILCommand lineUbuntu  wchar.h:718: error: expected initializer before 'throw'

 

Qt Creator How to let compile warnings be treated like compile errors in Qt Creator?

In the project file, add the following line:

QMAKE_CXXFLAGS += -Werror

Advice

References

You can’t perform that action at this time.