I'm creating a code to create a mouse pointer in order to crop part of an image and it keeps coming up with the error message "expected unqualified-id before "{" token." This is the part of the code it relates to
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "cv.h"
#include "highgui.h"

int main(int argc, char **argv);
{{
IplImage* img = 0;
int height,width,step,channels;
uchar *data;
int i,j,k;

if(argc<2){
printf("Usage: main <image-file-name>\n\7");
exit(0);
}

// load an image
img=cvLoadImage(argv[1]);
if(!img){
printf("Could not load image file: %s\n",argv[1]);
exit(0);
}
and it relates to the brackets in bold.
Does anyone have any idea why this error has arisen?
Thanks.