Menu

problem wirt itimerval

2003-01-09
2012-09-26
  • Nobody/Anonymous

    hello,

    I'm using itimerval in a header file and the compiler doesn't seems to find this struct.
    Here is the code :
    "
    #ifndef __CTIMER_H__
    #define __CTIMER_H__

    #include <sys/time.h>

    class CTimer
    {
         itimerval m_Timer;
       
      public :
          void SetTimer (float Timer);
          float GetTimer ();
          void ActiverTimer (void);
          void DesactiverTimer ();
    };

    #endif
    "
    and the compiler error is :

    sources\CTimer.h:8: syntax error before `;'

    Help please. Thanks

     
    • Derek Baker

      Derek Baker - 2003-01-09

      Stop multiple posting - leave that bloody Refresh button alone.

      Derek

       
    • Patrick Ogay

      Patrick Ogay - 2003-01-09

      usually a header is missing or wrong order of includes.
      I always try first
      #include <windows.h>

      Do you have a autorefresh :-))))

       
      • Nobody/Anonymous

        i'm using linux so i needn't <windows.h>

         
    • Nobody/Anonymous

      Boy am I lost!

      Dev is a windows tool, and then you say you are using linux?

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.