Find the answer to your Linux question:
Results 1 to 6 of 6
I'm trying just a simple program using jiffies and I can't get it to compile. #include <stdio.h> int main() { printf("%s", jiffies); exit(0); } When compiled it keeps saying 'jiffies' ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5

    Simple Program Using Jiffies?


    I'm trying just a simple program using jiffies and I can't get it to compile.

    #include <stdio.h>

    int main()
    {
    printf("%s", jiffies);
    exit(0);
    }

    When compiled it keeps saying 'jiffies' undeclared (first time being used in function).

    I don't understand why this doesn't work?

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Why are you trying to access jiffies from userspace?

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5
    I don't know what userspace is, just trying to follow a book I bought.

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Is it a book on Kernel Development, by any chance?

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5
    No it is beginning linux programming by WROX.

  6. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Now are you copying the code verbatim from the book?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •