Porting an C++ code application from Solaris to Linux and real time headers issues
Posted 05-10-2011 at 01:44 PM by DavidLion
Please help, The tools that I am using are kdevelop and qt4. on my main.cpp have errors, for example;
Error: sys/procset.h: No such files or directory
Error: sys/priocntl.h: No such files or directory
Error: sys/tspriocntl.h: No such files or directory
Error: sys/rtpriocntl.h: No such files or directory
In function 'int main(int. char**)':
Error: 'pcparms_t' was not declared in this scope
Error: expected ';' before 'pcparms'
Error: 'rtparms_t' was not declared in this scope
Error: 'rtparmsp' was not declared in this scope
Error: 'pcinfo_t' was not declared in this scope
Error: expected ';' before 'pcinfo'
Error: 'rtinfo_t' was not declared in this scope
Error: 'rtinfop' was not declared in this scope
warning: unused variable 'lret'
warning: unused variable 'priority'
...
...
...
****Exited with Status:2 ****
I am stock and I don't know what to do next. I can't find those headers on my Centos 5 Linux. Plus, I don't know the equivalence of those above headers for Linux. I know I have to add an If statement for Solaris and Linux for the include headers, and I don't know which headers will be included on the if/else statement.
Error: sys/procset.h: No such files or directory
Error: sys/priocntl.h: No such files or directory
Error: sys/tspriocntl.h: No such files or directory
Error: sys/rtpriocntl.h: No such files or directory
In function 'int main(int. char**)':
Error: 'pcparms_t' was not declared in this scope
Error: expected ';' before 'pcparms'
Error: 'rtparms_t' was not declared in this scope
Error: 'rtparmsp' was not declared in this scope
Error: 'pcinfo_t' was not declared in this scope
Error: expected ';' before 'pcinfo'
Error: 'rtinfo_t' was not declared in this scope
Error: 'rtinfop' was not declared in this scope
warning: unused variable 'lret'
warning: unused variable 'priority'
...
...
...
****Exited with Status:2 ****
I am stock and I don't know what to do next. I can't find those headers on my Centos 5 Linux. Plus, I don't know the equivalence of those above headers for Linux. I know I have to add an If statement for Solaris and Linux for the include headers, and I don't know which headers will be included on the if/else statement.
Total Comments 0