

Printf("\n\n\t\t\t\tWELCOME TO C PROGRAM ON FIFO \n") function main is in separate c file named main.c function display is in separate c file named display.c function delete is in separate c file delete.c Printf("\n\t\t\t\tEnter the element you wish to add into queue: ") function add is in separate c file named add.c function create is in separate c file named create.c Printf("\n\n\t\t\t\tDisplay of current elements in queue: ") ĭisplay.c:10:3: note: include ‘’ or provide a declaration of ‘printf’ĭisplay.c:11:24: error: ‘left’ undeclared (first use in this function) Printf("\n\n\t\t\t\tEmter elements to array to be displayed here!") ĭisplay.c:6:3: warning: incompatible implicit declaration of built-in function ‘printf’ĭisplay.c:6:3: note: include ‘’ or provide a declaration of ‘printf’ĭisplay.c:10:3: warning: incompatible implicit declaration of built-in function ‘printf’ Deleted item: %d", holder) ĭelete.c:11:3: note: include ‘’ or provide a declaration of ‘printf’ĭelete.c:13:15: error: ‘left’ undeclared (first use in this function)ĭisplay.c:4:6: error: ‘right’ undeclared (first use in this function)ĭisplay.c:4:6: note: each undeclared identifier is reported only once for each function it appears inĭisplay.c:6:3: warning: implicit declaration of function ‘printf’ Please add element before deleting them") ĭelete.c:6:3: warning: incompatible implicit declaration of built-in function ‘printf’ĭelete.c:6:3: note: include ‘’ or provide a declaration of ‘printf’ĭelete.c:10:12: error: ‘numarr’ undeclared (first use in this function)ĭelete.c:11:3: warning: incompatible implicit declaration of built-in function ‘printf’ Printf("\n\n\t\t\t\tERROR! Queue is empty.

Printf("\n\n\t\t\t\tArray has been created with the size of 10 elements") Ĭreate.c:3:2: warning: incompatible implicit declaration of built-in function ‘printf’Ĭreate.c:3:2: note: include ‘’ or provide a declaration of ‘printf’ĭelete.c:4:6: error: ‘right’ undeclared (first use in this function)ĭelete.c:4:6: note: each undeclared identifier is reported only once for each function it appears inĭelete.c:6:3: warning: implicit declaration of function ‘printf’ Printf("\n\n\t\t\t\t*****ADD Menu*****") Īdd.c:3:2: warning: incompatible implicit declaration of built-in function ‘printf’Īdd.c:3:2: note: include ‘’ or provide a declaration of ‘printf’Īdd.c:5:6: error: ‘left’ undeclared (first use in this function)Īdd.c:5:6: note: each undeclared identifier is reported only once for each function it appears inĪdd.c:5:14: error: ‘SIZE’ undeclared (first use in this function)Īdd.c:12:3: warning: implicit declaration of function ‘scanf_s’ Īdd.c:15:3: error: ‘numarr’ undeclared (first use in this function)Īdd.c:16:7: error: ‘right’ undeclared (first use in this function)Ĭreate.c:3:2: warning: implicit declaration of function ‘printf’ Remember that if you put “make -n” you can see the all lines that makefile will executes.Gcc -o prog add.c create.c delete.c display.c main.c In SDK you have a example called dct8x8 with two kernels. #where should file2_kernel go? C/C++ source files (compiled with gcc / c++) How should i modify the makefile?ĮXECUTABLE := my_executable Cuda source files (compiled with cudacc)

So file1.cu has file1_kernel, file2.cu has file2_kernel, both file1.cu and file2.cu share.
#C makefile for multiple files how to
I have used a makefile from SDK to test one of the kernels (it worked fine), but having trouble figuring out how to compile this all with a makefile. I wrote two kernels so far, but they should be launched from different. I am relatively new to CUDA, trying to parallelize kind of a large application that consists of multiple.
