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 Old VS 2015 gives compile error in VS2017 when copied in new project (Read 1446 times)
Henk Levels
Junior Member
**
Offline


Posts: 71
Joined: Sep 28th, 2015
Old VS 2015 gives compile error in VS2017 when copied in new project
Aug 31st, 2017 at 11:59am
Print Post  
Hi,

I'm rather new to this and do this as a hobby.
I have an "old" Arduino project, lets call it test1 that was succesfully compiled in Visual Studio (VS) 2015. This test1 project compiles correctly in VS 2017
In VS 2017 I created a new Arduino project, test2 via Vmicro - New Arduino project. 
Then I copied the source code of test1 in the new test2.ino file.
When I compile, the system says RF12 directory not found. However the RF12 directory does exist.
When I go to Vmicro - Add library and choose Build I see the library RF12, I can add the RF12 directory.
I get several includes extra in the test2.ino file.
When I compile I get the error RF69 is not declared in a *.cpp file.
When I remove the extra included directories in the ino file and compile, compilation is ok.
What is happening, what do I do wrong. Please help

added
Now Test1 also does not compile without errors anymore
« Last Edit: Aug 31st, 2017 at 3:54pm by Henk Levels »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Old VS 2015 gives compile error in VS2017 when copied in new project
Reply #1 - Aug 31st, 2017 at 10:31pm
Print Post  
Hi,

Visual Studio has a solution explorer which shows your currently open projects.

Above the solution explorer is a tool bar is small icons, one of them has a tooltip "show all files"

Click show all files and then right click the files or folders that have been manually placed but that you want to include in the project. CTRL+click allows multiple files to be selected.

When files are correctly includes in a project their icons should change slightly.

Clicking show all files toggles between the two different solution explorer views so you can easily see which files are included in the project.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint