Hi,
Any one can help me find out, why I got the error on this program please.
attached my source code.
Printable View
Hi,
Any one can help me find out, why I got the error on this program please.
attached my source code.
#include "stack.h"
#include "fileio.c"
#include "stack.c"
#include "string.c"
are these files standard?? i dont seem to have them.
What error? Be a bit more specific...
They the stack.h string.h and fileio.h are standard headders.Quote:
Originally posted by GhOsT_DeStRoYeR
#include "stack.h"
#include "fileio.c"
#include "stack.c"
#include "string.c"
are these files standard?? i dont seem to have them.
Including .c files usualy makes compiers not very happy.
Why are you including the .c files any ways..
And the #include "" will include a non-standard headder
I would relace the #include ""'s with
#include <stack.h>
#include <fileio.h>
#include <string.h>
HTH
Maybe the Posix standard, but certainly not the C standard. The C standard library only uses string.h from that list.Quote:
They the stack.h string.h and fileio.h are standard headders.
Yea, including source files is a bad idea. Linking isn't done with the preprocessor. :)Quote:
Including .c files usualy makes compiers not very happy.
I though that fileio was standard for C++. But then I dont code in C++ so Im not farmilar with the C++ standard libs. The title of the thread is why I looked included the fileio.h
Thanks