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 Compile error (Read 6767 times)
shkdxb
Newbies
*
Offline


Posts: 3
Joined: Dec 30th, 2013
Compile error
Dec 30th, 2013 at 4:59pm
Print Post  
using atmel studio 6.1 and unable to compile my project. seems to be atmel studio is not finding he Library files. the library is showing in VM help screen.no idea how library can be identified in Atmel studio. any help?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #1 - Dec 30th, 2013 at 5:07pm
Print Post  
Hi, if the library exists in one of the two allowable 'Arduino' locations then it should be detected and used within the compile. There are no project specific configuration options that you need to make.

Questions ...

Please explain what you mean by the library is showing in the VM help screen? 

Can you see the library on the Project>Add/Import Sketch Library" menu? Is it listed on the menu under Core or User?

The code that uses the libarary. Is it in an .ino file or a c/cpp?

What version of Arduino Ide have you configured Visual Micro to use?

What is the name of the libarary?

Have you included the library in your sketch by adding #include or by clicking the menu "Project>add/import sketch library" (clicking the menu is recommended for new users)

Thanks
« Last Edit: Dec 30th, 2013 at 5:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
shkdxb
Newbies
*
Offline


Posts: 3
Joined: Dec 30th, 2013
Re: Compile error
Reply #2 - Dec 30th, 2013 at 6:49pm
Print Post  
pl find the error:

Compiling 'test' for 'Arduino Duemilanove w/ ATmega328'
test.ino : 'liquidcrystal595' does not name a type
test.ino : : In function 'void ClearScreen()':
test.ino : 'lcd' was not declared in this scope
test.ino : : In function 'void ShowHints()':
test.ino : 'lcd' was not declared in this scope
test.ino : 'lcd' was not declared in this scope
test.ino : : In function 'void setup()':
test.ino : 'lcd' was not declared in this scope
Error compiling.

the library name is LcdCrystal595.h. just noticed, the error is removing capitalization's in the library name and shows as lcdcrystal595.h. thanks for the quick reply
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #3 - Dec 30th, 2013 at 10:53pm
Print Post  
Hello,

Do you get the same problem in the Arduino ide?

Thanks
  
Back to top
IP Logged
 
shkdxb
Newbies
*
Offline


Posts: 3
Joined: Dec 30th, 2013
Re: Compile error
Reply #4 - Dec 31st, 2013 at 3:34am
Print Post  
yes i beleive. somehow the name picked up with all small case. change to correct case problem solved. but i am unable to use simulator. what i want to do is watch the variable without connecting arduino. but when i run debugger it throws me an error as COM port does not exist. can this be done?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #5 - Dec 31st, 2013 at 12:41pm
Print Post  
Hi, that sounds like a bug we will look at. The case should not cause the compile to fail. Thanks for the report!

The simulator is something we are investigating to make it easier for Arduino users. You can make it work now but it is a bit clunky especially because all of the .ino sources are combined into a .cpp in the tep folder. It is the combined .cpp that is compiled therefore the simulator will be slightly confusing when it shows the source code and it won't be the original of your source but a copy.

Anyway here is the short wiki page that tells you how to get the Simulator working

http://www.visualmicro.com/post/2013/06/05/How-to-start-the-Atmel-Simulator-Ardu...
« Last Edit: Dec 31st, 2013 at 1:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint