Re: gcc -c -g test5 -o test5 ...
Jens.Toerring_at_physik.fu-berlin.de
Date: 10/06/03
- Next message: Wolfgang Riedel: "Re: C or C++ multithreaded server code"
- Previous message: Mylinux: "gcc -c -g test5 -o test5 ..."
- In reply to: Mylinux: "gcc -c -g test5 -o test5 ..."
- Next in thread: mcBPqVC: "Re: gcc -c -g test5 -o test5 ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Oct 2003 14:42:51 GMT
Mylinux <myLinux@my.com> wrote:
> root@home BLCD]# gcc test5.c test5
> gcc: test5: No such file or directory
That's because you need
gcc test5.c -o test5
> test5.c:9:17: dos.h: No such file or directory
> test5.c: In function `main':
> test5.c:21: warning: return type of `main' is not `int'
That's easy to repair, use
int main( void )
(and don't forget to add a return statement).
> [root@home BLCD]#
> I added this "/* in the left hand corner of the first line but I have the
> above error.
> what is happened. dos.h is found in the linux box.
But your real problem is going to be that normal programs can't directly
access the hardware - just having a dos.h file won't help you there.
For a start read the man pages about ioperm(), inb() and outb() and
then ask yourself if it's really worth the hassle. And after having a
very short look at the program I rather doubt that this will do you
hope for. Is the device connected to the serial port (that's what
usually is at address 0x378) or to the printer port (that's what the
comments seem to indicate)?
Regards, Jens
--
_ _____ _____
| ||_ _||_ _| Jens.Toerring@physik.fu-berlin.de
_ | | | | | |
| |_| | | | | | http://www.physik.fu-berlin.de/~toerring
\___/ens|_|homs|_|oerring
- Next message: Wolfgang Riedel: "Re: C or C++ multithreaded server code"
- Previous message: Mylinux: "gcc -c -g test5 -o test5 ..."
- In reply to: Mylinux: "gcc -c -g test5 -o test5 ..."
- Next in thread: mcBPqVC: "Re: gcc -c -g test5 -o test5 ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|