You have to pass to the linker the options -lgdi -lbgi -mingw32 (I think
this is the order you have to pass, I remember there was an order needed
for those arguments, but I'm not sure about what it was). I deleted all
the projects I did using it, so I cannot open one to check it.
If that's not the problem try including conio.h either before or after
winbgim.
What I remember of when I used this is that sometimes it worked adding
conio after or before, or not adding, adding or not some library
options... it was a bit of mess.
neo wrote:
>when i run the program as below,there are so many errors,i have downloaded
>the CLGdiDevpak through webupdate.i really found some mistakes in the header
>file <winbgi.h>,but after i correct there basic mistakes and compile it ,there
>are still errors.this time i don't know what i should do.the program as
>following:
>
>/* name.c ... this program is quoted from Dev-cpp/Templates/consoleGdi*/
>
>#include <winbgim.h>
>
>main()
>
>{
>
> initwindow(640,480);
>
> setcolor(WHITE);
>
> circle(320,240,100);
>
> getch();
>
> closegraph();
>
> return 0;
>
>}
>
>what can i do ?i am learning C language by myself,so please say it clearly.thx
>thx thx thx thx thx thx thx thx thx....................
>
>
>
>
>
>
>--http://www.eyou.com
>--稳定可靠的电子信箱 语音邮件 移动书签 日历服务 网络存储...亿邮未尽
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The SF.net Donation Program.
>Do you like what SourceForge.net is doing for the Open
>Source Community? Make a contribution, and help us add new
>features and functionality. Click here: http://sourceforge.net/donate/
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|