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 running a simple application without creating a project (Read 1432 times)
Jean Pierre Daviau
Newbies
*
Offline


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


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

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

vois main(){

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

} 



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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: running a simple application without creating a project
Reply #1 - Jan 26th, 2020 at 2:28pm
Print Post  
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
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint