![]() |
![]() |
#1 |
Registered User
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 195
|
VBCC "kick13" error in "exec\interrupts.h"
Hi All,
I have a simple example where VBCC throws me an error: Code:
> VOID (*i error 20 in line 25 of "exec\interrupts.h": no declarator and no identifier in prototype included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 Commandline: Code:
vc.exe +kick13 -lamiga -lauto -cpu=68000 test.c -o test Code:
#include <exec/exec.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; } Code:
> UBYTE warning 56 in line 17 of "exec\nodes.h": } expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > UBYTE ln_Type; warning 54 in line 17 of "exec\nodes.h": ; expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > UBYTE ln_Type; warning 67 in line 17 of "exec\nodes.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > UBYTE ln_Type; warning 125 in line 17 of "exec\nodes.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > BYTE warning 67 in line 18 of "exec\nodes.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > BYTE ln_Pri; warning 125 in line 18 of "exec\nodes.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > BYTE ln_Pri; warning 54 in line 18 of "exec\nodes.h": ; expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > BYTE ln_Pri; warning 67 in line 18 of "exec\nodes.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > BYTE ln_Pri; warning 125 in line 18 of "exec\nodes.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 >} warning 369 in line 20 of "exec\nodes.h": declaration expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 >}; warning 369 in line 20 of "exec\nodes.h": declaration expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":13 included from file "engine3a.c":1 > UBYTE warning 56 in line 23 of "exec\lists.h": } expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE lh_Type; warning 68 in line 23 of "exec\lists.h": redeclaration of var <UBYTE> with new type included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE lh_Type; warning 54 in line 23 of "exec\lists.h": ; expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE lh_Type; warning 67 in line 23 of "exec\lists.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE lh_Type; warning 125 in line 23 of "exec\lists.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE warning 67 in line 24 of "exec\lists.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE l_pad; warning 68 in line 24 of "exec\lists.h": redeclaration of var <UBYTE> with new type included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE l_pad; warning 125 in line 24 of "exec\lists.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE l_pad; warning 54 in line 24 of "exec\lists.h": ; expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE l_pad; warning 67 in line 24 of "exec\lists.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > UBYTE l_pad; warning 125 in line 24 of "exec\lists.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 >} warning 369 in line 25 of "exec\lists.h": declaration expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 >}; warning 369 in line 25 of "exec\lists.h": declaration expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":14 included from file "engine3a.c":1 > APTR warning 56 in line 24 of "exec\interrupts.h": } expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 > APTR is_Data; warning 54 in line 24 of "exec\interrupts.h": ; expected included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 > APTR is_Data; warning 67 in line 24 of "exec\interrupts.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 > APTR is_Data; warning 125 in line 24 of "exec\interrupts.h": no declaration-specifier, used int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 > VOID warning 67 in line 25 of "exec\interrupts.h": type defaults to int included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 > VOID (*i error 20 in line 25 of "exec\interrupts.h": no declarator and no identifier in prototype included from file " \vbcc_bin_win64\targets\m68k-kick13\include/exec\exec.h":15 included from file "engine3a.c":1 aborting... unexpected end of file 1 error found! vbccm68k -quiet "engine3a.c" -o= "C:\TEMP\vbcc068c.asm" -cpu=68000 -hunkdebug -O=1 -no-cpp-warn -I%VBCC%/targets/m68k-kick13/include failed Press any key to continue . . . |
![]() |
![]() |
#2 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,231
|
I can compile your sample "test.c" file without issue with the pretty recent vbcc I have. What NDK version are you using (I use 3.9 even when targeting 1.3)?
|
![]() |
![]() |
#3 |
Registered User
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 195
|
NDK3.2 works fine but kick13 fails.
I try to write simple window / bitmap application for 1.3 and actually some examples work fine. One of them fails, I thought the code was bad, but when I just added include <exec/exec.h> to the simple 'hello world' example also VBCC fails. |
![]() |
![]() |
#4 |
Registered User
Join Date: Jan 2018
Location: Germany
Posts: 46
|
Hi Cyprian,
I can reproduce your issue with VBCC 0.9h using the NDK-1.3 headers on Amiga OS 4.1. Yes, there is an error in the NDK-1.3 exec/exec.h header, it does not include exec/types.h. Either you fix the file yourself, or add the following include before including exec/exec.h in your source file: Code:
#include <exec/types.h> #include <exec/exec.h> |
![]() |
![]() |
#5 |
Registered User
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 195
|
@FlynnTheAvatar
thanks, that was that! no more errors so far |
![]() |
![]() |
#6 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,552
|
Quote:
![]() |
|
![]() |
![]() |
#7 |
Registered User
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 195
|
haha so true.
anyway, after some tweaks it works now. I've added also following part (from 3.2) to my 1.3 target: Code:
/* exec/memory.harderr*/ #define MEMF_ANY (0L) /* Any type of memory will do */ /* intuition/intuition.h */ #define IDCMP_CLOSEWINDOW 0x00000200L #define IDCMP_NEWSIZE 0x00000002L #define IDCMP_REFRESHWINDOW 0x00000004L #define WFLG_SIZEGADGET 0x00000001L /* include sizing system-gadget? */ #define WFLG_CLOSEGADGET 0x00000008L /* include close-box system-gadget? */ #define WFLG_DRAGBAR 0x00000002L /* include dragging system-gadget? */ #define WFLG_DEPTHGADGET 0x00000004L /* include depth arrangement gadget? */ #define WFLG_SIMPLE_REFRESH 0x00000040L #define WFLG_SIZEBBOTTOM 0x00000020L /* size gadget uses bottom border */ |
![]() |
![]() |
#8 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,552
|
Never change the system headers! If anybody wants to compile your source in the future, this will result in a lot of confusion.
If you really want that, put these defines in local headers, which you keep together with your project's source. BTW, the intuition-flags are in intuition/intuitionbase.h for 1.3, but without the IDCMP_or WFLG_prefix. |
![]() |
![]() |
#9 | |
Registered User
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 195
|
Quote:
good to know, thanks |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Diabolik" & "Dylan Dog" & "Tex" & "Time Runners" series | DamienD | request.Old Rare Games | 20 | 21 July 2022 16:58 |
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" | DemosongIHunter | request.Music | 45 | 23 May 2022 20:07 |
Playing "Legend of Faerghail", suddenly "Software error - Task Held"? | arto | support.WinUAE | 12 | 05 January 2016 18:07 |
"Exception "Line 1111 Emulator" ($2c) Error at $1004" when exiting game | demolition | support.WinUAE | 15 | 30 November 2012 16:43 |
|
|