Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to initUSART #8

Closed
djsherrill opened this issue Jan 14, 2015 · 3 comments
Closed

Undefined reference to initUSART #8

djsherrill opened this issue Jan 14, 2015 · 3 comments

Comments

@djsherrill
Copy link

Hi, I'm using AVR studio and when I compile the SerialLoopback code I get an error "undefined reference to 'initUSART. I copied over the USART.h file to my working directory and I'm not receiving any errors for that file.
Thanks,
Derek

@hexagon5un
Copy link
Owner

Sorry for the late reply.

Studio does strange things. Are you using the Studio makefile or mine? If Studio's, then it won't know where to find the additional headers and code that lives in AVR-Programming-Library/

As you noticed, the easiest way to fix everything with Studio is just to copy the contents of the AVR-Programming-Library/ folder into each and every project's folder.

There must also be a way to add additional code/library folders to the project, but I haven't used Studio extensively in like 10 years.

Hope you've gotten it working in the meantime. Let me know?

@hexagon5un
Copy link
Owner

Closing for inactivity.

Hope all worked out. :)

@naveengautam002
Copy link

hi, i am using avr studio 7 to compile the serialloop.c , and got these error and i copied all the USART.h and USART.c file in project folder.

Error undefined reference to initUSART' Error undefined reference to printString'
Error undefined reference to receiveByte' Error undefined reference to transmitByte'
Error ld returned 1 exit status

Please help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants