Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with linking to Teensy core library (Read 2346 times)
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Problem with linking to Teensy core library
Nov 26th, 2019 at 10:03am
Print Post  
I have a project which compiles/links fine under the Arduino IDE (1.8.3) but NOT in VisualMicro
This is the error msg :

Compiling 'PN7150' for 'Teensy 3.2 / 3.1'
 
core.a(pins_teensy.c.o)*: In function attachInterrupt

Error linking for board Teensy 3.2 / 3.1
Build failed for project 'PN7150'
pins_teensy.c:223: undefined reference to getIsrTable
pins_teensy.c:225: undefined reference to getPinIndex
 
core.a(pins_teensy.c.o)*: In function detachInterrupt
pins_teensy.c:254: undefined reference to getIsrTable
pins_teensy.c:256: undefined reference to getPinIndex
 
collect2.exe*: error: ld returned 1 exit status


Here is a link to a forum post on the Teensy forum : 
https://forum.pjrc.com/threads/49963-undefined-reference-to-getIsrTable-when-com...

I am using a Teensy variant of Wire.h library, but other than that I'm not doing special things...
I would love to build and upload from VisualMicro, which always worked in the past..
« Last Edit: Nov 26th, 2019 at 10:56am by Pascal Roobrouck »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Problem with linking to Teensy core library
Reply #1 - Nov 26th, 2019 at 10:45am
Print Post  
Would you be able to attach the verbose log as requested in the yellow box at the top please?

It will allow us to see all the related versions in use of vMicro / Arduino / Teensy, as well as further logging to help us diagnose your issue.
  
Back to top
 
IP Logged
 
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Re: Problem with linking to Teensy core library
Reply #2 - Nov 26th, 2019 at 11:00am
Print Post  
Simon@Visual Micro wrote on Nov 26th, 2019 at 10:45am:
Would you be able to attach the verbose log as requested in the yellow box at the top please?


done.
Attached it to the original post.
Sorry for skipping the support instructions - will do better next time !
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Problem with linking to Teensy core library
Reply #3 - Nov 26th, 2019 at 1:03pm
Print Post  
Thanks for the extra information.

Try running Build > Clean Solution in Visual Studio, then try building again.

If that does not work can you send the output log from the Arduino IDE when it compiles OK, and confirm that Visual Micro is using the same Arduino IDE installation?
« Last Edit: Nov 26th, 2019 at 2:18pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Re: Problem with linking to Teensy core library
Reply #4 - Nov 26th, 2019 at 4:48pm
Print Post  
Clean Solution does not solve it..
Here is the verbose output of the Arduino IDE compiling it.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Problem with linking to Teensy core library
Reply #5 - Nov 26th, 2019 at 5:22pm
Print Post  
Thanks again, try setting the vMicro > Debugger > Compile Optimization to "Default"
  
Back to top
 
IP Logged
 
Pascal Roobrouck
Junior Member
**
Offline


Posts: 19
Joined: Mar 3rd, 2017
Re: Problem with linking to Teensy core library
Reply #6 - Nov 26th, 2019 at 6:41pm
Print Post  
Simon@Visual Micro wrote on Nov 26th, 2019 at 5:22pm:
Thanks again, try setting the vMicro > Debugger > Compile Optimization to "Default"


Ok, that solved it.
A bit strange that Compile optimization affects the linking process, but I'm happy with the solution anyway.

Thanks!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint