You are here:

C/Graphics related error in turbo c++

Advertisement


Question
error
error  
QUESTION: Hello Sir,

I was trying some graphics under C++ Programming Language. Whenever I compile any program (graphical), it shows no error at all. But when I try to run it, it gives me a lot of errors (Linker Error) similar to "Undefined symbol _initgraph in module filename.c" I am using Turbo C++ v3.0 in Windows 7 with dosbox 0.74. What is creating these errors and how to get rid of it?

Regards,
Shweta

ANSWER: Hai Dear Swetha,,

Sorry for the bit of delay in responding your question, well I have already answered similar kinda question .. please go over to the following link

http://en.allexperts.com/q/C-1587/2011/6/graphics-under-c.htm

the above solution which in turn have a link to another solution .. I am sure you don't want to download and re-install your TC Compiler .. its just the matter of missing some Directory setting which is something I have clearly defined in the solution .. hope this helps ..

Let me know you sill have trouble with your graphics programs

Thanks and Regards
Prince M. Premnath

---------- FOLLOW-UP ----------

QUESTION: Sir

Thanks a lot for your help..!!!

But sir after changing my setting for graphics thing, there are no errors coming but now i am not able to get the output screen in that dosbox. sir plz help!!

Regards
Shweta

Answer
Hi Shweta,
Sorry for the bit of delay in responding your query :( .. but of busy .. fine ... If you didn't get any error's then its a good news .. if your program compiles and executes without any issues then there is no worries further..

you might want add a piece of code to freeze your screen to see the result .. add the header file #include<conio.h> and the getch() function just before the last line of your program typically before the closing brace "  } "

Hope this helps .. please get back to me with Ur code .. if you still have trouble ,,

Thanks
Prince M. premnath  

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise


I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements

Experience

Research over 6+ Years

Organizations
CG-VAK Softwares and Exports Limited

Education/Credentials
Masters in Computer Applications

©2012 About.com, a part of The New York Times Company. All rights reserved.