View Full Version : Can't compile and link LIBCONIO (conio.h)

March 4th, 2005, 04:37 AM
Hello, recently I installed the libconio library. I have conio.h in /usr/include/ and libconio.la and libconio.a in /usr/lib/. When I tried to compile it said that there was an undefined reference to whatever function i tried. After that I saw on some websites that maybe I should try -lconio, so i did that this is how i compiled it:
gcc -c "prueba.c" -o "prueba.o" -lconio
but this didn't work, gcc showed an error that said that it couldn't link. So, how can i link gcc to conio library?, or is everything wrong?, I hope you can help me.
thank you

March 4th, 2005, 08:34 AM
You need to have libconio.so. See if there is a conio-dev package or something like that.

March 4th, 2005, 09:13 PM
Where can i find them?

March 4th, 2005, 10:51 PM
I don't know. Where did you get libconio from? I found a website at conio.sf.net, but it looks like it's only for Windows or DOS . . .

What's it for?

March 5th, 2005, 12:14 AM
from here http://sourceforge.net/projects/libconio/ it says it's an implementation for linux

March 5th, 2005, 12:43 AM
Sorry, my bad, libconio.a is right, you only need libconio.so if you are dynamically linking.

What's the exact error from gcc?

March 5th, 2005, 07:13 PM
ok, i made it work finally. i added the -lconio next to LDFLAGS.
thanks a lot toojays.

March 10th, 2005, 10:41 PM
for future reference libwine provides conio.h and it's installable though apt:

apt-file search conio.h
libwine-dev: usr/include/wine/msvcrt/conio.h

March 11th, 2005, 08:35 AM
Ah, but that conio is specific to Wine, or at least to the Windows API. dekae was talking about a version for GNU.

March 5th, 2008, 09:27 PM
ppl i want to use graphics of turbo c on linux and i hav started hating windows

can any 1 please help me .... i want to know how to use graphics.h header file on gcc compiler net aint giving proper answer