Hi there. In your first post to me you asked if I had used the Arduino IDE. I replied that yes I had, I didn't say, however, that I had setup multiple directories, etc. there. I think you made this assumption and I'm sorry if somehow I led you there but I went back and read what wrote and I think I'm being fairly clear as to what I was and am doing now..
I said as you can see above it was the "wish" for this and "intellisense" that had me move to the "Visual Studio IDE" with "Visual Micro" as an add on.
So we are not talking about working in the Arduino IDE at all and using only .INO files all in the same directory.
We are talking about using Visual Studio. I want simply to have the "ONE" required sketch file and then the rest of my files all traditional .H and .CPP files. Many of these files are as a C++ programmer would, stored in directories that represent possible future library builds.
If I have the simplest of projects..
SKETCH_A.INO
SKETCH_A_MAIN.CPP
SKETCH_A_MAIN.H
All I would have is the required #includes in the .INO file.
Setup, Loop, code entry point, etc. is in the SKETCH_MAIN_CPP.
What isn't clear to me is do all of my #includes have to be in this one file? I can't see why normal processing of .CPP and .H files is interrupted because of using Arduino. This seems to me to be counter intuitive and makes no sense.
I'm sorry if I'm missing something basic and seem incoherent and stupid to you...
I just have written hundreds of thousands of C++ code and have seen some pretty ugly make files in my day and this 15 lines of test code not compiling because it can't find header and source files is maddening....
So I do please ask you be a bit patient with me as I have been trying to get these 15-20 lines of code to work for hours. You obviously know this feeling as anyone in this business does and would be foolish to say other. Sometimes just asking some peers to shed light on something you have been staring at for many hours is all you need.
Obviously I have tried <> and "". Years ago we only used <> for standard libraries and "" for in house. Not sure what is done today but I will probably code this project as such as I'm familiar with that.
The point is that after telling Visual Studio in EVERY BLODDY place I can find to stipulate where my source and header files are I still get...
Can't find file or directory compile terminated... Though intellisense seems to be recognizing them - that actually makes it more maddening - not less no. I would prefer it not to work at all. This just seems flaky...
Still now today 30 hours later. I'm in the same place and would really love to just get my project going...
I understand that I may be missing something simple as I'm new with Arduino. I read somewhere, couldn't find the link again, that ALL of the includes have to be in the main .INO file?
This seems to me to be really stupid and I'm presuming it is done to retain some compatibility with going back to the Arduino IDE?
I have no intention of ever going back to the Arduino IDE as I wouldn't have gone to all this trouble unless I had a desire to break the project into components as I do.
With this being said is there an option that says, enough of this foolish trouble to retain compatibility with the Arduino IDE. I'm planning on staying here so how can I stop doing all this special stuff to satisfy those conditions and just work.
I'm writing software to articulate some interactive sculpture. The software will eventually be fairly complex as I'm writing it in an "engine" fashion so as it can be used on future projects with multiple installations. Can't really say much more. lol....
Hard to get to that point when simple empty files devoid of any real code, just stubs, won't compile because of some weird issue I can't seem to wrap my mind around...
http://www.visualmicro.com/post/2014/01/13/How-to-Create-Arduino-Projects-In-Vis... I'm recreating this project again. I'm very sure that I followed this post to the letter before but ..... giving it another shot here before I go walk off some steam.
Not sure if I was more clear this time. I just slept for a couple hours in my studio\office and I'm back at it. Pretty tired and annoyed old fart here....