Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
running a simple application without creating a project (Read 286 times)
Jean Pierre Daviau
Newbies
*
Offline



Posts: 1
running a simple application without creating a project
Jan 25th, 2020 at 9:52pm
 


How do I create a simple application without creating a project:

Code (C++):
#include <stdlib.h>   /* atoi */
#include <stdio.h>
#line 4 test.c

vois main(){

printf("line %d\n",__LINE__);

} 



JPD
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: running a simple application without creating a project
Reply #1 - Jan 26th, 2020 at 2:28pm
 
To be able to save the board, port and other info for intellisense you need a project. A project is basically just an xml file that contains all the settings. Some IDEs create a json file, atmel and visual studio create a .cppproj or .vcxproj instead.

You can create and arduino project using the vmicro menu or file>new>project menu.  When you use an arduino project you can leave the .ino file empty and use project_name.cpp if you want to override the app. Or you can put a main.cpp in your project and do whatever you want without the arduino code constraints.

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print