Linker error using Dev-C++
Hi everyone,
I am trying to compile a program i have written for college, but i keep getting a linker error as follows:-
[Linker error] undefined reference to `gotoxy'
[Linker error] undefined reference to `clrscr'
I am using Dev-C++ compiler
I use borland turbo at college and the program runs fine,
does anybody know how i can resolve this
Thanks
Re: Linker error using Dev-C++
Quote:
Originally posted by boontune
[Linker error] undefined reference to `gotoxy'
[Linker error] undefined reference to `clrscr'
does anybody know how i can resolve this
Sure, define 'gotoxy' and 'clrscr' like your compiler tells you. In other words, this is what happens when you use non-ANSI functions and you move to another compiler. Welcome to the wild world of "portability". You've just had your first lesson, given to you by your compiler.
Quzah.