954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Linker Error in Turbo C++ v3.0

Hi Everyone,
I had written the source code in .C file and compile it without any errors but when i run that program it gives me linker error.
i.e.
Linker Error : Undefined Symbol _getmaxx in module filename.c

I am using TURBO C++ version 3.0. Pls give me the solution as earliest as possible.
Thanks in Advances

Manoj Jain.

manoj201jain
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

It means that it cant find the required function or the function defination in your file. Is that function present within your .c file ?

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

and why are you using a 20 year old compiler?

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
and why are you using a 20 year old compiler?


Pssst..dont let Mr. WaltP hear about that....:cheesy:

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 
and why are you using a 20 year old compiler?
Pssst..dont let Mr. WaltP hear about that....:cheesy:

:mrgreen:

I'll bet it's because the instructor is a relic of the 80's and refuses to update his knowledge so his students can program in today's market. Especially since 15 years ago Borland removed graphics from the compiler and all the Borland-specific functions that he's teaching. So hemust use an old compiler -- he doesn't want competition if he ever decides to go back to the industry :rolleyes:

manoj201jain, you have to compile the program with the graphics library graphics.lib on the build line and include graphics.h in the code.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

I'm a relic from the '80s as well, nothing wrong with relics.
Most of us have a fair number of faithful followers who really believe in our powers, or at least are admired for our beauty :)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
I'm a relic from the '80s as well, nothing wrong with relics. Most of us have a fair number of faithful followers who really believe in our powers, or at least are admired for our beauty :)

That's true. I myself predate the PCand C. But it's the relics that are teaching hieroglyphic era code rather than today's concepts that does neither the industry nor the students any good.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

if it means a lower influx of lowgrade people at the lower end of the industry it might actually help.
The flood of underqualified people entering programming jobs in the late 1990, lured by lucrative contracts to fix Y2K (and in Europe Euro) related problems is still harming the labour market.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
Pssst..dont let Mr. WaltP hear about that....:cheesy:

maybe his teacher told him to do so. in my school we also use turbo c++

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 
Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.

don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.


I am afraid, no. It really makes me sad that the level of technical education in programming and software developement is very less or stunted except for a handful of universities and which require exceptionally good grades.

All the professional developers here have either learnt programming from good text books on their own or those who visit forums (like me) or both.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 
don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.

When I was in school Google didn't exist :)
But we were already using more modern tools than TC 3...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

HI,
Thanks to Everyone for giving me the solution. Please Let me Know Should i used Borland or MS VC++ for compling this code.

manoj201jain
Newbie Poster
5 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Which code ? Can you post it here if it is relevant.

BTW if you have access to MS Visual Studio and if your code doesn't use Borland specific drawing functions, then I would recommend you use Visual Studio.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 
HI, Thanks to Everyone for giving me the solution. Please Let me Know Should i used Borland or MS VC++ for compling this code.


Either. Both have their good and bad points. I personally use Borland 5.5 but I'm very used to the command line. Bloodshed DevC is also good. If you already have M$, that will work fine.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 
Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.

Well, before starting c++ our teacher told us about different compilers too. they said that they will make us work with turbo c++. infact every school uses it. heaven knows why. maybe they dont want to spend thousands of dollers on MS VS. but i personally use MSVC++ or UEStudio which supports almost all compilers.don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers. why??? oh yeah, why??I am afraid, no. It really makes me sad that the level of technical education in programming and software developement is very less or stunted except for a handful of universities and which require exceptionally good grades.
All the professional developers here have either learnt programming from good text books on their own or those who visit forums (like me) or both. damn right! i too learned myself.
thatz y i want to get into IIT:cheesy:

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

reply:::I got same problem.I resolve it........

1.Save the required file as cpp file.(eg...code.cpp)
2.Include graphics header files
#include
#include
3.see ur main() (important step)
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\Tc\\BGI");
(after installation of turboc++3,u got BGI file.u have to provide path as in ur system)
4.Last step
Goto options->Linkers->Libraries->put ''X'(click) for Graphics library and standard run time. others should be blank.
5.Now execute the program,it really works.
---sagar reply

hsagar22
Newbie Poster
2 posts since Feb 2010
Reputation Points: 5
Solved Threads: 0
 

Hi ,
i write the code in turbo c and i m face same problem then plz tell me how to resolve this problem
i.e.
Linker Error : Undefined Symbol _initgraph in module graph

archita jain
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 
Hi Everyone, I had written the source code in .C file and compile it without any errors but when i run that program it gives me linker error. i.e. Linker Error : Undefined Symbol _getmaxx in module filename.c I am using TURBO C++ version 3.0. Pls give me the solution as earliest as possible. Thanks in Advances Manoj Jain.


me too same problem

vishuk93
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You