Amiga.org
Operating System Specific Discussions => MorphOS => MorphOS -- Development Support => Topic started by: jj on September 02, 2010, 05:45:21 PM
-
Posted this on MorphZone also but more help the better :)
Hi All
Trying to learn C with the C for dummies book and the MorphOS SDK.
Entered first bit of code and try and complie and get an error about missing makefile.
How do I create this ?
Sorry my programming skills are in Basic only so please be gentle.
Code below. Could be the next must have app :)
#include
int main()
{
printf("goodbye, cruel world!\n);
return(0);
}
-
got a reply
need to compile at command line with
gcc -noixemul goodbye.c -o test
-
You'll also want an extra quote on your printf() line. :)
-
gcc -noixemul goodbye.c -o test
After moving to bigger projects, you may also use -O2 (or -O3), which turns on compiler optimization engine and -s, which strips symbol table and other debug informations from the executable.
-
Dont think will need to worry about that until I get opnto porting doom 3 :)