Welcome, Guest. Please login or register.

Author Topic: very strange (vbcc?) problem.  (Read 975 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FluffyMcDeathTopic starter

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show only replies by FluffyMcDeath
very strange (vbcc?) problem.
« 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).
 

Offline drHirudo

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 539
    • Show only replies by drHirudo
    • http://hirudov.com
Re: very strange (vbcc?) problem.
« Reply #1 on: February 05, 2005, 10:01:28 AM »
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 website.

Offline FluffyMcDeathTopic starter

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show only replies by FluffyMcDeath
Re: very strange (vbcc?) problem.
« Reply #2 on: February 05, 2005, 08:42:55 PM »
Quote

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.
Quote

Which version of VBCC you installed?
The one on the prerelease CD is older than the one on the 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?
 

Offline FluffyMcDeathTopic starter

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show only replies by FluffyMcDeath
Re: very strange (vbcc?) problem.
« Reply #3 on: February 05, 2005, 08:44:41 PM »
From the vbcc site - could this be a clue?
Quote

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