Where to put additional header, autodoc etc. files?
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 502 from 2007/7/29
    Hello everybody,

    I wanted to play around with programming, so I installed the SDK to my MOS2.5 and tried to start with a simple example. I took this one https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=7155&forum=3#74035 to have a start, downloaded the additional MCCs but I do not know if there is a predefined location to put them. Is there any recommendation where to put those header files for TimeText and such? In the example they are placed in the existing MUI path but I fear that any update to the SDK might overwrite them, put them aside or such as the MorphOS installation itself does with older versions. So where should I put .h, autodocs and so on at best?
  • »01.10.10 - 17:03
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 1766 from 2003/3/5
    From: Poland
    The place for user files in the SDK is SDK:GG/usr (so sdk:gg/usr/include for includes). This is the only directory that will be preserved when updating to a more recent SDK. As for documentation, put it where ever you like (just remember if you put it into SDK: it will be gone after an update unless it's in GG:usr)
  • »01.10.10 - 18:12
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 502 from 2007/7/29
    So I put there two directories gg:usr/includes/mui with Time_mcc.h and such inside and another one for docs. But this path for personal include files seems to not be found. When I use
    Code:

    #include <mui/Time_mcc.h>

    in the source as r-tea does then gcc tells me: mui/Time_mcc.h: No such file or directory. What do I have to add where to have the gcc find my includes automatically?
  • »02.10.10 - 10:51
    Profile
  • Moderator
    Kronos
    Posts: 1879 from 2003/2/24
    You need to tell the compiler were to search:

    gcc ...... -I/usr/include .....

    Or add the directory to "Compiler options" in gccprefs if your useing Cubic (or MorphED).
    --------------------- May the 4th be with you ------------------
    Mother Russia dance of the Zar, don't you know how lucky you are
  • »02.10.10 - 11:45
    Profile
  • MorphOS Developer
    Henes
    Posts: 498 from 2003/6/14
    -I/usr/include should not be needed because it is already part of gcc's specs file.

    What is required on the other hand is to put the files into gg:usr/include/ instead of gg:usr/includes/ :-)
  • »02.10.10 - 14:42
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 502 from 2007/7/29
    The 's' was too much, thanks for the hint.
  • »17.10.10 - 13:22
    Profile
  • Just looking around
    Fester
    Posts: 19 from 2010/4/14
    From: Wisconsin, USA
    Howdy.

    I know this thread is old but it's exactly what I needed.

    I loaded up Morphos 3.0 and the SDK yesterday. I'm teaching myself C++ these days using Code:Blocks 10.05 on Ubuntu Precise. But I wanted to see if my newbie console programs worked on Morphos 3.0. I got them all to compile tonight using g++ from command line.

    Small milestone but it makes me want to dance a happy-happy joy-joy dance.
  • »16.06.12 - 09:28
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    takemehomegrandma
    Posts: 2578 from 2003/2/24
    @Fester

    Great! :-)
    MorphOS is Amiga done right! :-)
    MorphOS NG will be AROS done right! :-)
  • »16.06.12 - 09:53
    Profile