Hello everyone,
I would like to do image processing in C++ in eclipse and I wanted to test a simple code on a data of type .tif. My image name is "V.tif", I declared it in the argument configuration (see joint image: config_argument). Here's my code:
int main(int argc, char **argv)
{
for(int i=0;i<100;i++)
{
printf("V[%d] is %.5g \n",i,V[i]);
}
return 0;
}
and here are the errors that I have:
make all
g++ -c weights.cpp -o weights.o -g -O3 -funroll-loops -fomit-frame-pointer -ffast-math -ftree-vectorize -Wall -Wextra -Wno-write-strings -Wno-deprecated -fopenmp -I/usr/local/include/
weights.cpp: Dans la fonction 'int main(int, char**)':
weights.cpp:110:31: erreur: 'V' was not declared in this scope
weights.cpp: At global scope:
weights.cpp:102:5: attention : unused parameter 'argc' [-Wunused-parameter]
weights.cpp:102:5: attention : unused parameter 'argv' [-Wunused-parameter]
make: *** [weights.o] Erreur 1
Makefile:25 : la recette pour la cible « weights.o » a échouée
So according to the error "V" is not recognized, should I change the format of "V"? Is there something else to do in terms of configuration of the argument line ?
Thanks in advance for your help.
-J
[Updated on: Tue, 05 December 2017 05:24] by Moderator