Error while compiling .m file to .maki

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • xpqcad
    Junior Member
    • Sep 2005
    • 7

    Error while compiling .m file to .maki

    Hi.
    When I try to compile a m file to maki I always get an error.
    The console shows the following error:

    code:

    MC - Maki Compiler v1.1.3
    (c)2001, Nullsoft Inc.

    Preprocessing...
    #include lib\std.mi: file not found at main.m:5
    Preprocessor error, aborting
    Exited with code 6

    The path to std.mi library is set to \lib\std.mi in the m script and the file exists definitely at that position. So i got no idea why the compiler can't find it.

    This is my file hierarchy

    code:

    mc.exe
    main.m
    <Folder name=lib>
    std.mi

    So mc.exe and main.m are in the same directory and std.mi is in the subfolder lib.

    Anyone here who can help me with this error?

    Greetz
  • Mr Jones
    Ancient Mod
    • Sep 2000
    • 23130

    #2
    I have the same folder structure as you, try this as your include.

    #include "lib/std.mi"

    Comment

    • xpqcad
      Junior Member
      • Sep 2005
      • 7

      #3
      Hi!

      Thats it! Thx for your help.
      I just had to change the <> in the include statement to ""

      Comment

      • Mr Jones
        Ancient Mod
        • Sep 2000
        • 23130

        #4
        No problem.

        Comment

        • TheElusiveMelon
          Senior Member
          • Feb 2005
          • 350

          #5
          Yeah, with includes, if it doesnt want to work, just change from "" to <> or vice-versa, 9 times out of 10 it will probably work then.

          Comment

          • chinagreenelvis
            Junior Member
            • Nov 2009
            • 37

            #6
            I'm trying to recompile suicore.m with slight changes, but I'm getting the same error. My folder structure is exactly what the Skin Development Pack installed.

            I tried changing the brackets to quotes, but got the same error still.

            Edit: Turns out I had to make all of the include paths relative to the script files and change the brackets to quotes.
            Last edited by chinagreenelvis; 11 March 2017, 02:31.

            Comment

            • Victhor
              Late skinner & Moderator
              • May 2003
              • 1629

              #7
              Originally Posted by chinagreenelvis View Post
              I'm trying to recompile suicore.m with slight changes, but I'm getting the same error. My folder structure is exactly what the Skin Development Pack installed.

              I tried changing the brackets to quotes, but got the same error still.

              Edit: Turns out I had to make all of the include paths relative to the script files and change the brackets to quotes.
              Indeed, it's a bit tricky. So you've compiled the script succesfully then?
              · · Big Bento Modern

              Comment

              Working...
              X