I have a problems with the 'readimagefile' function in DEV C ++.
It replies undefined reference to readimagefile
in compiling.
I use graphics.h
library and TDM-GCC 4.9.2 32-bit Realise,
all compiler parameters and linkers are fine, also the initwindow
function works but the compiler error persists.
This is my code, which is just a try to test some instructions:
#include<iostream>
#include<cstdlib>
#include<graphics.h>
using namespace std;
int main(){
DWORD screenWidth=GetSystemMetrics(SM_CXSCREEN);
DWORD screenHeight=GetSystemMetrics(SM_CYSCREEN);
initwindow(screenWidth, screenHeight);
setbkcolor(1);
cleardevice();
setcolor(14);
ellipse(400,150,0,180,190,100);
readimagefile("Ponte.jpg",0,0,800,600);
while(!kbhit());
getch();
closegraph();
return 0;
}