Linker Error Undefined Symbol _closegraph In Module
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads how to solve linker error in c with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the linker error undefined symbol in c Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: linker error undefined symbol in module Sign up Linker error in C. while using
Linker Error Undefined Symbol _printf In Module
} It compiles without any errors and warning. But when I run the program the following errors are displayed Linker Error: Undefined symbol_closegraph in module G1.C Linker Error: Undefined symbol_initgraph in module G1.C note : The BGI folder is in the path D:\TC\ How can I solve the problem, please help me so I could begin useing graphics in C. c++ c linker turboc++ share|improve this question edited Jan 14 '14 at 10:34 asked Jan 14 '14 at 10:23 MELWIN 4082717 3 linker error unable to open file tclass lib You need to link against graphics.lib, and you should probably consider switching to a more recent compiler –Andreas Fester Jan 14 '14 at 10:27 Please edit the title and add Turbo C to it. –adrin Jan 14 '14 at 10:31 thankyou. editted –MELWIN Jan 14 '14 at 10:36 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted If you are using Turbo C .. just need to check one option: Go to Options->Linker->Libraries and check the Graphics Library option share|improve this answer edited Oct 7 '15 at 16:22 Morgan Thrapp 5,61121946 answered Jan 14 '14 at 10:26 Digital_Reality 3,1221916 3 hahahaha, love that you remember this, lol. Apparently people still use TC, Borland should be proud :P –adrin Jan 14 '14 at 10:31 @adrin yeah.. stopped using this now but I know I too got trouble using it :D –Digital_Reality Jan 14 '14 at 10:32 @Digital_Reality:sad no one find this question useful... :( thank you for the answer sir :) –MELWIN Jan 14 '14 at 10:39 @Digital_Reality sir in output i got the message " Graphics not initialized use ('initgraph') . What should I do ??? –MELWIN Jan 14 '14 at 10:43 @MELWIN Err.. time changes buddy! :) We have to stick to it.. Anyway when are you moving to new compiler? :D –Digital_Reality Jan 14 '14 at 10:44 | show 1 more comment Your Answer d
a Question Need help? Post your question and get tips & solutions from a community of 418,582 IT Pros & Developers. It's quick & easy. Linker Error: Undefined symbol _closegraph how to remove linker error in c in module GRAPHEX.cpp P: n/a nicholas.fodor I get the above message 9 times when
C++ Linker Error Undefined Symbol In Module
I'm trying to run my graphics code. I get it for: _closegraph _outtextxy _drawpoly _sector _line _ellipse _rectange _circle _initgraph I
Bgi Error Graphics Not Initialized
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 http://stackoverflow.com/questions/21111065/linker-error-in-c-while-using-graphics-h-turbo-c 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 https://bytes.com/topic/c/answers/455865-linker-error-undefined-symbol-_closegraph-module-graphex-cpp 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 an
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job https://www.experts-exchange.com/questions/20917125/Compile-successfull-linking-unsuccessfull.html Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Compile successfull, linking unsuccessfull Want to Advertise Here? Solved Compile successfull, linking unsuccessfull Posted on 2004-03-12 C 2 Verified Solutions 18 Comments 3,103 Views Last Modified: 2012-08-14 I am sure I am doing something basic wrong here. I linker error downloaded the turbo c compiler. I then compiled the source code that I had (posted later in the question). I can compile the program correctly, but I cannot create the exe successfully. I get the following errors: C:\tctemp>tcc arjit.c Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International arjit.c: Turbo Link Version 2.0 Copyright (c) 1987, 1988 Borland International Undefined symbol '_outtextxy' in module arjit.c Undefined symbol linker error undefined '_setcolor' in module arjit.c Undefined symbol '_bar' in module arjit.c Undefined symbol '_setfillstyle' in module arjit.c Undefined symbol '_putpixel' in module arjit.c Undefined symbol '_fillellipse' in module arjit.c Undefined symbol '_settextstyle' in module arjit.c Undefined symbol '_rectangle' in module arjit.c Undefined symbol '_grapherrormsg' in module arjit.c Undefined symbol '_graphresult' in module arjit.c Undefined symbol '_initgraph' in module arjit.c Undefined symbol '_closegraph' in module arjit.c I am sure this has something to do with graphics.h or something. Please help Source code #include