I finally found the answer also thank you mr chippies : how ever your advise helped me more i used this make file : PROJ=qwerty_mehdi CC=mingw32-gcc CFLAGS=-Wall LIB=-lOpenCL ifdef AMDAPPSDKROOT INC_DIRS="$(AMDAPPSDKROOT)include" LIB_DIRS="$(AMDAPPSDKROOT)lib\x86" else ifdef NVSDKCOMPUTE_ROOT INC_DIRS="$(NVSDKCOMPUTE_ROOT)\OpenCL\common\inc" LIB_DIRS="$(NVSDKCOMPUTE_ROOT)\OpenCL\common\lib\Win32" endif endif $(PROJ): qwerty.c $(CC) $(CFLAGS) -o $@ $^ -I$(INC_DIRS) -L$(LIB_DIRS) $(LIB)
and also deleted this line : #include
and after this the .exe was made successfully
in the lines of make file code the qwerty.c is the codes i explained before .