1. GCC Error on getKBchar()
- Posted by euphoric (admin) 2 weeks ago
- 225 views
Just installed newest MinGW to a new PC and trying to compile an app. Anybody recognize this error or have the fix?
PS C:\Users\suppo\Programs\HTF License Server Tools\iNet_maker> gcc --version gcc.exe (x86_64-posix-seh-rev2, Built by MinGW-Builds project) 14.2.0
PS C:\Users\suppo\Programs\HTF License Server Tools\iNet_maker> euc .\iNet_maker.exw Build directory: build-924046\ Translating code, pass: 1 2 3 4 5 6 7 8 9 10 11 12 13 generating Compiling with GCC Compiling 0% init-.c Compiling 3% iNet_maker.c Compiling 5% main-.c Compiling 7% Win32Lib.c Compiling 9% machine.c Compiling 11% memory.c Compiling 13% dll.c Compiling 15% types.c Compiling 17% sort.c Compiling 19% msgbox.c Compiling 21% filesys.c Compiling 23% datetime.c Compiling 25% get.c get.c: In function '_13get_ch': get.c:58:26: error: implicit declaration of function 'getKBchar'; did you mean 'getwchar'? [-Wimplicit-function-declaration] 58 | _13ch_8316 = getKBchar(); | ^~~~~~~~~ | getwchar Couldn't compile file 'get.c' Status: 1 Command: gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math get.c
2. Re: GCC Error on getKBchar()
- Posted by jmduro 2 weeks ago
- 215 views
It tells you that you didn't declare getKBChar which is part of Psychophysics Toolbox Version 3, used by MatLab and GNU Octave: http://psychtoolbox.org/docs/GetKbChar.
Jean-Marc
3. Re: GCC Error on getKBchar()
- Posted by euphoric (admin) 2 weeks ago
- 222 views
It tells you that you didn't declare getKBChar which is part of Psychophysics Toolbox Version 3, used by MatLab and GNU Octave: http://psychtoolbox.org/docs/GetKbChar.
Does that mean euc or get.e are trying to access that? Sounds like something deep in the interpreter or compiler.
4. Re: GCC Error on getKBchar()
- Posted by ghaberek (admin) 2 weeks ago
- 204 views
Just installed newest MinGW to a new PC and trying to compile an app. Anybody recognize this error or have the fix?
You're in uncharted waters here. Just because it's the latest version doesn't mean it's going to work and obviously something is broken.
The only version of GCC on Windows that I can currently support is TDM-GCC-64. I recommend removing what you've got and using that instead.
It tells you that you didn't declare getKBChar which is part of Psychophysics Toolbox Version 3, used by MatLab and GNU Octave: http://psychtoolbox.org/docs/GetKbChar.
What? No! I don't even know how you'd come to that conclusion because it's completely unrelated.
Does that mean euc or get.e are trying to access that? Sounds like something deep in the interpreter or compiler.
Yes, getKBchar() is part of the backend and is defined here. I would have to do some testing to figure out why GCC can't find that particular symbol.
-Greg
5. Re: GCC Error on getKBchar()
- Posted by jmduro 2 weeks ago
- 174 views
It tells you that you didn't declare getKBChar which is part of Psychophysics Toolbox Version 3, used by MatLab and GNU Octave: http://psychtoolbox.org/docs/GetKbChar.
What? No! I don't even know how you'd come to that conclusion because it's completely unrelated.
Oops, Google is not my friend :(
Jean-Marc
6. Re: GCC Error on getKBchar()
- Posted by euphoric (admin) 2 weeks ago
- 173 views
Just installed newest MinGW to a new PC and trying to compile an app. Anybody recognize this error or have the fix?
You're in uncharted waters here. Just because it's the latest version doesn't mean it's going to work and obviously something is broken.
OK, thanks, Greg! I figured as much.
The only version of GCC on Windows that I can currently support is TDM-GCC-64. I recommend removing what you've got and using that instead.
Am I safe to just install the 64+32-bit package? Is that overkill? What exactly do I need?
This page could probably use an update: Euphoria Translator, with at least a mention of TDM-GCC-64 and the download link.
(I wonder if you should fork Euphoria and call the new language, Habereka. Just an idea...)
7. Re: GCC Error on getKBchar()
- Posted by ghaberek (admin) 2 weeks ago
- 139 views
Am I safe to just install the 64+32-bit package? Is that overkill? What exactly do I need?
Yes, that is the version you want. It can target 32-bit or 64-bit Windows using gcc -m32 or gcc -m64, respectively.
This page could probably use an update: Euphoria Translator, with at least a mention of TDM-GCC-64 and the download link.
All of the docs needs updating and republishing. I'm working on it as time allows but it's lower priority until I've got 4.2 in a releasable state. Volunteers are always welcome.
-Greg