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
Hot Topic (More than 8 Replies) Error compiling (Read 11962 times)
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Error compiling
Oct 14th, 2013 at 3:45pm
Print Post  
Just started playing with visual micro. Must say, pretty impressed so far. Only issue I have is trying to get it to compli my arduino sketch with any other libraries other then the core. If I use the core libraries i.e SPI.h works fine. If I got to use any user defined library i.e OneWire.h, it fails. With the Arduino IDE works fine. Both cases using arudio 1.0.5 build. I'm sure it's some sort of setting I'm overlooking.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #1 - Oct 14th, 2013 at 5:13pm
Print Post  
Hi,

Sorry you are having this problem, sketch book libraries should be working.

Questions

1)
When an Arduino project is open do the user libraries appear on the menu item "Project>Add/Import Sketch Library>User"?

2)
Please switch on "Tools>Options>Visual Micro>Compiler>Verbose" then click compile. Please email the output to info [at] visualmicro.com

Thanks
  
Back to top
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Error compiling
Reply #2 - Oct 14th, 2013 at 5:19pm
Print Post  
Answer to Question 1: yes

Output for Question 2:
Board Properties
name=Arduino Mega 2560 or Mega ADK
upload.protocol=wiring
upload.maximum_size=258048
upload.speed=115200
bootloader.low_fuses=0xFF
bootloader.high_fuses=0xD8
bootloader.extended_fuses=0xFD
bootloader.path=stk500v2
bootloader.file=stk500boot_v2_mega2560.hex
bootloader.unlock_bits=0x3F
bootloader.lock_bits=0x0F
build.mcu=atmega2560
build.f_cpu=16000000L
build.core=arduino
build.variant=mega
runtime.ide.path=C:\Program Files (x86)\arduino-1.0.5
build.system.path=C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\system
runtime.ide.version=105
originalid=mega2560
vm.core.include=arduino.h
vm.boardsource.path=C:\Program Files (x86)\arduino-1.0.5\hardware\arduino
vm.platformname.name=avr
build.arch=AVR
ide.hint=Arduino 0023 and 1.0.x Ide
ide.location.key=Arduino
ide.location.ide.winreg=Arduino 1.0.x Application
ide.location.sketchbook.winreg=Arduino 1.0.x Sketchbook
ide.location.sketchbook.preferences=sketchbook.path
ide.location.sketchbook.default=%MYDOCUMENTS%\arduino
ide.location.preferences=%VM_APPDATA_ROAMING%\arduino\preferences.txt
ide.default.package=arduino
ide.default.platform=avr
ide.multiplatform=true
ide.includes=arduino.h
ide.platformswithoutpackage=true
ide.sketchfolder.platforms.exclude=avr
ide.includes.fallback=wprogram.h
ide.extension=ino
ide.extension.fallback=pde
ide.versionLTEQ=149
ide.exe=arduino.exe
ide.hosts=atmel
ide.url=http://arduino.cc/en/Main/Software
vm.debug=true
software=ARDUINO
ide.appid=arduino10x
location.sketchbook=c:\Users\DigitalMan\Documents\Arduino

Compiling 'zigbee_api' for 'Arduino Mega 2560 or Mega ADK'
Build folder: 560
SketchLibFolders
C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\cores\arduino;C:\Program Files re\utility;c:\program files (x86)\arduino-1.0.5\hardware\tools\avr\avr\include\;c:\program files (x86)\arduino-1.0.5\hardware\tools\avr\avr\include\avr\;c:\program files (x86)\arduino-1.0.5\hardware\tools\avr\avr\;c:\program files (x86)\arduino-1.0.5\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=4 Imports=1
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\arduino-1.0.5\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///c:/Users/DigitalMan/Documents/Arduino
C:\Program Files (x86)\arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\variants\mega" -I"c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire" -o bee_api.cpp.o"  bee_api.cpp"  -DVISUALMICRO_COMPILER_VER=1
zigbee_api.ino : extra tokens at end of #include directive
zigbee_api.ino : non-local variable '<anonymous union> data' uses anonymous type
zigbee_api.ino : : In function 'void sendDatatoYodda()':
zigbee_api.ino : Warning: unused variable 'x'
C:\Program Files (x86)\arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\variants\mega" -I"c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire" -o Wire\._OneWire.cpp.o"  "c:\Users\DigitalMan\Documents\Arduino\librarie
  
Back to top
 
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Error compiling
Reply #3 - Oct 14th, 2013 at 5:21pm
Print Post  
Little more info Smiley

C:\Program Files (x86)\arduino-1.0.5\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\arduino-1.0.5\hardware\arduino\variants\mega" -I"c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire" -o Wire\OneWire.cpp.o"  "c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire\OneWire.cpp"  -DVISUALMICRO_COMPILER_VER=1
OneWire.cpp : Warning: only initialized variables can be placed into program memory area
Error compiling
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #4 - Oct 14th, 2013 at 6:20pm
Print Post  
Hi, thanks for the info. Please email the full output to the address below. Thanks very much

info [at] visualmicro.com
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #5 - Oct 14th, 2013 at 7:02pm
Print Post  
Hi there,

Sorry, found your email in my junk.

It looks like the problem is that Visual Micro is compiling some files from the OneWire lib that is should skip. Notice that the OneWire folder has some files with names that start with a full stop (.OneWire.cpp). These library files should not be compiled and are not needed so can be deleted.

After deleting the files click "Tools>Visual Micro>Reload Toolchains" or re-start Atmel

If you look in the output all of the Warnings can be ignored, they are not causing the error. The error is shown like this example...

Code
Select All
I"c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire" -o Wire\._OneWire.cpp.o" "c:\Users\DigitalMan\Documents\Arduino\libraries\OneWire\._OneWire.cpp" -DVISUALMICRO_COMPILER_VER=1
._OneWire.cpp : null character(s) ignored
._OneWire.cpp : stray '\5' in program
._OneWire.cpp : stray '\26' in program
._OneWire.cpp : stray '\7' in program
._OneWire.cpp : null character(s) ignored
._OneWire.cpp : stray '\2' in program
._OneWire.cpp : null character(s) ignored
._OneWire.cpp : null character(s) ignored
._OneWire.cpp : stray '\2' in program 

« Last Edit: Oct 14th, 2013 at 7:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Error compiling
Reply #6 - Oct 14th, 2013 at 8:22pm
Print Post  
Yes, that did the trick. Everything is compiling fine now. How those hidden files got in there I have no idea (least for now).
Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #7 - Oct 14th, 2013 at 9:06pm
Print Post  
Great thanks for reporting it
  
Back to top
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Error compiling
Reply #8 - Oct 14th, 2013 at 9:47pm
Print Post  
The debugger has been pretty dam good - considering the Arduino has 0. Well worth the few dollars it cost. Great job
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling
Reply #9 - Oct 15th, 2013 at 1:50am
Print Post  
That's really good to hear thanks!
  
Back to top
IP Logged
 
JoeB
Junior Member
**
Offline


Posts: 13
Joined: Oct 14th, 2013
Re: Error compiling
Reply #10 - Oct 15th, 2013 at 3:59am
Print Post  
After using the interface add-on and the trail debugger for a good 1.5 days, I'm upgrading from dam good to excellent. Worth every cent. Compared to Arduino IDE, it's like comparing VI to MS Word.  I'm sold.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint