May 15th, 2013, 05:53 AM
Circular Dependency error
I was doing Uni assignment ( not looking for a full solution ) had to use the start up code provided ( other wise this issue would not have come ),
when compiling the source I get the following error
"pms_program.h:54:56: error: expected declaration specifiers or ‘...’ before ‘CourseType’"
the code you are looking for in pms_course.h ( there is a circular dependency between pms.h , pms_course.h and pms_program.h)
Head tutor provided a GUARD however don't think it works properly
function prototype AppendProgram ( part of doubly linked list )
I have attached the full course code.
As much as I like I cannot change the structure of the startup code , I was hoping that someone know a solution or cam point me to the problem
please see attached zip file for the entire source code.
Thanks for Stopping by.
Click Here to Expand Forum to Full Width