{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2468","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2468/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2468/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2468/events","html_url":"https://github.com/arduino/Arduino/issues/2468","id":49921684,"number":2468,"title":"OT - is this normal? Compiler error printout starts at #error directive ","user":{"login":"VaclavSal","id":6053260,"avatar_url":"https://avatars.githubusercontent.com/u/6053260?v=3","gravatar_id":"","url":"https://api.github.com/users/VaclavSal","html_url":"https://github.com/VaclavSal","followers_url":"https://api.github.com/users/VaclavSal/followers","following_url":"https://api.github.com/users/VaclavSal/following{/other_user}","gists_url":"https://api.github.com/users/VaclavSal/gists{/gist_id}","starred_url":"https://api.github.com/users/VaclavSal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VaclavSal/subscriptions","organizations_url":"https://api.github.com/users/VaclavSal/orgs","repos_url":"https://api.github.com/users/VaclavSal/repos","events_url":"https://api.github.com/users/VaclavSal/events{/privacy}","received_events_url":"https://api.github.com/users/VaclavSal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-24T18:00:23Z","updated_at":"2015-05-28T15:22:49Z","closed_at":"2015-05-28T15:22:49Z","body":"I am posting this here because it may have something to do with #error not stopping compiler as reported earlier ( 1.5.8 Nov 4 release ) .\r\n\r\nMy ino file includes A_Main.h header and that includes other headers - it WORKS the way I want it, no issue there.\r\nI have a bug somewhere and I have put #error STOP and the entry of the A_Main.\r\nIt gets displayed as a FIRST entry in the output and than followed by  #pragma messages\r\nand finally by a real error which stops the compiler.\r\n\r\nI would expect the #pragma messages FIRST - they all come from headers included BEFORE the A_Main header and that as last the #error STOP. No so. Sure makes debugging a challenge since the printout is not in expected sequence / order. \r\nOr am I all wet and it is in correct printout  sequence?  \r\n\r\n\r\nBuild options changed, rebuilding all\r\nUsing library USB_LIBRARY in folder: C:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY (legacy)\r\nUsing library Wire in folder: C:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\libraries\\Wire \r\nUsing library LiquidCrystal in folder: C:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\LiquidCrystal (legacy)\r\nUsing library USBHost in folder: C:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\libraries\\USBHost \r\n\r\nC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER=\"Unknown\" -DUSB_PRODUCT=\"Arduino Due\" -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\system/libsam -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\system/CMSIS/CMSIS/Include/ -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\system/CMSIS/Device/ATMEL/ -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\cores\\arduino -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\variants\\arduino_due_x -IC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\hardware\\arduino\\sam\\libraries\\Wire -IC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\LiquidCrystal -IC:\\Program Files\\Arduino_All\\arduino-nightly_Nov4\\libraries\\USBHost\\src C:\\DOCUME~1\\Vaclav\\LOCALS~1\\Temp\\build3012088613117182121.tmp\\a_Project_24.cpp -o C:\\DOCUME~1\\Vaclav\\LOCALS~1\\Temp\\build3012088613117182121.tmp\\a_Project_24.cpp.o \r\nIn file included from a_Project_24.ino:243:0:\r\nC:\\DOCUME~1\\Vaclav\\LOCALS~1\\Temp\\build3012088613117182121.tmp\\A_MAin.h:5:2: error: #error STOP\r\n #error STOP \r\n  ^\r\nIn file included from a_Project_24.ino:64:0:\r\nC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/board.h:52:47: note: #pragma message: Standard board header file.\r\n #pragma message (\"Standard board header file.\")\r\n                                               ^\r\nC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/board.h:53:76: note: #pragma message: #define BOARD ARDUINO_DUE_X  definition here in board.h \r\n #pragma message (\"#define BOARD ARDUINO_DUE_X  definition here in board.h \") \r\n                                                                            ^\r\nIn file included from C:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/board.h:68:0,\r\n                 from a_Project_24.ino:64:\r\nC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/compiler.h:49:74: note: #pragma message: Commonly used includes, types and macros.   compiler.h\r\n #pragma message (\"Commonly used includes, types and macros.   compiler.h\")\r\n                                                                          ^\r\nIn file included from C:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/compiler.h:230:0,\r\n                 from C:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/board.h:68,\r\n                 from a_Project_24.ino:64:\r\nC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/interrupt.h:50:39: note: #pragma message: Interrups disabled \r\n #pragma message (\"Interrups disabled \") \r\n                                       ^\r\nIn file included from a_Project_24.ino:64:0:\r\nC:\\Documents and Settings\\Vaclav\\My Documents\\Arduino\\libraries\\USB_LIBRARY/board.h:237:51: note: #pragma message: Arduino board defined as board \r\n #pragma message (\"Arduino board defined as board \") \r\n                                                   ^\r\nIn file included from a_Project_24.ino:243:0:\r\nC:\\DOCUME~1\\Vaclav\\LOCALS~1\\Temp\\build3012088613117182121.tmp\\A_MAin.h: In function 'boolean TRACE_Test()':\r\nC:\\DOCUME~1\\Vaclav\\LOCALS~1\\Temp\\build3012088613117182121.tmp\\A_MAin.h:85:3: error: 'lcm1602' was not declared in this scope\r\n   lcm1602.init();\r\n   ^\r\nError compiling.\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/106404292","html_url":"https://github.com/arduino/Arduino/issues/2468#issuecomment-106404292","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/2468","id":106404292,"user":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T15:22:49Z","updated_at":"2015-05-28T15:22:49Z","body":"Closing as gcc related, not IDE"}}