Hello, when I've tried to use forward declarations to solve circular structure dependencies I get the error 'field has incomplete type'. When browsing for the answer, I got the general response 'the compiler doesn't know what type you're using if you don't fully describe it'. Well I understand that, but it seems as if the purpose of the forward declaration is to have the compiler look for the definition later in the code. If my code looks like the below, should I be getting an incomplete type error? And if so, is there a different way I should be writing the code? Some sort of syntax error, or is there a different way to do the same thing? Any tips appreciated, thanks.

Edit: I think I found the solution in this thread from user "anastaciu", it looks like you can only use the forward declarations if they're pointers to the struct type, not full instances. Lmk if that's right, it got rid of the error for me, but if there's a different way to allow use not from a pointer that'd be great.

typedef struct objA_t objA_t;

typedef struct objB_t{

     objA_t o;

}objB_t;

typedef struct objA_t{

    uint8_t num0;

}objA_t;

Ox64 Resource Repo (codeberg.org)
 

I compiled a list of some resources for the Ox64, I'll be adding to it as soon as I get around to playing with it more. I'm more into the pico for now but I wanted to get this up in some places in case people had other resources/projects that they wanted to share. just reply to this post or send me an email and I'll get it added. or if there's already something like this I can just merge resources instead.

[–] [S] 1 point 4 months ago

sure, but everyone will drop something once or twice. and if you're someone who wants to get 5+ years out of the laptop, and potentially have it last beyond your own use to be used second hand, something that won't break when dropped would be pretty nice. I really appreciate my T530 which I bought 2-3 years ago, when it was already a 10 year old machine. sure the thinkpads are a bit overkill, but a sturdier plastic frame would help. also, to be honest, i enjoy the aestethic

  • source
  • parent
  • context
  • [–] [S] 1 point 4 months ago

    The zero is a little cheaper, and I wanted to try making games that would run on it and eventually make a game console thing out of it. Part of the challenge is the lower spec i guess. If it's got more power than the n64 its good enough for me!

  • source
  • parent
  • context
  • [–] [S] 1 point 5 months ago (3 children)

    Yeah, thats sorta what I figured. It is marginally cheaper, and hopefully it won't be as affected by the current market? either way it'll probably be fun to play around with and similar enough to the zero 2W that i could experiment with it for a bit and switch over when the 2W comes back in stock. I certainly dont need the processing power, I basically just wanted to load some minimal linux OS, and try to play low spec games on it. thanks for the heads up

  • source
  • parent
  • context
  •  

    I've been wanting to get a Zero 2 but they're basically nonexistent. How likely do we think the Zero 1 to stay in supply? And are they worth getting or should I hold out for the Zero 2 to return? I kinda want to use it in a project but I don't want em to go dead before I can make a couple of units. thoughts?

    [–] [S] 4 points 5 months ago* (3 children)

    I hadn't thought of that, I mean it's not like I have a 3D printer or know how to do that but it would be awesome if people started doing third party shells. Could at least make the design and have one printed somewhere I guess edit: oh, the keyboard might be tough though. might be weird to have plastic shell with aluminum keypad

  • source
  • parent
  • context
  •  

    I'm curious how many people would prefer a more durable/thinkpad-like framework laptop. I get they're trying to go for the more popular/mainstream light/thin/pretty design but man I still like using my T530 over my FW13. I've seen posts like "set my bag down a little too fast and bent/had to replace my hinge" and whatever. i still think the Framework is the best laptop currently being made and would still recommend it and do recommend it to my friends. Obviously some people like the weight and see it as worth the trade-off. but dang i wish there were a beefier one, I dont think we're going to see "framework on the international space station" posts at this rate.