Quote Originally Posted by Fillis52 View Post
In file included from thread.c:3:
sched.h:6: error: expected specifier-qualifier-list before 'thread_t'

thread.c: In function 'remove_thread':
thread.c:35: error: 'linked_list' has no member named 'next'
thread.c:36: error: 'linked_list' has no member named 'next'
thread.c:36: error: 'linked_list' has no member named 'next'
thread.c:39: error: 'linked_list' has no member named 'next'
thread.c: In function 'add_thread':
thread.c:46: error: 'linked_list' has no member named 'thread'
thread.c:47: error: 'linked_list' has no member named 'next'
thread.c:48: error: 'linked_list' has no member named 'isNull'
thread.c:54: error: 'linked_list' has no member named 'isNull'
thread.c:57: error: 'linked_list' has no member named 'thread'
thread.c:58: error: 'linked_list' has no member named 'next'
thread.c:59: error: 'linked_list' has no member named 'isNull'
thread.c:61: error: 'linked_list' has no member named 'next'


etc
Always always always resolve the first error first. Here, you're chasing after "no member" errors because they're more numerous, but they're all caused by the previous error, "expected specifier-qualifier-list before 'thread_t'". This means the compiler doesn't know what thread_t is (presumably you need to typedef it or include an appropriate header file first) and so can't construct "linked_list", which means it doesn't recognise if for the rest of the compilation unit, and so will naturally complain about basically any use of it. Solve this problem, and then either you'll be able to compile it or you'll get a new, different first (very first - cannot stress that enough) error you can resolve.