el_supremo
Well-known member
Using Teensy3 with beta10 on Windows.
I'm trying to test the code mentioned in this Arduino DUE forum:
http://arduino.cc/forum/index.php/topic,140107.0.html
The only way I have found to get the library to link in with the test code is to essentially do a compile from the command line - although I use a TCL script to make life easier.
The main problem is being able to insert "-larm_cortexM4l_math" immediately before "-lm" in the gcc command which links everything together. The boards.txt file has a way to insert link options but it only inserts them near the front of the command and the link fails with unresolved references if I do that.
I tried modifying compiler.java to allow me to insert the -l command where I want it but when I restart the IDE it doesn't have any effect.
My generic question is how can I insert a -l option near the end of the gcc command and more specifically, how do I get the IDE to use a modified compiler.java?
Pete
[edit] fixed a typo/idiocy
I'm trying to test the code mentioned in this Arduino DUE forum:
http://arduino.cc/forum/index.php/topic,140107.0.html
The only way I have found to get the library to link in with the test code is to essentially do a compile from the command line - although I use a TCL script to make life easier.
The main problem is being able to insert "-larm_cortexM4l_math" immediately before "-lm" in the gcc command which links everything together. The boards.txt file has a way to insert link options but it only inserts them near the front of the command and the link fails with unresolved references if I do that.
I tried modifying compiler.java to allow me to insert the -l command where I want it but when I restart the IDE it doesn't have any effect.
My generic question is how can I insert a -l option near the end of the gcc command and more specifically, how do I get the IDE to use a modified compiler.java?
Pete
[edit] fixed a typo/idiocy
Last edited: