Thread: linked list error message

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    12

    linked list error message

    I have a linked list I am using to represent a fifo paging algorithm. I believe all the logic is good, but I am getting a compiler error that I could use some help with.

    c:\program files\miracle c\fifo.c: line 168: bad . ref
    '(*pageFaults).number=frames[0]'
    aborting compile

    Can anyone give me a suggestion on what I could do to solve this "bad.ref" error.

    Thanks in advance for any help given.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Post your code so I can find your error(s)...
    1978 Silver Anniversary Corvette

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Somewhere in the shown assignment a bad reference is done. I can't check the code, but I guess it has something to do with the pointers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Linked list program need help !!!
    By dcoll025 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2009, 10:03 AM
  2. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  4. Template Class for Linked List
    By pecymanski in forum C++ Programming
    Replies: 2
    Last Post: 12-04-2001, 09:07 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM