Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Mingw32.c Compile Error (Read 455 times)
TheStallionMang
Junior Member
**
Offline



Posts: 8
Mingw32.c Compile Error
Jul 12th, 2018 at 8:28pm
 
Hi everyone...

I get a lot out of forums so I just wanted to contribute something I ran into and fixed. 

I suddenly got a compile error from Visual Studios 2017 when compiling a solution for a Teensy 3.6 with Visual Micro. 

It was complaining about a line of code in "mingw32.c".  I assume that's one of the files I don't touch in the Program Files (x86) Arduino directory... Or somethings else... Definitely isn't something I had touched though.  

I went to the build menu and selected "clean solution" and the problem went away.  In fact... that has fixed a few perplexing problems.

Hope that helps at least one person! 
Back to top
« Last Edit: Jul 12th, 2018 at 8:31pm by TheStallionMang »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9816
United Kingdom
Re: Mingw32.c Compile Error
Reply #1 - Jul 12th, 2018 at 10:54pm
 
Thanks very much for the post!

Out of interest, have you recently updated your teensy core?
Back to top
 
WWW  
IP Logged
 
TheStallionMang
Junior Member
**
Offline



Posts: 8
Re: Mingw32.c Compile Error
Reply #2 - Jul 13th, 2018 at 2:50pm
 
The day before I updated to Visual Studios 2017, then installed arduino 1.8.5, and reinstalled teensyduino. 

I had done several compiles after I completed all of those updates.  The compile error seemed to come out of the blue... I went to lunch, came back, went to compile a few minor changes to my code, and I started getting:

Quote:
host-mingw32.c*:190: Attempt to access invalid address
 

Huh

Cleaned the solution, and everything was fine.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9816
United Kingdom
Re: Mingw32.c Compile Error
Reply #3 - Jul 13th, 2018 at 3:47pm
 
Maybe renaming or re-structuring your project could cause some confusion in the build folder but not heard of this before.

Let's see if it happens again.

Thanks
Back to top
 
WWW  
IP Logged
 
DIYGeezer
Newbies
*
Offline



Posts: 1
Re: Mingw32.c Compile Error
Reply #4 - May 15th, 2019 at 11:44pm
 
Thank you TheStallionMang!  I also encountered the same compile error and spent much time trying to figure which code change I did that caused the problem.  Your solution fixed me right up!  Thank you! Smiley
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9816
United Kingdom
Re: Mingw32.c Compile Error
Reply #5 - May 16th, 2019 at 7:26pm
 
Admin request: If anyone else posts against this thread please give the info request at the top of this forum so we can understand which hardware tool chain you are referring too.

Thanks
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print