AVR Stick build probs w/ AVR Studio

Hi,

I have just started experimenting with the avr stick but I’m running into a simple problem trying to get it to build in avr studio. I can build the hex file if I just run make, but I’d like to get it working with avr studio so I can use the debugger.

I’m getting lots of similar errors to this:

main.c:239: undefined reference to `usbMsgPtr’

It seems like it isn’t including usbdrv.h, but it is compiling it.

I’m sure this is some simple tool config issue.

Any ideas?

Thanks!