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()

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 2021-09-22 17:11:56 | 0.017s | Q:9