meesokim / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

error: section attribute not allowed #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Atmel Studio and Visual Micro. Originally one project to test the code and 
compiled and ran perfectly. Project was split into two projects (one solution) 
to enable radio comms between the two parts - console and remote. The code is 
largely unchanged, and the graphics code in the console project is completely 
unchanged. Compiling the console project now throws an error which I cannot 
resolve. Do you have any ideas?

Compiling 'LevConsole' for 'Arduino Nano w/ ATmega328'
Build folder: 
file:///C:/Users/jfitter/AppData/Local/VMicro/Arduino/Builds/LevConsole/nano_atm
ega328
U8glib.h:In file included from
LevConsole.ino:from
u8g.h:106: error: section attribute not allowed for 'u8g_pgm_uint8_t'
Error compiling

Original issue reported on code.google.com by john.fit...@gmail.com on 3 Apr 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Did you set the controller correctly?

Original comment by olikr...@gmail.com on 3 Apr 2014 at 6:27

GoogleCodeExporter commented 9 years ago
No changes from the code that worked.

U8GLIB_PCD8544 lcd(LCDCSPIN, LCDA0PIN, LCDRSTPIN);

Tried compiling from the Arduino IDE but got the same error. This was to 
eliminate anything that may have been added by Atmel Studio or Visual Micro, so 
this error is thrown by the Arduino compiler. I do not understand what it is 
that has changed, without warning.

Original comment by john.fit...@gmail.com on 3 Apr 2014 at 11:55

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, problem more-or-less fixed.

This works:
#include <U8glib.h>
#include <RF24.h>
#include <nRF24L01.h>

This does not work:
#include <RF24.h>
#include <nRF24L01.h>
#include <U8glib.h>

Both u8glib and RF24 play around with progmem definitions. I am not sure which 
one is losing the plot and I haven't the time to figure it out.

Original comment by john.fit...@gmail.com on 4 Apr 2014 at 1:45

GoogleCodeExporter commented 9 years ago
same here, post above fixes

Original comment by hthr...@gmail.com on 23 May 2014 at 8:31

GoogleCodeExporter commented 9 years ago
not sure how to continue with this information.... closing....

Original comment by olikr...@gmail.com on 16 Jun 2014 at 7:15