Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Errors with any Teensy project in Visual Studio

  1. #1

    Errors with any Teensy project in Visual Studio

    Hello,

    In transitioning from the Arudino IDE to Visual Studio for Arduino programming (because intellisense), and every program put in the Teensy 3.6 mode results in numerous errors in cmath, WProgram, _intsup, cstdlib, xtgmath and corecrt_terminate. There's about 52 errors in total. I've done this on another computer with no problems, but this install seems to have some major difficulties with the Teensy. If I switch to any other board, like the yśn or uno, I don't get the same errors. Here is a sample of a just-created project:

    Click image for larger version. 

Name:	testscreenshotteensyVS.jpg 
Views:	53 
Size:	117.9 KB 
ID:	13653

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    4,848
    Are you using VisualMicro?

    If so did you follow the Teensy instructions? http://www.visualmicro.com/page/Teen...al-Studio.aspx

    Note: I have not used it a long time, so not sure how well it is working these days, but hopefully following their instructions helps

  3. #3
    I am using Visual Micro. They don't really have instructions (except for the outdated 1.0 version) besides install it and then set it to your board. I did the same thing as on my other device, which worked fine, but this device (with both VS 2015 and VS 2017) gives me errors.

  4. #4
    I just got this setup today. It has mostly worked "out of the box" for me. Sorry, I know that's not all that helpful

    Maybe look in Tools->Visual Micro->Configure Arduino Ide Location(s) and make sure everything looks right and it's pointing to your Arduino install.

    The only issue I'm having with it is it seems to be very bad in handling library locations or I just don't understand how it's working. I have a custom Wire.h in my sketchbook libraries folder that basically makes it load the teensy specific i2c_t3.h library instead. However, visual micro insists on using the built in library. I ended up having to remove the built in one and replacing it with mine because NOTHING would make it use anything else. The Arduino IDE has a priority system and Visual Micro doesn't appear to do that.

  5. #5
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,220
    Quote Originally Posted by BeeperWeepers View Post
    Hello,

    In transitioning from the Arudino IDE to Visual Studio for Arduino programming (because intellisense), and every program put in the Teensy 3.6 mode results in numerous errors in cmath, WProgram, _intsup, cstdlib, xtgmath and corecrt_terminate. There's about 52 errors in total. I've done this on another computer with no problems, but this install seems to have some major difficulties with the Teensy. If I switch to any other board, like the yśn or uno, I don't get the same errors. Here is a sample of a just-created project:
    How did you compile?
    By selecting the Build menu or by the specific VisualMicro Verify/Download button?
    The Build menu option tries to compile you sketch with standard gcc and not the Arduino approach.

    I use VM/VS2017 regularly without problems.

  6. #6
    Compiling works fine, it's just that Intellisense has issues with the program.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •