Compile error – file name too long?

About Monkey 2 Forums Monkey 2 Development Compile error – file name too long?

This topic contains 6 replies, has 3 voices, and was last updated by  Angus 1 year, 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11715

    Angus
    Participant

    I’ve just received this error message from the compiler:

    I added the “x”s at the end of the filename test2 just to be sure.  When they’re not in the filename it compiles ok.

    I’m not 100% confident I’ve got MSVC installed correctly, my code seems to run ok otherwise.  Is there a setting somewhere that’d allow me to get around this?

    Obviously, I could just clean up my work folders and shorten their names, which I’ll probably do anyway 🙂

    The code that generated the error was this,  it was just a small test which I only post here to be certain it’s not just my imagination that it otherwise runs fine:

    #11720

    abakobo
    Participant

    Yes you have to use short paths or you may encounter filepath too long errors. The max paths length depends on the os. There is already an issue on github about that. But well it works fine if you use short paths (like C:/mx2-projects/myproject).

    #11721

    Angus
    Participant

    Oh, didn’t realise it was already known.  I’ll have to get more familiar with github, thanks!

    #11724

    Mark Sibly
    Keymaster

    The code that generated the error was this,

    I think there may be something weird  going on here in general.

    What was the full path of the monkey2 source file?

    What was the full path of the monkey2 installation?

    #11730

    Angus
    Participant

    The source is here:

    C:\Users\Angus\Documents\Code\Monkey2\EditorCurrent\code\ManagedObjects\test2xxxxxxxxx.monkey2

    Without the Xs, it runs.

    The Monkey2 installation is:

    C:\Monkey2-v1.1.08

    #11731

    Mark Sibly
    Keymaster

    Thanks Angus, I will take a look soon-ish

    #11733

    Angus
    Participant

    Not exactly a priority, for me personally, just more info.  Making my folders acceptable is probably much higher priority.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.