graphics is not working in dev C++

Hi,
I have download the graphics.h and the libbgi.a files and i gave placed in the path of C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h
and
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\libbgi.a
when i run the following code it is giving me the error saying that c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/libbgi.a when searching for -lbgi

can you tell me how i can solve this?

i have added the linker also.

i M using the decv c++ 5.5.3 version


1
2
3
4
5
6
7
8
9
#include<iostream>
#include<graphics.h>
#include "winbgim.h"
int main()
{
       initwindow(400, 300, "First Sample");
    circle(150,150,50);
getch();
}
Linker tells you that your library is incompatible with it. Either build library yourself (if you have access to source code) or look which commiler it was built with and use that one.
closed account (E0p9LyTq)
Orwell's Dev-C++ is now at version 5.11, 5.5.3 is quite old.

http://orwelldevcpp.blogspot.com/
Topic archived. No new replies allowed.