This is the full error that I get when trying to compile:
C:\Users\avrlsngh\AppData\Local\Temp\ccGLqeDo.o gotoxy.c:(.text+0x18): undefined reference to `gotoxy'
This is the full error that I get when trying to compile:
C:\Users\avrlsngh\AppData\Local\Temp\ccGLqeDo.o gotoxy.c:(.text+0x18): undefined reference to `gotoxy'
This is a linker error.
gotoxy()
is Turbo-C not C. So the function is simply not available with the environment, compiler, libraries you use.
The code uses a function (gotoxy()
here) it does not define itself. So the compiler/linker tries to resolve it during linkage but cannot find it in any object file and/or library specified.