Dear All,
Qt Code:
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. __asm__ int 5; // generate intertupt 5
  6. return 0;
  7. }
To copy to clipboard, switch view to plain text mode 
I have comiled this a.cpp file as follows;
g++ a.cpp
a.cpp: In function ‘int main()’:
a.cpp:5: error: expected `(' before ‘int’
a.cpp:5: error: expected unqualified-id before numeric constant
and found the above error
Can any one guide me where I am wrong;
How a way I use interrupts using __asm__ in g++.