If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Linker problem with Teensy makefile

Hello everybody,

I'm trying to build a project that is based on a Teensy 3.6 from a makefile but I have problems with the linker. It used to work but then I added the MPU9250 Arduino library to the project and the issues begun.
I basically have an obj of my project depending on MPU9250 lib, which depends on the Wire and SPI library. The problem is that I can't get the MPU lib linked to the Wire lib (at least that's the point where it fails, so don't know about SPI).
I read that in recent g++ versions the libraries should be given to the linker in order of dependece and I did that but it didn't solve the issue, so I guess it has to be something else but I can't find it.