From: Tahir A. <tah...@ho...> - 2004-12-07 04:00:16
|
Hi Mr Howard Sorry that I did not provide the details. My GCC is 3.3.1 pre Emacs is 21.3.1 player-1.6 Mandrake 9.2.3.3.1-2mdk I have made my own driver based on example driver. I want to use as shared. my file is chair.cc the error message is pasted below. Thanks in advance. Tahir g++ -Wall -fpic -g3 'pkg-config --cflags player' -c chair.cc g++: pkg-config --cflags player: No such file or directory chair.cc:2: error: syntax error before `example' In file included from /usr/include/sys/types.h:266, from /usr/include/sys/param.h:42, from playercommon.h:33, from chair.cc:15: /usr/include/bits/pthreadtypes.h:48: error: 'size_t' is used as a type, but is not defined as a type. /usr/include/bits/pthreadtypes.h:51: error: 'size_t' is used as a type, but is not defined as a type. In file included from /usr/include/sys/param.h:42, from playercommon.h:33, from chair.cc:15: /usr/include/sys/types.h:269: error: syntax error before `}' token In file included from /usr/include/pthread.h:21, from drivertable.h:32, from chair.cc:16: /usr/include/time.h:197: error: syntax error before `(' token In file included from /usr/include/pthread.h:21, from drivertable.h:32, from chair.cc:16: /usr/include/time.h:215: error: syntax error before `(' token In file included from drivertable.h:32, from chair.cc:16: /usr/include/pthread.h:248: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:248: error: syntax error before `)' token /usr/include/pthread.h:252: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:252: error: syntax error before `*' token /usr/include/pthread.h:273: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:273: error: syntax error before `)' token /usr/include/pthread.h:278: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:278: error: syntax error before `*' token /usr/include/pthread.h:285: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:285: error: syntax error before `)' token /usr/include/pthread.h:289: error: type specifier omitted for parameter `size_t' /usr/include/pthread.h:289: error: syntax error before `*' token In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from playerqueue.h:33, from device.h:33, from drivertable.h:33, from chair.cc:16: /usr/include/gconv.h:72: error: type specifier omitted for parameter `size_t' /usr/include/gconv.h:72: error: syntax error before `*' token /usr/include/gconv.h:88: error: type specifier omitted for parameter `size_t' /usr/include/gconv.h:88: error: syntax error before `*' token /usr/include/gconv.h:97: error: type specifier omitted for parameter `size_t' /usr/include/gconv.h:97: error: syntax error before `*' token /usr/include/gconv.h:174: error: 'size_t' is used as a type, but is not defined as a type. In file included from /usr/include/stdio.h:72, from playerqueue.h:33, from device.h:33, from drivertable.h:33, from chair.cc:16: /usr/include/libio.h:350: error: type specifier omitted for parameter `size_t' /usr/include/libio.h:350: error: syntax error before `)' token /usr/include/libio.h:359: error: type specifier omitted for parameter `size_t' /usr/include/libio.h:359: error: syntax error before `)' token /usr/include/libio.h:467: error: syntax error before `(' token In file included from playerqueue.h:33, from device.h:33, from drivertable.h:33, from chair.cc:16: /usr/include/stdio.h:284: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:284: error: syntax error before `,' token /usr/include/stdio.h:290: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:290: error: syntax error before `*' token /usr/include/stdio.h:302: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:302: error: syntax error before `)' token /usr/include/stdio.h:309: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:309: error: syntax error before `)' token /usr/include/stdio.h:351: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:351: error: syntax error before `,' token /usr/include/stdio.h:355: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:355: error: syntax error before `,' token /usr/include/stdio.h:557: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:557: error: syntax error before `*' token /usr/include/stdio.h:560: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:560: error: syntax error before `*' token /usr/include/stdio.h:570: error: type specifier omitted for parameter `size_t' /usr/include/stdio.h:570: error: syntax error before `*' token /usr/include/stdio.h:600: error: syntax error before `(' token /usr/include/stdio.h:606: error: syntax error before `(' token /usr/include/stdio.h:628: error: syntax error before `(' token /usr/include/stdio.h:630: error: syntax error before `(' token In file included from drivertable.h:33, from chair.cc:16: device.h:55: error: `size_t' was not declared in this scope device.h:55: error: syntax error before `,' token device.h:59: error: type specifier omitted for parameter `size_t' device.h:59: error: syntax error before `,' token device.h:62: error: `void Device::SetupBuffers(...)' and `void Device::SetupBuffers(...)' cannot be overloaded device.h:86: error: syntax error before `,' token device.h:89: error: syntax error before `,' token chair.cc:20:24: drivertable.h: No such file or directory In file included from /usr/include/sys/uio.h:29, from /usr/include/sys/socket.h:27, from chair.cc:22: /usr/include/bits/uio.h:45: error: 'size_t' is used as a type, but is not defined as a type. In file included from /usr/include/sys/socket.h:35, from chair.cc:22: /usr/include/bits/socket.h:221: error: 'size_t' is used as a type, but is not defined as a type. /usr/include/bits/socket.h:224: error: 'size_t' is used as a type, but is not defined as a type. /usr/include/bits/socket.h:232: error: 'size_t' is used as a type, but is not defined as a type. In file included from chair.cc:22: /usr/include/sys/socket.h:136: error: type specifier omitted for parameter `size_t' /usr/include/sys/socket.h:136: error: syntax error before `,' token /usr/include/sys/socket.h:143: error: type specifier omitted for parameter `size_t' /usr/include/sys/socket.h:143: error: syntax error before `,' token /usr/include/sys/socket.h:150: error: type specifier omitted for parameter `size_t' /usr/include/sys/socket.h:150: error: syntax error before `,' token /usr/include/sys/socket.h:161: error: type specifier omitted for parameter `size_t' /usr/include/sys/socket.h:161: error: syntax error before `,' token In file included from chair.cc:23: /usr/include/stdlib.h:137: error: syntax error before `(' token /usr/include/stdlib.h:433: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:433: error: syntax error before `)' token /usr/include/stdlib.h:462: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:462: error: syntax error before `,' token /usr/include/stdlib.h:556: error: `size_t' was not declared in this scope /usr/include/stdlib.h:556: error: syntax error before `)' token /usr/include/stdlib.h:558: error: `size_t' was not declared in this scope /usr/include/stdlib.h:558: error: syntax error before `,' token /usr/include/stdlib.h:567: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:567: error: syntax error before `)' token In file included from /usr/include/stdlib.h:578, from chair.cc:23: /usr/include/alloca.h:33: error: `size_t' was not declared in this scope /usr/include/alloca.h:33: error: syntax error before `)' token In file included from chair.cc:23: /usr/include/stdlib.h:583: error: `size_t' was not declared in this scope /usr/include/stdlib.h:583: error: syntax error before `)' token /usr/include/stdlib.h:588: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:588: error: syntax error before `,' token /usr/include/stdlib.h:739: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:739: error: syntax error before `,' token /usr/include/stdlib.h:743: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:743: error: syntax error before `,' token /usr/include/stdlib.h:812: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:812: error: syntax error before `)' token /usr/include/stdlib.h:815: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:815: error: syntax error before `)' token /usr/include/stdlib.h:819: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:819: error: syntax error before `)' token /usr/include/stdlib.h:822: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:822: error: syntax error before `)' token /usr/include/stdlib.h:830: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:830: error: syntax error before `)' token /usr/include/stdlib.h:834: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:834: error: syntax error before `)' token /usr/include/stdlib.h:841: error: syntax error before `(' token /usr/include/stdlib.h:844: error: syntax error before `(' token /usr/include/stdlib.h:906: error: type specifier omitted for parameter `size_t' /usr/include/stdlib.h:906: error: syntax error before `)' token In file included from /usr/include/sys/unistd.h:1, from chair.cc:27: /usr/include/unistd.h:312: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:312: error: syntax error before `)' token /usr/include/unistd.h:318: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:318: error: syntax error before `)' token /usr/include/unistd.h:328: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:328: error: syntax error before `,' token /usr/include/unistd.h:336: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:336: error: syntax error before `,' token /usr/include/unistd.h:356: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:356: error: syntax error before `,' token /usr/include/unistd.h:360: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:360: error: syntax error before `,' token /usr/include/unistd.h:448: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:448: error: syntax error before `)' token In file included from /usr/include/sys/unistd.h:1, from chair.cc:27: /usr/include/unistd.h:538: error: syntax error before `(' token /usr/include/unistd.h:713: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:713: error: syntax error before `)' token /usr/include/unistd.h:738: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:738: error: syntax error before `)' token /usr/include/unistd.h:767: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:767: error: syntax error before `)' token In file included from /usr/include/sys/unistd.h:1, from chair.cc:27: /usr/include/unistd.h:789: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:789: error: syntax error before `)' token /usr/include/unistd.h:796: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:796: error: syntax error before `)' token /usr/include/unistd.h:806: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:806: error: syntax error before `)' token /usr/include/unistd.h:807: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:807: error: syntax error before `)' token /usr/include/unistd.h:824: error: type specifier omitted for parameter `size_t' /usr/include/unistd.h:824: error: syntax error before `,' token In file included from chair.cc:28: /usr/include/arpa/inet.h:78: error: type specifier omitted for parameter `size_t' /usr/include/arpa/inet.h:78: error: syntax error before `)' token /usr/include/arpa/inet.h:84: error: type specifier omitted for parameter `size_t' /usr/include/arpa/inet.h:84: error: syntax error before `)' token /usr/include/arpa/inet.h:90: error: type specifier omitted for parameter `size_t' /usr/include/arpa/inet.h:90: error: syntax error before `)' token In file included from /usr/include/netdb.h:33, from chair.cc:31: /usr/include/rpc/netdb.h:61: error: type specifier omitted for parameter `size_t' /usr/include/rpc/netdb.h:61: error: syntax error before `,' token /usr/include/rpc/netdb.h:65: error: type specifier omitted for parameter `size_t' /usr/include/rpc/netdb.h:65: error: syntax error before `,' token /usr/include/rpc/netdb.h:69: error: type specifier omitted for parameter `size_t' /usr/include/rpc/netdb.h:69: error: syntax error before `,' token In file included from chair.cc:31: /usr/include/netdb.h:162: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:162: error: syntax error before `,' token /usr/include/netdb.h:169: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:169: error: syntax error before `,' token /usr/include/netdb.h:175: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:175: error: syntax error before `,' token /usr/include/netdb.h:181: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:181: error: syntax error before `,' token /usr/include/netdb.h:232: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:232: error: syntax error before `,' token /usr/include/netdb.h:238: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:238: error: syntax error before `,' token /usr/include/netdb.h:244: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:244: error: syntax error before `,' token /usr/include/netdb.h:304: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:304: error: syntax error before `,' token /usr/include/netdb.h:310: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:310: error: syntax error before `,' token /usr/include/netdb.h:315: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:315: error: syntax error before `,' token /usr/include/netdb.h:370: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:370: error: syntax error before `,' token /usr/include/netdb.h:375: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:375: error: syntax error before `,' token /usr/include/netdb.h:380: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:380: error: syntax error before `,' token /usr/include/netdb.h:430: error: type specifier omitted for parameter `size_t' /usr/include/netdb.h:430: error: syntax error before `)' token In file included from chair.cc:35: /usr/include/string.h:39: error: type specifier omitted for parameter `size_t' /usr/include/string.h:39: error: syntax error before `)' token /usr/include/string.h:42: error: type specifier omitted for parameter `size_t' /usr/include/string.h:42: error: syntax error before `)' token /usr/include/string.h:51: error: type specifier omitted for parameter `size_t' /usr/include/string.h:51: error: syntax error before `)' token /usr/include/string.h:58: error: type specifier omitted for parameter `size_t' /usr/include/string.h:58: error: syntax error before `)' token /usr/include/string.h:61: error: type specifier omitted for parameter `size_t' /usr/include/string.h:61: error: syntax error before `)' token /usr/include/string.h:65: error: type specifier omitted for parameter `size_t' /usr/include/string.h:65: error: syntax error before `)' token /usr/include/string.h:75: error: type specifier omitted for parameter `size_t' /usr/include/string.h:75: error: syntax error before `)' token /usr/include/string.h:86: error: type specifier omitted for parameter `size_t' /usr/include/string.h:86: error: syntax error before `)' token /usr/include/string.h:93: error: type specifier omitted for parameter `size_t' /usr/include/string.h:93: error: syntax error before `)' token /usr/include/string.h:99: error: type specifier omitted for parameter `size_t' /usr/include/string.h:99: error: syntax error before `)' token /usr/include/string.h:106: error: syntax error before `(' token /usr/include/string.h:120: error: syntax error before `(' token /usr/include/string.h:133: error: type specifier omitted for parameter `size_t' /usr/include/string.h:133: error: syntax error before `)' token /usr/include/string.h:176: error: syntax error before `(' token /usr/include/string.h:180: error: syntax error before `(' token /usr/include/string.h:215: error: type specifier omitted for parameter `size_t' /usr/include/string.h:215: error: syntax error before `,' token /usr/include/string.h:222: error: type specifier omitted for parameter `size_t' /usr/include/string.h:222: error: syntax error before `)' token /usr/include/string.h:224: error: type specifier omitted for parameter `size_t' /usr/include/string.h:224: error: syntax error before `)' token /usr/include/string.h:230: error: syntax error before `(' token /usr/include/string.h:236: error: syntax error before `(' token /usr/include/string.h:254: error: type specifier omitted for parameter `size_t' /usr/include/string.h:254: error: syntax error before `)' token /usr/include/string.h:259: error: type specifier omitted for parameter `size_t' /usr/include/string.h:259: error: syntax error before `)' token /usr/include/string.h:263: error: type specifier omitted for parameter `size_t' /usr/include/string.h:263: error: syntax error before `)' token /usr/include/string.h:266: error: type specifier omitted for parameter `size_t' /usr/include/string.h:266: error: syntax error before `)' token /usr/include/string.h:269: error: type specifier omitted for parameter `size_t' /usr/include/string.h:269: error: syntax error before `)' token /usr/include/string.h:297: error: type specifier omitted for parameter `size_t' /usr/include/string.h:297: error: syntax error before `)' token /usr/include/string.h:308: error: type specifier omitted for parameter `size_t' /usr/include/string.h:308: error: syntax error before `,' token /usr/include/string.h:336: error: type specifier omitted for parameter `size_t' /usr/include/string.h:336: error: syntax error before `)' token /usr/include/string.h:338: error: type specifier omitted for parameter `size_t' /usr/include/string.h:338: error: syntax error before `)' token /usr/include/string.h:344: error: type specifier omitted for parameter `size_t' /usr/include/string.h:344: error: syntax error before `)' token chair.cc:45: error: syntax error before `{' token chair.cc:56: error: syntax error before `public' chair.cc:66: error: syntax error before `private' chair.cc:72: error: syntax error before `}' token chair.cc:79: error: syntax error before `*' token chair.cc: In function `void chair_Register(DriverTable*)': chair.cc:105: error: `chair_Init' undeclared (first use this function) chair.cc:105: error: (Each undeclared identifier is reported only once for each function it appears in.) chair.cc: At global scope: chair.cc:113: error: invalid use of undefined type `class chair' chair.cc:44: error: forward declaration of `class chair' chair.cc: In constructor `chair::chair(char*, ConfigFile*, int)': chair.cc:113: error: class `chair' does not have any field named `CDevice' chair.cc:116: error: invalid use of undefined type `class chair' chair.cc:44: error: forward declaration of `class chair' chair.cc:120: error: `CDevice' undeclared (first use this function) chair.cc: At global scope: chair.cc:130: error: invalid use of undefined type `class chair' chair.cc:44: error: forward declaration of `class chair' chair.cc: In member function `int chair::Setup()': chair.cc:135: warning: assignment to non-pointer type `char' from NULL chair.cc:135: warning: argument to non-pointer type `char' from NULL chair.cc:137: error: syntax error before `]' token chair.cc:140: error: `s' undeclared (first use this function) chair.cc:155: error: `len_inet' undeclared (first use this function) chair.cc:156: error: `z' undeclared (first use this function) chair.cc:161: error: `z2' undeclared (first use this function) chair.cc:162: error: syntax error before `(' token chair.cc:169: error: invalid use of undefined type `class chair' chair.cc:44: error: forward declaration of `class chair' chair.cc:176: error: `StartThread' undeclared (first use this function) chair.cc: At global scope: chair.cc:185: error: invalid use of undefined type `class chair' chair.cc:44: error: forward declaration of `class chair' chair.cc: In member function `int chair::Shutdown()': chair.cc:191: error: `StopThread' undeclared (first use this function) chair.cc: At global scope: chair.cc:204: error: syntax error before `::' token chair.cc:222: error: ISO C++ forbids declaration of `usleep' with no type chair.cc:222: error: `int usleep' redeclared as different kind of symbol /usr/include/unistd.h:405: error: previous declaration of `int usleep(unsigned int)' chair.cc:223: error: syntax error before `}' token chair.cc:241: error: syntax error before `}' token _________________________________________________________________ SEEK: Now with over 60,000 dream jobs! Click here: http://ninemsn.seek.com.au?hotmail |