warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
I have created a vector (vectorR) of ints using shared memory in Linux, the code is as follows: int shmidR, tamR; tamR = fil*col2; int *vectorR[tamR]; // Creating the vector shmidR = shmget(IPC_PRIVATE, sizeof(int)*fil*col2, IPC_CREAT|0666); vectorR[tamR] = (int*) shmat(shmidR, NULL, 0); Then I operate on this vector and at the end i want to print… Read More warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]