I'm trying to write a simple code to read in a .PGM file. The code I wrote is
#include "./netpbm/lib/pgm.h"
#include <stdio.h>
typedef unsigned int gray;
int main(int argc, char* argv[]){
gray Maxval;
gray* Img[];
int row, col;
FILE *fp;
fp = fopen("barcode.PGM", "r");
pm_proginit(0, &argv[0]);
&Img[0] = pgm_readpgm(fp, &col, &row, &Maxval);
}
it outputs error: storage size of 'Img' isn't known
any debugging suggestions?