Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: FluffyMcDeath on February 05, 2005, 09:49:16 AM
-
so I haven't got the SDK yet but I've been itching to write code on my new uA1.
So I downloaded vbcc and installed it. Then (in Vim) created the following.
int main(int argc, char** argv)
{
int * ptr = (int *)0;
int boom = * ptr;
}
compiled with -g.
go to run a.out and ....
I get a flashing yellow software error box : press left mouse button to continue
??????????
Where's the effing reaper?
(pressing the left mouse button is of course utterly useless).
-
I just tryied to code with the SDK install from the AOS4PR.
New Shell process 4
4.Workbench:> ram:
4.RAM Disk:> vc -g test.c
4.RAM Disk:> a.out
The Grim Reaper Appeared and the sound from AmigaAMP is now
with little noises.
Which version of VBCC you installed?
The one on the prerelease CD is older than the one on the VBCC (http://sun.hasenbraten.de/vbcc/) website.
-
drHirudo wrote:
I just tryied to code with the SDK install from the AOS4PR.
New Shell process 4
4.Workbench:> ram:
4.RAM Disk:> vc -g test.c
4.RAM Disk:> a.out
The Grim Reaper Appeared and the sound from AmigaAMP is now
with little noises.
That's more like it.
Which version of VBCC you installed?
The one on the prerelease CD is older than the one on the VBCC (http://sun.hasenbraten.de/vbcc/) website.
Yup. That's the one I just got when I saw the announcement in the news section. I installed both tht ppcos4 and 68k targets. I don't have the SDK for OS4 yet.
Even if I compile the wrong target it should still give me a DSI, shouldn't it?
-
From the vbcc site - could this be a clue?
Warning! Make sure your amiga_compiler.h from the official OS4 SDK is up to date! Line 266 and 267 have to look like this:
#define APICALL __aos4libcall __linearvarargs
#define VARARGS68K __linearvarargs