|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Error Message
I'm getting the following error message:
"Warning [2058] call of function without prototype" when I try to do the following code: printf("Seconds: %d \n",seconds); Problems? |
|
#2
|
||||
|
||||
|
Re: Error Message
Quote:
Code:
#include "printf_lib.h" |
|
#3
|
|||||
|
|||||
|
Re: Error Message
This doesnt have to do with the function being prototyped, but when it works, you will need to change your statement to:
Quote:
--Damian Manda Last edited by Damian Manda : 24-01-2004 at 16:55. Reason: Bolded (int) |
|
#4
|
||||
|
||||
|
Re: Error Message
Type casting is not the problem here. Even if the type cast is wroung the program will still compile, you'll just get undesired results thats all. Kinda like this
Code:
Printf("4 + 4 = %d");
//this could return anything like "4 + 4 = 4098
//now how did that happen?
|
|
#5
|
|||
|
|||
|
Re: Error Message
The syntax error has already been pointed out. Damian was just pointing out a much harder to find logic error.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|