Quote:
Originally Posted by arne1288
I must admit that I haven't been playing around much with submodules, but didn't you mean:
Code:
git submodule add https://github.com/OciXCrom/cromchat scripting/include/cromchat
Otherwise I believe the path to the cromchat.inc file @ #include will be a little bit incorrect?
? 
|
Then he'd have to do
PHP Code:
#include "include/cromchat/cromchat.inc"
The path you set will be the
base path for that submodule, i.e. the directory in which all of submodules contents will be copied. I didn't purposely set it to "scripting/include/cromchat" because, as you see, including it gets ridiculous.
Also confusion may arrive because that "/include" path is not automatically added to included paths, you have to do it yourself when compiling or just reference it using a relative path (like I did).
I mean it's up to the OP what he wants to do with it, I just posted what I would've done.
__________________