Putpixel Error In C
Contents |
module It means that you have not enabled the graphics library for linking. By default this setting is
Bgi Error Graphics Not Initialized
OFF when you install Turbo C++ version 3.0. All you need to do is, from turbo c++ menu, goto Options -> Linker -> Libraries... and check the Graphics Library option Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer. Content copyright 2010-2015. Betelgeuse LLC. All rights reserved.
Programming Boards C++ Programming Help with the putpixel function. Getting started with C or C++ | C Tutorial | C++ Tutorial
How To Remove Linker Error In C
| C and C++ FAQ | Get a compiler | Fixes for linker error undefined symbol _printf in module common problems Thread: Help with the putpixel function. Thread Tools Show Printable Version Email this Page… Subscribe to this linker error unable to open file tclass lib Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-12-2003 #1 EliasK View Profile View Forum Posts Registered User Join Date Mar 2003 Posts 9 Help with the http://www.softwareandfinance.com/Turbo_C/Graphics_initgraph.html putpixel function. I am using the Borland C++ 3.1 (quite old, eh?). Anyway I wish to display some pixels on the screen and I use the putpixel function of the graphics.h library. I only use the function once in the following part of the code: if ((z.real)>2)||(z.imag<(-2))){ putpixel (c.real,c.imag,15); continue; }; When I link the code I get a linker error that http://cboard.cprogramming.com/cplusplus-programming/35918-help-putpixel-function.html the _putpixel symbol is undefined in the mandel.cpp module (the filename of my program). I don't seem to understand this error message. I have used the #include
graphics.h » putpixel function in c putpixel function in c http://www.programmingsimplified.com/c/graphics.h/putpixel putpixel function plots a pixel at location (x, https://bytes.com/topic/c/answers/455865-linker-error-undefined-symbol-_closegraph-module-graphex-cpp y) of specified color. Declaration :- void putpixel(int x, int y, int color); For example if we want to draw a GREEN color pixel at (35, 45) then we will write putpixel(35, 35, GREEN); in linker error our c program, putpixel function can be used to draw circles, lines and ellipses using various algorithms. C programming code for putpixel #include
a Question Need help? Post your question and get tips & solutions from a community of 418,626 IT Pros & Developers. It's quick & easy. Linker Error: Undefined symbol _closegraph in module GRAPHEX.cpp P: n/a nicholas.fodor I get the above message 9 times when I'm trying to run my graphics code. I get it for: _closegraph _outtextxy _drawpoly _sector _line _ellipse _rectange _circle _initgraph I do have the graphics.h properly included, and directed too and the .h is in it's proper location. Any ideas? Feb 10 '06 #1 Post Reply Share this Question 5 Replies P: n/a Default User ni************@gmail.com wrote: I get the above message 9 times when I'm trying to run my graphics code. I get it for: I do have the graphics.h properly included, and directed too and the .h is in it's proper location. Any ideas? Header files don't provide implementation (usually). You are missing one or more libraries that need to be included in your build. The specific libraries and how they are included are off-topic here. Brian -- Please quote enough of the previous message for context. To do so from Google, click "show options" and use the Reply shown in the expanded header. Feb 10 '06 #2 P: n/a nicholas.fodor I have my graphics.lib and my Egavga.bgi both properly directed to in C:\TC\LIB and C:\TC\BGI respectively. Stil the same error messages. Have tried both on my Windows 95 laptop and WIndows XP pc. No help. Feb 10 '06 #3 P: n/a Victor Bazarov ni************@gmail.com wrote: I get the above message 9 times when I'm trying to run my graphics code. I get it for: _closegraph _outtextxy _drawpoly _sector _line _ellipse _rectange _circle _initgraph I do have the graphics.h properly included, and directed too and the .h is in it's proper location. Any ideas? Have you tried adding the library where all those functions are to the linker command line? No, I don't know how to do that, and neither does anyone else here. Please ask in the newsgroup dedicated to your compiler. V -- Please remove capital As from my address when replying by mail Feb 10 '06 #4 P: n/a Default User ni************@gmail.com wrote: I have my graphics.lib and my Egavga.bgi both properly directed to in C:\TC\LIB and C:\TC\BGI respectively. Stil the same error messages. Have tried both on my Windows 95 laptop and WIndows XP pc. No help. Did you miss the part about it bein