M
Mitas Nikos
I am trying to use the library conio2 and though I have managed with a
few relatively simple examples when i try to compile a program which
conio's function clrscr is not in main() i get an error from the linker.
[Linker error] undefined reference to `clrscr'
ld returned 1 exit status
I include the conio2.h on top of the file where clrscr() fn is.
How do I pass the -lconio parameter when I have multiple files?Isn't it:
gcc -lconio main.c clr_file.c file1.c file2.c ....
Is there a different way?The same thing worked when the whole program
was in one file.
few relatively simple examples when i try to compile a program which
conio's function clrscr is not in main() i get an error from the linker.
[Linker error] undefined reference to `clrscr'
ld returned 1 exit status
I include the conio2.h on top of the file where clrscr() fn is.
How do I pass the -lconio parameter when I have multiple files?Isn't it:
gcc -lconio main.c clr_file.c file1.c file2.c ....
Is there a different way?The same thing worked when the whole program
was in one file.