Problem with BGI Graphics Library!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
drawing.obj : error LNK2019: unresolved external symbol _showerrorbox referenced in function "struct WindowData * __cdecl BGI__GetWindowDataPtr(struct HWND__ *)" (?BGI__GetWindowDataPtr@@YAPAUWindowData@@PAUHWND__@@@Z)
drawing.obj : error LNK2001: unresolved external symbol "class std::vector<struct HWND__ *,class std::allocator<struct HWND__ *> > BGI__WindowTable" (?BGI__WindowTable@@3V?$vector@PAUHWND__@@V?$allocator@PAUHWND__@@@std@@@std@@A)
drawing.obj : error LNK2001: unresolved external symbol "int BGI__WindowCount" (?BGI__WindowCount@@3HA)
drawing.obj : error LNK2001: unresolved external symbol "int BGI__CurrentWindow" (?BGI__CurrentWindow@@3HA)
drawing.obj : error LNK2019: unresolved external symbol _converttorgb referenced in function _bar
drawing.obj : error LNK2019: unresolved external symbol _moveto referenced in function _cleardevice
drawing.obj : error LNK2019: unresolved external symbol "unsigned short __cdecl DestroyDIB(void *)" (?DestroyDIB@@YAGPAX@Z) referenced in function _writeimagefile
drawing.obj : error LNK2019: unresolved external symbol "unsigned short __cdecl SaveDIB(void *,char const *)" (?SaveDIB@@YAGPAXPBD@Z) referenced in function _writeimagefile
drawing.obj : error LNK2019: unresolved external symbol "void * __cdecl BitmapToDIB(struct HBITMAP__ *,struct HPALETTE__ *)" (?BitmapToDIB@@YAPAXPAUHBITMAP__@@PAUHPALETTE__@@@Z) referenced in function _writeimagefile
main.obj : error LNK2019: unresolved external symbol _outtextxy referenced in function "void __cdecl intrface(void)" (?intrface@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol _getmouseclick referenced in function _main
main.obj : error LNK2019: unresolved external symbol _ismouseclick referenced in function _main
main.obj : error LNK2019: unresolved external symbol _initwindow referenced in function _main
main.obj : error LNK2019: unresolved external symbol _setfillstyle referenced in function "public: virtual void __thiscall Fill::FillShape(int,int,int)" (?FillShape@Fill@@UAEXHHH@Z)
C:\Documents and Settings\Muhammad\my documents\visual studio 2010\Projects\Paint Project\Debug\Paint Project.exe : fatal error LNK1120: 14 unresolved externals


I am making project with BGI but when i use functions of graphics.h library above errors happened. Looks like my LINKER could not attach them to my usage of them. Any one help?
You probably need to add it as a link library. If you don't know how, you can always Google. If you have, its probably just because of how old BGI is - it might not work anymore. I mean, its a graphics library for the DOS operating system...
Topic archived. No new replies allowed.