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 Mingw32.c Compile Error (Read 8447 times)
TheStallionMang
Junior Member
**
Offline


Posts: 11
Joined: Jul 11th, 2018
Mingw32.c Compile Error
Jul 12th, 2018 at 7:28pm
Print Post  
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! 
« Last Edit: Jul 12th, 2018 at 7:31pm by TheStallionMang »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mingw32.c Compile Error
Reply #1 - Jul 12th, 2018 at 9:54pm
Print Post  
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: 11
Joined: Jul 11th, 2018
Re: Mingw32.c Compile Error
Reply #2 - Jul 13th, 2018 at 1:50pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mingw32.c Compile Error
Reply #3 - Jul 13th, 2018 at 2:47pm
Print Post  
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
Joined: May 15th, 2019
Re: Mingw32.c Compile Error
Reply #4 - May 15th, 2019 at 10:44pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mingw32.c Compile Error
Reply #5 - May 16th, 2019 at 6:26pm
Print Post  
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
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Mingw32.c Compile Error
Reply #6 - Oct 1st, 2022 at 1:07am
Print Post  
Tim@Visual Micro wrote on May 16th, 2019 at 6:26pm:
Admin request: If anyone else posts against this thread please give the information requested at the top of this forum, so we can understand which hardware tool chain you are referring too.

Thanks


Here is a 'before fix' and 'after fix' verbose compile with build info.  The 'fix' was to do a 'clean solution'.

« Last Edit: Feb 1st, 2023 at 8:15pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint