Using standard C/C++ while working on a project, I noticed that I could not find the libraries for the following:
include <windows.h>
include
using namespace std;
Any help on this would be greatly appreciated.
Using standard C/C++ while working on a project, I noticed that I could not find the libraries for the following:
using namespace std;
Any help on this would be greatly appreciated.
Is this an Arduino project ?
Yes. We are writing a code to use a PIR sensor and time delays.
Do you appreciate that the Arduino environment is very different from using C/C++ on a PC ?
Why do you think you need windows.h etc ?
I do appreciate the Arduino environment, but when writing the program I am use to using those libraries as this is how I have been writing codes over the last few years. I just recently started using the Arduino.
Long story short. There is no windows.h and iostream.h in arduino.
I do appreciate the Arduino environment
Looks like you don't from where I am.
What do you want the windows.h to do for you?
KLDazey:
I do appreciate the Arduino environment, but when writing the program I am use to using those libraries as this is how I have been writing codes over the last few years. I just recently started using the Arduino.
I guess you do not quite understand why you (have to) include those files. If you don't use stuff from iostream, you do not have to include iostream.h; if you do not use windows specific stuff (e.g. write a console application), you don't have to include windows.h.
IOSTREAM has been implemented a couple of times for Arduino.
Here's one arduino/iostream.h at master · mchr3k/arduino · GitHub
(last modification 2012, so YMMV WRT whether it still works, and it will probably require an "old" install procedure.)