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 Automatically generated code doesn't compile on linux (Read 3528 times)
Arik
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2017
Automatically generated code doesn't compile on linux
May 13th, 2017 at 6:17pm
Print Post  
Hi everybody,

If I add some new files to the project by using one of the vMicro options (i.e. Add new Arduino class and header) it generates code with the following snippet

Code (C++)
Select All
#if defined(ARDUINO) && ARDUINO >= 100
	#include "arduino.h"
#else
	#include "WProgram.h"
#endif
 



This works on Windows but fails if somebody builds this code on unix, due to file name case sensitivity. The proper name of the file is "Arduino.h" with a capital A.

Is this the right place to submit a bug?

Regards,
Arik.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automatically generated code doesn't compile on linux
Reply #1 - May 13th, 2017 at 6:56pm
Print Post  
Thanks for the post.

There is an update here that hopefully fixes the issue.

https://1drv.ms/u/s!AsT00oFsGAmRj8RXjwppn10kZdBOzQ

Interested to hear of you bump into anything else for linux.

Thanks
  
Back to top
WWW  
IP Logged
 
Arik
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2017
Re: Automatically generated code doesn't compile on linux
Reply #2 - May 13th, 2017 at 7:33pm
Print Post  
Thanks a lot, will check it out.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automatically generated code doesn't compile on linux
Reply #3 - May 13th, 2017 at 7:37pm
Print Post  
Forgot to say that the update is for visual studio. Are you using visual studio or atmel studio?
  
Back to top
WWW  
IP Logged
 
Arik
Newbies
*
Offline


Posts: 4
Joined: May 13th, 2017
Re: Automatically generated code doesn't compile on linux
Reply #4 - May 14th, 2017 at 5:48am
Print Post  
Hi,

Yes, VS indeed. Was not even aware of Atmel Studio.
Fix is working. Thanks for the quick response. Will send issues if I find any.

Arik.
« Last Edit: May 14th, 2017 at 5:49am by Arik »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Automatically generated code doesn't compile on linux
Reply #5 - May 14th, 2017 at 11:50am
Print Post  
Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint