linker error

August 17, 2010 at 05:27:08
Specs: Windows 7
I'm using Borland Turbo C++ (3.0) and it'll compile a simple hello world program, but if I try to open a program I created at school - and it worked there - it gives me Linker Error: Undefined symbol line(int int int int) as well as 7 other graphics errors (setcolor, circle, bar, etc). Compiling works fine, but running/making does not. Any detailed help would be appreciated.

See More: linker error

Report •

August 20, 2010 at 10:00:00
You're using TC++ 3.0 at home, but what did you use at school? If it's a different brand of compiler, or even a different version of TC++, you're likely to encounter differences in the libraries. That would explain why the graphics errors -- the two compilers have their own, incompatible, libraries (there is no widely accepted C/C++ graphics library standard). You'll just have to rewrite the code to use TC++'s graphics calls.

As for the int int int int problem, that could be almost anything. Could 4 "int" declarations have lost their variables and semicolons? You're going to have to do some digging here to get to the bottom of this.

Report •

August 20, 2010 at 10:07:40
Phil Perry: As for the int int int int problem, that could be almost anything.
Look at the error again. It's looking for a function called line that accepts 4 ints.

Report •
Related Solutions

Ask Question