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 Debug error: redefinition of 'long unsigned int (Read 5828 times)
captainchaos
Newbies
*
Offline


Posts: 2
Joined: Aug 2nd, 2017
Debug error: redefinition of 'long unsigned int
Aug 3rd, 2017 at 8:46am
Print Post  
when i start the debugger i have this error

AD1115_Test.ino: 65:15: error: redefinition of 'long unsigned int _VM_AUTO_REPORT_LAST_MS_
   unsigned long _VM_AUTO_REPORT_LAST_MS_ = 0L
AD1115_Test.ino:64: note  long unsigned int _VM_AUTO_REPORT_LAST_MS_ previously defined here
Debug build failed for project 'AD1115_Test'
   unsigned long _VM_AUTO_REPORT_LAST_MS_ = 0L


Line 64: #define  ADS1115_0p256B 0x06   // same as ADS1115_0p256
Line 65: #define  ADS1115_0p256C 0x07   // same as ADS1115_0p256

can you help me?  Embarrassed
« Last Edit: Aug 3rd, 2017 at 7:22pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug error: redefinition of 'long unsigned int
Reply #1 - Aug 3rd, 2017 at 11:54am
Print Post  
Hi,

Please enabled vmicro>compiler>verbose and "show build properties" then build and attach the output as a .txt file to a post here

Or switch off auto reports in the project properties.

Thanks
  
Back to top
WWW  
IP Logged
 
captainchaos
Newbies
*
Offline


Posts: 2
Joined: Aug 2nd, 2017
Re: Debug error: redefinition of 'long unsigned int
Reply #2 - Aug 3rd, 2017 at 2:12pm
Print Post  
Hello,
here are the log file. Thank you for your help
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug error: redefinition of 'long unsigned int
Reply #3 - Aug 3rd, 2017 at 7:23pm
Print Post  
Thanks for the info.

The line mentioned in the error will be outside of your code so the line numbers are confusing.

I can't replicate so I need to see what you have enabled in terms of digital/analog reports etc.

Can you please zip your project folder with sub folders included and email to info[at]visualmicro.com with link to this post

Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug error: redefinition of 'long unsigned int
Reply #4 - Aug 4th, 2017 at 12:27pm
Print Post  
Hi,

I think this is partly a bug but the fact that you have two void loop() in your code is unsupported.

The setup() and loop() in arduino are special functions that you should not duplicate.

You can have loop more easily by using a single loop.

You should also put your comments above each function not between function header and first brace. The intellisense will be happier when displaying your comments.

Code
Select All
void loop()
{
  #if testmode
     testloop()
 #else
   realloop()
 #endif
}


  #if testmode
   void testloop() {

}

 #else

   void realloop() {

}
 #endif



 

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint