68kMLA Classic Interface
This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.
| Click here to select a new forum. | | Error When Compiling a Hello World in MW C/C++ | Posted by: nathanpc on 2009-09-26 09:24:58 Hello,
I'm trying to make a Hello World project in MetroWerks C/C++ 1.01, see the code:
// Hello.c
#include
int main(void)
{
printf("Hello, World!");
return 0;
}And here is the make log:
ยทยท Link Error : LinkError:Hello.c: 'printf' referenced from 'main' is undefined. Thanks,
Nathan Paulino Campos
| Posted by: porter on 2009-09-26 12:48:33 I would suggest you have to include an ANSI C library in the project.
Also make sure you are building some form of console program, what you have is not how traditional Macintosh programs are written.
| | 1 |
|