2

How can I track back what caused compiler error in the first place ? I mean which part of my code invoked that error ?

For example, I'm using VS2017 with default compiler and i get following compile error:

C2070   'unsigned char []': illegal sizeof operand | type_traits    1227

Which points to standard library header type_traits, but that's pointless because i have no idea which part of my code cause it so how can i track it back to the original point in my code ?

Right now I see just one option and thats systematicaly commenting parts of my code until I dont get that error. There has to be something to track it.

Kazz
  • 1,030
  • 8
  • 16

1 Answers1

6

You're looking at the "Error" window which (confusingly) only shows summaries. But double clicking that line should take you directly to the line with the problem.

Alternatively, View->Other Windows ->Output. There's a LOT more to the error message, and this shows everything in all its incredible detail.

Mooing Duck
  • 64,318
  • 19
  • 100
  • 158