Log In  

i've been running into some strange errors involving a project using #include while running it on windows instead of my usual linux environment. i've isolated the problem to line ending convention: an external file that uses the windows CrLf convention, but is otherwise the same as a file that works with no problems, will cause errors. here is the text of the external file i used:

local function _draw()
    cls(1)
end

to see the problem, save this with an external text editor using windows line ending convention (wordpad works, as do many programmer text editors) and use #include to include it in a cart.

P#73920 2020-03-14 18:08

Does your file have a .lua extension? You may try .p8 instead (see this previous bug report for details: https://www.lexaloffle.com/bbs/?pid=63569)

P#73925 2020-03-14 19:03

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-16 03:40:02 | 0.005s | Q:12