problem in standard header file <sys/io.h> ?

problem in standard header file <sys/io.h> ?

Post by Bert » Tue, 27 Jun 2000 04:00:00



I have gcc version 2.95.3 (shipped with mandrake 7.1),
when I try to compile a file which includes sys/io.h I get strange problems:

the c-code
=============
#include <sys/io.h>

void main(void)
{
    ;

Quote:}

=============
g++ file.c

result:
In file included from file.c:
/usr/include/sys/io.h: In function "void outl(unsigned int, short unsigned
int)":
/usr/include/sys/io.h:125:parse error before "::"

the piece of code in io.h:
====================
122:extern inline void
123:outl(unsigned short value, unsigned short port)
124:{
125:    __asm__ __volatile__ ("outl %0, %w1::"a" (value), "Nd" (port));
126:}
=====================

Can anybody tell me whats wrong, it is a standard include file?

Regards
Bert

 
 
 

1. include files <sys/ipc.h> and <sys/shm.h>

Hello,
        I'm in the process of getting linux up and going and have just
installed the SLS distrabution (from sunsite).  Anyways I have downloaded
the latest dosemu0.49 and am trying to compile it.  Unfortunately it
expects two files: <sys/ipc.h> and <sys/shm.h>, where can I get these and
any other misc include files that I may need? (They were not obviously
located at sunsite).
        Also I have X running with a microsoft 2 button mouse, how do I
emulate the thrid button?

Hoa Ton-That

PS.  LINUX is much more reliable than i'd hoped :)
--

2. X windows is not happy with my mouse ;-(

3. Kernel include files <sys/socket.h> and <linux/in.h>

4. Redirecting stdout and stderr, and stderr

5. what's in the header file <sys/types.h>

6. date for year 2000 in sunos 4.1.3?

7. Need header file <sys/ptem.h>

8. Automounter not unmounting

9. #define NOERROR in <sys/stream.h> and <arpa/nameser.h>

10. POSIX, ANSI standards and <sys/types.h>

11. Missing header <sys/socketvar.h> ...?

12. Need help with <asm/io.h> include file

13. Missing include file <sys/stdtypes.h>