Open MCUdude opened 7 years ago
looks like a atmel studio issue. -lu8g.h is for sure wrong. Maybe -lu8g works I once had created a tutorial for this, but since shutdown of googlecode this is broken and i never found time to fix this. also the pics are there somewhere but not linked correctly https://github.com/olikraus/m2tklib/wiki/as6
-lu8g.h is for sure wrong. Maybe -lu8g works
where (in Atmel Studio) can I change this?
i never used atmel studio 7, but i guess there is a dialog box on linker settings and options. somewhere there.
However: -lu8g means, that atmel studio has to create a u8g-library (-lu8g just means to include u8g library). The extension usually is u8g.lib or u8g.a (not sure about this). So u8g.lib or u8g.a has to be constructed somehow. As long as this lib does not exist, still -lu8g will fail with a linker error.
As an alternative, you can just add all the source files from u8g to your project without a library. Then you just remove the -lug8.h
I am also facing the same issue with the linker. Can you please help me how to fix this?
@olikraus
this does not look like an u8g problem.
Hi! I've been using the u8glib library for my Arduino projects for a long time, and it's allways been easy to set up. I'm slowly migrating to Atmel Studio 7 instead, and wanted to create a project where I'm using u8glib. I've loaded up the "HelloWorld" example, and added u8glib to the Solution explorer, so that Atmel studio is able to find the library. I've also added the correct #include path.
Here's the error message
What is this, and how can it be solved? Your guide for Atmel Studio 6 (on google code) contains just a whole bunch of dead pictures, and should be hosted on Github instead.
here's the code (main.c)