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 compiler error: vector: No such file or directory (Read 3742 times)
redTractor
Newbies
*
Offline


Posts: 1
Joined: Mar 24th, 2017
compiler error: vector: No such file or directory
Mar 24th, 2017 at 9:46pm
Print Post  
I am attempting to build a project using the std::vector library. When compiling I get the following error:

fatal error: vector: No such file or directory
   #include <vector>
   compilation terminated
Error compiling project sources

I have tried compiling with Deep Search turned off and on, there is no difference in the result. 

The project includes other library's which are located in the "Arduino\libraries" folder, and those compile just fine. It seems like there is an issue finding libraries located in the directory:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

(which is where all of the standard C libraries are located) 

I modified my Configuration Properties for the linker and added the VS include directory to the "Additional Library Directories" search path (see attachment). Still no luck...

Any input or recommendations would be greatly appreciated. 

Thanks,
-Chris
« Last Edit: Mar 24th, 2017 at 9:47pm by redTractor »  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compiler error: vector: No such file or directory
Reply #1 - Mar 24th, 2017 at 9:56pm
Print Post  
Hi,

That isn't how arduino works. 

It can be confusing with the vs intellisense which shows standard windows intellisense along with arduino. It's possible to switch that off in the paths "include" paths dialog.

However you can not change the intellisense paths themselves because visual micro has to automatically updated them with lib and hardware paths etc. (depending on what the code uses and what board/architecture is set)

There is actually no need to ever set any paths for arduino and you also can not set any paths in the arduino ide.

The arduino has very little memory compared to a windows machine therefore you will find a cut down version of c++ as documented on the arduino.cc and applicable gcc web sites.

If you switch on vmicro>compiler>verbose, after a build you will see where sources are compiled from and will see there is no mention of any windows paths in the -I compiler includes.

Sorry can be of more help. 

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