GLBasic forum

Main forum => GLBasic - en => Topic started by: matty47 on 2026-Mar-22

Title: Build for Raspberry Pi Error
Post by: matty47 on 2026-Mar-22
Just getting back into GLBasic and using version 16.947. Program built for Win OK. When I try to build for Raspberry Pi i get the following errors
Quote*** Configuration: RASPBERRY_PI ***
precompiling:
GPC - GLBasic Precompiler V.17.312 SN: 7101ce3 - 3D, NET
Wordcount:107 commands
compile+link:
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_tempg.cpp:2:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_temp0.cpp:1:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
*** FATAL ERROR - Please post this output in the forum
_______________________________________
I don't know what the stray refers to and any help greatly appreciated.
Title: Re: Build for Raspberry Pi Error
Post by: matty47 on 2026-Mar-22
I did a search for the error raised and found an answer. On the first line of glb.h there are three non printing characters causing the error. In a hex editor I removed these bytes (EF BB BF). Now my program compiles for Raspberry Pi without an error and I get a .bin file and a media folder. I have yet to check that the program works on the pi.
The search indicated that the other way to fix the error was to delete the first line and retype it.