|
Register or have you forgotten your password?
|
|
|
| MorphOS -- Development Support This forum is to allow the discussion of development tools and help for MorphOS |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Lifetime Member
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
|
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 <stdio.h> int main() { printf("goodbye, cruel world!\n); return(0); }
__________________
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw Xbox Live: S0ulA55a551n2 Registered MorphsOS 2.7 user |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Lifetime Member
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
|
got a reply
need to compile at command line with gcc -noixemul goodbye.c -o test
__________________
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw Xbox Live: S0ulA55a551n2 Registered MorphsOS 2.7 user |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Premium Member
Join Date: Aug 2002
Posts: 1,100
|
You'll also want an extra quote on your printf() line.
__________________
-- Ian Gledhill ian.gledhill@btinternit.com (except it should be internEt of course...!) Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness! |
||||||||
|
|
|
|
|
#4 | ||||||||
|
Technoid
![]()
|
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.
|
||||||||
|
|
|
|
|
#5 | ||||||||
|
Lifetime Member
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
|
Dont think will need to worry about that until I get opnto porting doom 3
__________________
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw Xbox Live: S0ulA55a551n2 Registered MorphsOS 2.7 user |
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| newbie , morphos , sdk , super , questions |
| Thread Tools | |
| Display Modes | |
|
|