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 can't build with 1509.08 release (Read 3634 times)
junochoi
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2015
can't build with 1509.08 release
Sep 9th, 2015 at 5:09am
Print Post  
Hi

I have used Arduino 1.6.5 + Visual Studio 2015 + Visual Micro 1508.31 Sp1 for Arduino DUE(board manager version is 1.6.4) until yesterday. There was no build problem with 1508.31 version.

But I can't build with new Visual Micro 1509.08 release. Build output message is:
Code
Select All
...
USBCore.h:in definition of macro 'D_OTHERCONFIG'
USBCore.h:291:92: warning: narrowing conversion of 'interfaces' from 'int' to 'uint8_t {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing]
USBCore.cpp:in expansion of macro 'D_OTHERCONFIG'
syscalls_sam3.c.o:In function `_kill'
syscalls_sam3.c.o:In function `_write'
syscalls_sam3.c.o:In function `_close'
syscalls_sam3.c.o:In function `_fstat'
syscalls_sam3.c.o:In function `_isatty'
syscalls_sam3.c.o:In function `_lseek'
syscalls_sam3.c.o:In function `_read'
syscalls_sam3.c.o:In function `_write'
syscalls_sam3.c.o:In function `_exit'
syscalls_sam3.c.o:In function `_kill'
syscalls_sam3.c.o:In function `_getpid'
main.cpp.o:In function `main'
main.cpp:54: warning: undefined reference to `setup'
main.cpp:58: warning: undefined reference to `loop'
collect2.exe*:error: ld returned 1 exit status
Error creating .elf
...
 


My main *.ino don't has setup() and loop(), another *.cpp file has setup() and loop() functions. Meanwhile, there was no problem in this way. Are the other coding rules made?

It is built fine with basic test *.ino with setup() and loop() functions.

Or how can I get older 1508.31 version plugin installer?

Best regards
« Last Edit: Sep 9th, 2015 at 5:24am by junochoi »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12167
Location: United Kingdom
Joined: Apr 10th, 2010
Re: can't build with 1509.08 release
Reply #1 - Sep 9th, 2015 at 11:07am
Print Post  
Hi

I think it will work if you switch off "Tools>Options>Visual Micro>Compatibility>Compile Files in Project"

I suspect the new system that allows sketch code in sub folders needs a tweak because you have used "Project>Show Arduino Core and Library Sources" to include the underlying arduino codes into the project. I forgot to test that!!

I think changing the option above to False will fix this issue and there will be an update later today or tomorrow.

For future reference you can always step back a version by looking at the url of the download button on the gallery page. The current version is 25, previous would be 24.

msdn.microsoft.com/069a905d-387d-4415-bc37-665a5ac9caba/file/173008/25/Visual.Micro.Arduino.Studio.vsix

« Last Edit: Sep 9th, 2015 at 11:09am by Tim@Visual Micro »  
Back to top
IP Logged
 
junochoi
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2015
Re: can't build with 1509.08 release
Reply #2 - Sep 9th, 2015 at 10:54pm
Print Post  
Thanks for the quick response.

I changed "Compile Files in Project" to False, and build is OK.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12167
Location: United Kingdom
Joined: Apr 10th, 2010
Re: can't build with 1509.08 release
Reply #3 - Sep 9th, 2015 at 10:56pm
Print Post  
Thanks for the update.

A new build was posted earlier which should fix the issue. So if you decide to make use of code in project sub folders you should be able to switch the option back on.

If you get a chance to try it that would be useful but no worries if not.
« Last Edit: Sep 9th, 2015 at 10:56pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint