leontti / u8glib

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

Undefined reference. #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi. i tried to compile program but this shows up:

undefined reference to 'u8g_Pin'
undefined reference to 'u8g_dev_sbn1661_122x32'
undefined reference to 'u8g_Init8bit'
undefined reference to 'u8g_FirstPage'
undefined reference to 'u8g_EndPage'
undefined reference to 'u8g_Font_6x10'
undefined reference to 'u8g_SetFont'
undefined reference to 'u8g_DrawStr'

i'm using avr studio
processor: atmega644
display: wg12232a

CODE:

#define F_CPU 8000000UL

#include <avr/io.h>
#include <util/delay.h>
#include "u8g.h"

u8g_t u8g;

int main(void)
{

        //u8g_Init8Bit(u8g, dev, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset)
        u8g_Init8Bit(&u8g, &u8g_dev_sbn1661_122x32, PN(2,0), PN(2,1), PN(2,2), PN(2,3), PN(2,4), PN(2,5), PN(2,6), PN(2,7), PN(3,0), PN(3,1), PN(3,2),  PN(3,3), PN(3,4), PN(3,5));

        while(1)
        {
            u8g_FirstPage(&u8g);
            while( u8g_NextPage(&u8g) );
            {
               // graphic commands to redraw the complete screen should be placed here
               u8g_SetFont(&u8g, u8g_font_6x10);
               u8g_DrawStr(&u8g, 0, 0, "Hello World!");
            }
            _delay_ms(100);
        } 
}

Original issue reported on code.google.com by salko.ma...@gmail.com on 23 Mar 2014 at 2:50

GoogleCodeExporter commented 9 years ago
oh. my mistake i did not linked all files with project. that's what i have for 
jumping in conclusions :P
would you delete this issue, please? :l

Original comment by salko.ma...@gmail.com on 23 Mar 2014 at 3:02

GoogleCodeExporter commented 9 years ago
i like these kind of issues, which resolve without me ;-)

Original comment by olikr...@gmail.com on 23 Mar 2014 at 3:09