+ 1

How to create header files on cfordroid?

i'm not using code::blocks is there a way to create class/header files using cfordroid?

11th Oct 2017, 4:45 PM
Em M.
Em M. - avatar
3 Antworten
+ 9
According to claims made by the dev, c4droid supports multi-file projects: "How to use Makefiles, multifile projects, etc? Long-click compile button (or select "compilation settings" if buttons are hidden/moved) and configure current directory to use the mode you want. Note that C4droid will create .c4droid configuration file when you will press Ok. Some modes (like makefile) require to enter result executable file name, don't forget to do that. After doing that all use compile and run buttons to build and run your app as regular." Not sure if this is any help to you, but thought I should point it out.
11th Oct 2017, 5:13 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
okay, so after a day of toying around i have found the answer: header, source and "main" files must all be saved in the same folder; in header file, long-click compile button; select "compile multiple source code files (simple); now you can include your header in "main.cpp". This is probably obvious to more experienced folks, but hopefully this helps my fellow phoneposters.
12th Oct 2017, 10:44 PM
Em M.
Em M. - avatar
0
actually found a link to a tutorial in the comments; haven't gone through it yet, but i think it is what i need. http://www.learncpp.com/cpp-tutorial/19-header-files/
11th Oct 2017, 5:02 PM
Em M.
Em M. - avatar