Studio AVR-GCC library support

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

Does the ability to add libraries to the make process work?
I have added a directory to the "library" page of the Project Options, and I get my library (uartlib.a) showing up in the left column. I can select it and add it to the "Link with these Objects", but looking at the makefile, the -l option is never expanded. Should it not be "-l uartlib.a". Of course if fails compilation with a file not found error.

I created the library file using "avr-ar rc uartlib.a uart.o", and "avr-ranlib uartlib.a"

What am I doing wrong?

Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't know what the problem is but an easy answer would be to tick "use external makefile" and then use your own Mfile generated Makefile in which you can easily modify the LDFLAGS+=

Cliff