I use the snprintf function in my code.I get an implicit declaration of snprintf warning.
1)What should I do to remove this warning?
2)What are the reasons for such warning in general?
3)What does this warning mean?
I use the snprintf function in my code.I get an implicit declaration of snprintf warning.
1)What should I do to remove this warning?
2)What are the reasons for such warning in general?
3)What does this warning mean?
4) Where is your code?
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
I dont have the code right now.Could you please tell me the resons why these warning occur?
It means the function is not included in the c headers that you are ummm including. Or you didn't define the function at the beginning of your code. Or you spelled it wrong. Lets just see the code.
It means your first use of the snprintf function does not agree with another following usage in terms of paramters, more generally, this is most likely a symptom of having not included <stdio.h>
Last edited by @nthony; 04-02-2007 at 09:39 PM.
snprintf is C99 (in stdio.h) -- or some extension to C90.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*