Hi Daniel - I've just completed coding up to Lesson 98 & things are working usin...

Timothy Morgan Answered 2 answers
Question by Timothy Morgan 3 years ago

Question

Hi Daniel - I've just completed coding up to Lesson 98 & things are working using test.c from the video. However I get a segmentation fault using:

struct dog;

void main()
{
struct dog* b;
}

struct dog
{
int x;
};

Am I missing something, jumping the gun or is this not allowed ?

Really enjoying the course by the way :)

Cheers,
Tim.

Answers

Answered by Daniel McCarthy

Instructor

HI congratulations on getting to Lecture 98 so far. I have tested the code on the main repository in its current final state and can confirm that it also crashes with a segmentation fault. This means theres a bug in our project so I will create a lecture in due time where we fix this problem.

Module 3 is due for release 1st of January 2023. I will ensure theirs a bug fix for this in that module. Module 3 will of course be apart of this course series as you have purchased the right for all future modules to be included

Glad your enjoying the course

Thanks

Follow-up by Timothy Morgan

Question author

Thanks for the update Daniel.