-
[Jungle] Pintos_Project3_Virtual Memory: Error 해결Pintos 2023. 6. 20. 13:32
새벽에 make 에러를 해결하던 중 다른 에러는 다 해결했는데 이 하나를 잡지 못하고 잠들었다.
** 다른 에러들은 헤더 파일을 include 해주지 않아서 발생한 에러가 많았다.
원인
/* The representation of "frame" */ struct frame { void *kva; struct page *page; struct list_elem frame_elem; // project3 추가 - frame table을 위한 list_elem };
struct frame 안에 frame table을 위한 list_elem을 만들어줄 때 위 코드처럼 list_elem frame_elem;으로 써서 에러 발생
해결
/* The representation of "frame" */ struct frame { void *kva; struct page *page; struct list_elem elem; // project3 추가 - frame table을 위한 list_elem };
frame 구조체 안에 마지막줄 코드처럼 struct list_elem elem;으로 바꿔주니 에러 해결
결과
'Pintos' 카테고리의 다른 글