Problem With programming in Linux, Missing Libraries
Ok, I have a rather simple problem, I need to write a program (to be used in my electronics project) that uses the LPT Port for communication and control however theres a serious problem with it I need it to be working on a standard Windows machine by using Borland C (So no special Libraries) however Since I do not have a Windows machine I can only write and test it on my Debian Etch box... and here start the problem of the missing Libraries I wrote a program and immediately I gotten a swarm of error, all of them are missing libraries and their functions being undefined. The missing libraries are: conio.h , dos.h , bios.h and graphics.h the commands that I need inside of them are textcolor , textbackground , clrscr , inp(ever though iostream IS included) and delay. So what do I do about the missing libraries? is there any way possible to add them to the Linux machine or am I forced to use a Windows machine to compile and test the program
|
most of these headers aren't "missing" they are simply dos only headers. a name like dos.h should give it away don't you think!? :) there are plenty of examples available online that i'm sure ou could track down via google. i remember one mini project called parapin which could be very easily pulled apart to see a simple exampleof parallel port interaction.
|
What you are attempting to do is certain to be non-portable. Virtually any time you need to access hardware directly, it will be non-portable.
Your best solution is to get a Windows box and Borland C compiler. Don't waste your time trying to write that kind of code on linux with any hope of portability to Windows. Using Linux to learn how the hardware actually works would still be a useful effort, if that is the objective of the project. Linux has a few levels of code abstracting the parallel port, but I doubt that any of them are replicated in Windows. --- rod. |
ok so if I understood correctly theres no way to replicate the missing libs into Linux... well certainly no surprise since it is meant to work on a windows machine (that I don't have :P). guess theres no real other way to make sure the program is compilable.... well thanks anyways :)
|
Quote:
|
I've been working on the same thing.
As far as I know ,if you are using the inb() and outb() functions they won't work on windows xp because xp will not access the hardware directly. Just thought i'd mention it before you start installing anything. |
Quote:
and thats for the tip 95se ;) I'll probably do that assuming I could get a Compatible Borland Compiler |
All times are GMT -5. The time now is 11:23 AM. |