xlucas
New Coder
Hello, everybody! I'm Lucas. This is my first post here. I signed up several days ago, but that day my connection was awful and couldn't post anything, so I'm here today to introduce myself and to make the question that led me to search for a C programming forum, which took me here 🙂
The thing is this. I love C language because it's widely used, very clear and not too high level. It's also easy to compile almost everywhere. The problem is this comes at a cost. C has always refused to incorporate things having to do with the interface into its standard, so on its own, it's only a file-managing, terminal-based language. When you want to have graphics or real-time input, you need to rely on 3rd-party libraries and there, you lose all the convenience of portability and simplicity I would've chosen C for.
I've seen that many people use libraries like SDL as a complement, but SDL is unnecessarily huge and it can't be statically linked... at least, not easily. Other libraries are not so large but still, bring too much in for somebody who just wants to display simple graphics and read a few keys. I would like something that I can carry with me, that I can distribute with my programs so users don't need to install it. I want my program to just run on a freshly installed OS and to just compile on a freshly installed GCC. Something that won't consume a hundred megabytes or more because some of my programs are just a small test. Basically, something that serves as a wrapper between C and X11 for Linux or GDI for Windows (I think it's called GDI). Something like that.
What would you guys recommend? Thanks!
The thing is this. I love C language because it's widely used, very clear and not too high level. It's also easy to compile almost everywhere. The problem is this comes at a cost. C has always refused to incorporate things having to do with the interface into its standard, so on its own, it's only a file-managing, terminal-based language. When you want to have graphics or real-time input, you need to rely on 3rd-party libraries and there, you lose all the convenience of portability and simplicity I would've chosen C for.
I've seen that many people use libraries like SDL as a complement, but SDL is unnecessarily huge and it can't be statically linked... at least, not easily. Other libraries are not so large but still, bring too much in for somebody who just wants to display simple graphics and read a few keys. I would like something that I can carry with me, that I can distribute with my programs so users don't need to install it. I want my program to just run on a freshly installed OS and to just compile on a freshly installed GCC. Something that won't consume a hundred megabytes or more because some of my programs are just a small test. Basically, something that serves as a wrapper between C and X11 for Linux or GDI for Windows (I think it's called GDI). Something like that.
What would you guys recommend? Thanks!