Sublime Forum

Adding files?

#1

I am an Xcode user, but I am encountering a few problems compiling a certain app at the moment, and I felt it would be useful to pick up another IDE, so here I am. But I have already run into a difference that it tripping me up. In Xcode, you add “frameworks,” just a bunch of header files that are referenced in your main, all in one folder. Very straightforward, I probably didn’t need to explain it. Regardless, I opened the main code file from the app in Sublime Text 2, and then used the “Add Folder to Project” function to add the framework folder with all of the necessary header files, but it didn’t seem to work. I used #include "myo/myo.hpp" and then #include "myo.hpp" after the first one did not work. I get the same error each time:

/Users/username/anotherfolder/Myo-Data-Capture 2.cpp:12:10: fatal error: ‘myo.hpp’ file not found

After getting this error I looked into it and found something about a build system… Is that right? Like I said, I know how to solve this in Xcode, but I can’t replicate that process in Sublime Text, so I am lost, despite how simple I know this error really is.

0 Likes

#2

I know it is very very simple, but I simply do not know how to properly set up the build paths for all the header files I need, and the unofficial documentation of build systems for Sublime Text left me lost.

0 Likes

#3

I suppose describing how the setup goes in Xcode will be helpful for us. Also, if you can transcribe the exact command line that is run.

0 Likes