简体   繁体   中英

there is an error with compilation of graphics.h

I downloaded header files and library files for DevC++. After placing the right thing in right place, there is error in compilation with graphics.h. -Well this is the error I copied

" 302   27  C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h   [Note] 'int right' previously declared here"

void printimage(
    const char* title=NULL, 
    double width_inches=7, double border_left_inches=0.75, double border_top_inches=0.75,
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX,
    bool active=true, HWND hwnd=NULL
    );

您要两次声明一个具有相同名称(右)的整数,彼此紧接着:

int right=0, int right=INT_MAX

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM