![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Compiling C on Tiger | cleansing_flame | High Level Programming | 4 | 03-04-2008 05:01 PM |
| Compiling a C program | ooploo | High Level Programming | 3 | 10-06-2006 03:35 AM |
| Problem compiling program | rochitsharma | High Level Programming | 28 | 07-23-2006 05:56 PM |
| Compiling a program | Minnesota Red | High Level Programming | 7 | 06-16-2003 01:35 PM |
| Error Compiling C program | Vivek | High Level Programming | 3 | 10-25-2001 08:13 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
help on compiling a C program on Tiger
here is the very simple bob.c:
main() { printf("hello"); } i use tiger and i use the command: gcc bob.c and the end result: bob.c: In function ‘main’: bob.c:3: warning: incompatible implicit declaration of built-in function /‘printf’ any help appreciated, i'm just starting up, hopefully thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
add the header file stdio.h in the beginning of the program :
#include <stdio.h> |
|
#3
|
||||
|
||||
|
that got rid of the errors, but now the printf() function does not output
|
|
#4
|
|||
|
|||
|
Do you mean the OS X Tiger...state the platform you are compiling on? What header files are you including besides <stdio.h> and what libs are you compiling with? There might be issues with the printf() definition between the header files and libs you are compiling with.
|
|
#5
|
||||
|
||||
|
i downloaded xcode thats it
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|