any good c programming books
Quote from: jerzee on August 05, 2010, 09:52:33 PM
C:\Users\jason\Documents\Pelles C Projects\loop\loop.c(1): fatal error #1035: Can't find include file "randomcard.h". does any one know what this means and how do i fix it he is the code
#include "randomcard.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
It means, what the message says, the compiler can't find the include file "randomcard.h". The compiler searches for this file in the directory where your source code is.
Have you create a header file "randomcard.h"?
Quote from: jerzee on August 06, 2010, 03:56:10 PM
how do i create a header file for randomcard.h?
You need to write the function randomcard(), which you use in your source code and the prototype should be in randomcard.h.
Hi jerzee,
Just check the include files of Pelles C to learn how to write header files.
Quotein c pelles i cant find randoncard.h in the library
You can't. It isn't Pelles C header file. You have to write your own.
Create new file and save it as randomcard.h .
Quote from: jerzee on August 06, 2010, 08:16:46 PM
in c pelles i cant find randoncard.h in the library and i dont know how to add it or even come close to adding it
I assume that the program is not yours. So look for the content of randomcard.h and the function randomcard() at the same source where you found the rest.