I understand that there are many questions related to this problem, but I could not make a chapter and a story from those that I read.
I am trying to start learning C for Amiga and decided to try this tutorial: http://www.pcguru.plus.com/tutorial/amiga_c.html
Upon reaching this point, I already run into noob problems:
#include <proto/intuition.h> #include <intuition/screens.h> #include <proto/dos.h> #include <stdio.h> int main(void) { struct Screen *myScreen; if (myScreen = LockPubScreen(NULL)) { printf("Public Screen locked.\n"); Delay(100); UnlockPubScreen(NULL, myScreen); printf("Public Screen unlocked.\n"); } return 0; }
I use the GCC compiler with the following command from the shell:
gcc -o LockPubScreen LockPubScreen.c
This returns the following:
Warning: assignment makes pointer from integer without a cast undefined reference to 'LockPubScreen' undefined reference to 'Delay' undefined reference to 'UnlockPubScreen
Apart from "HelloWorld", this is the first attempt at either C or Amiga programming, so I assume that I will miss something obvious.
source share