Pure C simple program

C and PASCAL (or any other high-level languages) in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

FreekBos
Atarian
Atarian
Posts: 9
Joined: Sat Dec 31, 2016 12:44 pm

Pure C simple program

Postby FreekBos » Sat Dec 31, 2016 1:02 pm

Hi guys,

Im writing my first Pure C application on my Atari 520ST+.
But it keeps saying BUS ERROR when I try to run the application.

My test.c file looks like:

Code: Select all

int main()
{
   return 0;
}


My PRJ file looks like this:

Code: Select all

test.prg
=
test.c


Why is it doing that?

gstoll
Atari freak
Atari freak
Posts: 60
Joined: Sun Feb 17, 2008 4:29 pm

Re: Pure C simple program

Postby gstoll » Sun Jan 01, 2017 2:37 pm

FreekBos wrote:My PRJ file looks like this:

Code: Select all

test.prg
=
test.c

Why is it doing that?

You have no startup code in your projekt file. In the library folder is pcstart.s or .o. This must bevor test.c

Code: Select all

test.prg
=
pcstart.s   ; or pcstart.o
test.c


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 1 guest