I have written a big program.. In it i have this line of code
line 569 :
Code:
if(!isascii((int)(currentChar->data))) {
I tired compiling my program in unix using a make file.
my makefile is
Code:
all: main.o FileADT.o
gcc -o run main.o FileADT.o
FileADT.o: FileADT.c FileADT.h
gcc -Wall -ansi -pedantic -c FileADT.c
main.o: main.c FileADT.h
gcc -Wall -ansi -pedantic -c main.c
clean:
rm FileADT.o main.o
where fileADT.c is the codes for the program. main.c is like a driver program. and the run is the command /object file that runs the program.
The FileADT.h,header file had the following
Code:
#include <stdlib.h> #include <string.h> #include <stdio.h>
#include <ctype.h>
when i compile in unix using make, i get this error:
line 569: warning: implicit declaration of 'isascii'
i suspect i have missed out something in the header file or in the make file. Would be great if someone can help.
Wanting to just get rid of that warning and wonder if some1 can spot the BUG.
The whole file is here
www.geocities.com/rahulsk1947/program.zip
it can run in unix enviorment.type make to compile
and type 'run input output' to execute the program.