| PLEX86 | ||
|
Compilation Error in CYGWINHi All, Here is the sample programm in for NANO Second Sleep using the predefind nanosecond function in the CYGWIN Environment. int hangOn (int nNanoSecond) { struct timespec tmsp; *tmsp.tvsec = (timet) 0; if (nNanoSecond) tmsp.tvnsec = nNanoSecond; else tmsp.tvnsec = 110; * return (0); } int main () { printf ("-n The function hangOn is being called-n"); printf ("-n The Return Value is : %d-n", hangOn (110)); return (0); } The following errors are obtained during compilation Can't mount lvm through fstab I am having the most bizzare problem. I hope someone can quickly identify the problem. I created... Two different errors for two different compilers 'gcc' & g++ only 4 serial ports with kernel 2.6.14 After upgrading from 2.6.11.7 to 2.6.14.3 I seem to be limited to 4 serial ports (or have a problem with a 2-port board). dmesg before: Serial: 8250-16550 driver $Revision: 1.90 $ 8... gcc compilation ----------------------- bash-2.02$ gcc -o tes test.c test.c: In function `hangOn': g++ compilation -----------------------test.c:7: storage size of `tmsp' isn't known bash-2.02$ g++ -o tes test.c test.c: In function `int hangOn(int)': test.c:7: aggregate `struct timespec tmsp' has incomplete type and cannot be ini tialized bash-2.02$ The definition part alone --------------------------------------- #ifndef timetdefined typedef TIMET timet; #define timetdefined* Time Value Specification Structures, P1003.1b-1993, p. 261 *struct timespec { timet tvsec; * Seconds * long tvnsec; * Nanoseconds *}; struct itimerspec { struct timespec itinterval; * Timer period * struct timespec itvalue; * Timer expiration *}; #endif Please help me out to debug it...... Thanks in advace.... Best Regards, Abdur
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||