1
QB64 Discussion / Re: C++ compilation failed
« on: April 17, 2020, 08:15:58 pm »
Darrell, it would be good to check the contents of the .BAS file after the save. If you end up with bytes in the file that the transpiler/compiler can't handle, that could be the problem.
Obviously, look for control characters, etc. ... but also check the EOL characters in the file. In the past, most of the linux text files I've dealt with had a single LF character as EOL, whereas Windows text files are normally a CRLF duo of characters as EOL. I've seen problems when a file's EOL is totally different like this ... but I've also seen problems when only *some* of the line endings in the file are different.
Obviously, look for control characters, etc. ... but also check the EOL characters in the file. In the past, most of the linux text files I've dealt with had a single LF character as EOL, whereas Windows text files are normally a CRLF duo of characters as EOL. I've seen problems when a file's EOL is totally different like this ... but I've also seen problems when only *some* of the line endings in the file are different.