Closed markwatermanlost closed 4 years ago
What IDE are you using? Arduino IDE, PlatformIO, or other?
Arduino IDE
Nano board (although I’ve tried with Mega and Uno and same error).
Thanks
Mark
From: Asuki Kono notifications@github.com Sent: 04 March 2020 11:27 To: asukiaaa/MPU9250_asukiaaa MPU9250_asukiaaa@noreply.github.com Cc: markwatermanlost mark@watermandesign.co.uk; Author author@noreply.github.com Subject: Re: [asukiaaa/MPU9250_asukiaaa] Error Compilling for any Arduino Board (#17)
What IDE are you using? Arduino IDE, PlatformIO, or other?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/asukiaaa/MPU9250_asukiaaa/issues/17?email_source=notifications&email_token=AOSEM6XTM2ATXYY7MERWX3TRFY3HFA5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXNTDA#issuecomment-594467212 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSEM6R4LCJ45F3ZTJBCCI3RFY3HFANCNFSM4LBDSCZQ . https://github.com/notifications/beacon/AOSEM6URZTXOAAWNS2H5B4TRFY3HFA5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXNTDA.gif
Ahh
Found the issue I think. I had included your library as a file extension to the location not installed it.
i.e. I had: #include “C:\Users\Admin\Desktop\MPU9250_asukiaaa-master\src\MPU9250_asukiaaa.h"
Sorry for disturbing you!
Mark
From: Asuki Kono notifications@github.com Sent: 04 March 2020 11:27 To: asukiaaa/MPU9250_asukiaaa MPU9250_asukiaaa@noreply.github.com Cc: markwatermanlost mark@watermandesign.co.uk; Author author@noreply.github.com Subject: Re: [asukiaaa/MPU9250_asukiaaa] Error Compilling for any Arduino Board (#17)
What IDE are you using? Arduino IDE, PlatformIO, or other?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/asukiaaa/MPU9250_asukiaaa/issues/17?email_source=notifications&email_token=AOSEM6XTM2ATXYY7MERWX3TRFY3HFA5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXNTDA#issuecomment-594467212 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSEM6R4LCJ45F3ZTJBCCI3RFY3HFANCNFSM4LBDSCZQ . https://github.com/notifications/beacon/AOSEM6URZTXOAAWNS2H5B4TRFY3HFA5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXNTDA.gif
I'm glad to know that you overcome the problem.
By the way, you can install this library with using library manager. It can open by selecting [Sketch -> Include library -> Manage libraries].
Thanks
I know about installing libraries but in my quest to find some code to do the following:
I have spent the last 40+ hour downloading various libraries and examples and some seem to have the same name but are not the same. I therefore assumed calling the library in the way described would get rid of this problem.
Does your code help me with my quest??
Many thanks
Mark
From: Asuki Kono notifications@github.com Sent: 04 March 2020 11:37 To: asukiaaa/MPU9250_asukiaaa MPU9250_asukiaaa@noreply.github.com Cc: markwatermanlost mark@watermandesign.co.uk; Author author@noreply.github.com Subject: Re: [asukiaaa/MPU9250_asukiaaa] Error Compilling for any Arduino Board (#17)
I'm glad to know that you overcome the problem.
By the way, you can install this library with using library manager. It can open by selecting [Sketch -> Include library -> Manage libraries].
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/asukiaaa/MPU9250_asukiaaa/issues/17?email_source=notifications&email_token=AOSEM6QOQJJYPJ2NSUFK3L3RFY4M7A5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXOQSI#issuecomment-594470985 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSEM6UIU7EAZDU5E7ZRHEDRFY4M7ANCNFSM4LBDSCZQ . https://github.com/notifications/beacon/AOSEM6TYCZZIFHWTX7RZPCTRFY4M7A5CNFSM4LBDSCZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXOQSI.gif
Hi
Probably a simple thing I'm doing wrong but I get the message above and more error details as follows:
C:\Users\Admin\AppData\Local\Temp\cc5dfG77.ltrans0.ltrans.o: In function `setup':
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:51: undefined reference to `MPU9250_asukiaaa::setWire(TwoWire*)'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:53: undefined reference to `MPU9250_asukiaaa::readId(unsigned char*)'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:61: undefined reference to `MPU9250_asukiaaa::beginMag(unsigned char)'
C:\Users\Admin\AppData\Local\Temp\cc5dfG77.ltrans0.ltrans.o: In function `setMagMinMaxAndSetOffset':
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:89: undefined reference to `MPU9250_asukiaaa::magUpdate()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:91: undefined reference to `MPU9250_asukiaaa::magX()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:93: undefined reference to `MPU9250_asukiaaa::magY()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:95: undefined reference to `MPU9250_asukiaaa::magZ()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:103: undefined reference to `MPU9250_asukiaaa::magUpdate()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:105: undefined reference to `MPU9250_asukiaaa::magX()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:107: undefined reference to `MPU9250_asukiaaa::magY()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:109: undefined reference to `MPU9250_asukiaaa::magZ()'
C:\Users\Admin\AppData\Local\Temp\cc5dfG77.ltrans0.ltrans.o: In function `loop':
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:143: undefined reference to `MPU9250_asukiaaa::magUpdate()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:145: undefined reference to `MPU9250_asukiaaa::magX()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:147: undefined reference to `MPU9250_asukiaaa::magY()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:149: undefined reference to `MPU9250_asukiaaa::magZ()'
C:\Users\Admin\Documents\Arduino\sketch_mar04c/sketch_mar04c.ino:151: undefined reference to `MPU9250_asukiaaa::magHorizDirection()'
collect2.exe: error: ld returned 1 exit status
exit status 1 Error compiling for board Arduino Uno.
Any help much appreciated!!