Scribble and c99 mode
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 547 from 2013/5/29
    Hiz!

    I,m trying to compile some of my little programs and I need to use c99 mode.
    If I compile through commandline using -std=c99 I have no problems but I would like to compile within Scribble but I dont know how. I use the project setting menu to enter my needs but with c99 doesnt work.

    Do I need to enter it in the makefile?
    Can Scribble generate makefiles?
    Do I understand Project settings or anything???

    mmm I think its all. Thanks mates!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »02.10.13 - 16:29
    Profile
  • Moderator
    Kronos
    Posts: 2442 from 2003/2/24
    Makefile sounds like a good idea.....

    All you can add in Project-Settings is which rules of your makefile will appear as context-menu options on the build-icon (the hammer) + the path to created bin so you can run it from scribble.
  • »02.10.13 - 16:43
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    From my personal experience it is best for now, to just use Scribble as code editor. I write makefiles by hand and execute them from shell.
  • »02.10.13 - 16:43
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 547 from 2013/5/29
    I sadly come from windows and Im not good creating makefiles so Ill have to learn. Compiling from Shell these little programs Its no problem.

    Thanks for the tips.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »02.10.13 - 16:57
    Profile
  • Moderator
    Kronos
    Posts: 2442 from 2003/2/24
    Atomic makefile:


    Code:

    all:
    gcc ....(whatever you typed in shell)



    Now a simple "make" in shell should build your code.
    Hitting the build button in Scribble should do the same.

    edit:
    Drat, forum SW .... make sure there is a <tab> before "gcc..", spaces won't work here,

    [ Edited by Kronos 02.10.2013 - 21:06 ]
  • »02.10.13 - 17:05
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 547 from 2013/5/29
    Hey...Thanks Kronos. I was doing something more complicated. Lets try!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »02.10.13 - 17:50
    Profile