Atmel Studio 6.2 undefined reference header file

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i had made a c project which works fine.
but i want to add some classes
so, i had create a CPP project and i paste my code here.

but i take some errors about my lcd.h file.
the error is:

undefined reference to "lcd_function"

i have 10 lcd functions and i take 10 errors

if i add the header file by solution project (right click -> add library -> browse header file)
i take 2 errors:

1. cannot fine -llcd.h
2. id returned 1 exit status
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much