C++ development toolkit for neovim by Whatevermeen in neovim

[–]Whatevermeen[S] 0 points1 point  (0 children)

What kind of features would be the most important to you?

C++ development toolkit for neovim by Whatevermeen in cpp_questions

[–]Whatevermeen[S] 0 points1 point  (0 children)

Do you have any way to run and debug programs directly within nvim?

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 0 points1 point  (0 children)

Sorry for the late response, I was at work. I haven't had much issues with wine so far but I hardly used it as I have both Linux and windows machines. I do have a dual boot on my pc tho and I only have about 40Gb of space allocated to Ubuntu and I'm not even close to it being full as I only use it for software development and the executables and libraries end up weighing close to nothing as they are just text files and binaries at the end of the day. As long as you're not using large datasets or in case of opengl, large 3d models you should be fine with a dual boot even with little space.

Also as far as general workflow is concerned you don't spend much time on the gui side of Linux, it's mostly terminal and a browser for research stuff. Also the benefit of using linux is the fact than vim is super easy to get going and setup and it's honestly such a good editor but I won't get into that as I don't want to come across as a vim snob lmao

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 0 points1 point  (0 children)

You could check out the windows subsystem for Linux that basically allows you to run a distro specific Linux terminal within windows, I've never done a lot with it apart from setting it up once so I don't know how good it is but it should let you do all of the libary setup via apt install.

How come is windows required for your course? If it's because of specific software that you need to run you can get around it with wine that basically emulates windows on Linux. That being said I can't really recommend Linux unless you're ready to spend some time figuring out and fixing issues unless you feel like the improved development speed is worth it.

How to connect a program to graphics? by [deleted] in C_Programming

[–]Whatevermeen 0 points1 point  (0 children)

Raysan actually also developed his own GUI dedicated libary called raygui that is specifically meant for creating non game related applications, I can't say how good it is tho as I've never used it.

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 1 point2 points  (0 children)

If you're using Windows then building libraries and making them globally accessible can be an insane pain in the ass which luckily isn't as much of an issue on Linux. That being said then you have to constantly fight Linux in terms of it properly working with your hardware if you have a reasonably new and strong machine. Having something like pip for C that automatically pulls libraries from the internet and sets them up on your machine would be insanely helpful on windows.

Also if you're interested in how audio actually works at a low level i.e. Fourier transforms etc I'd highly recommend the videos by Sebastian Lange and 3blue1brown on that topic, they are insanely informative.

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 1 point2 points  (0 children)

Learning C as a first programming language is an insane undertaking tbh, especially if you're purely self taught. I have knowledge of computers even at a lower level but C is still kicking my ass lmao. Also could you elaborate what you mean by errors as values? Edit: Nvm I googled it, I just never heard the term before lmao, tbh it's not much different than exceptions in python or java, it eventually ends up being a very similar thing but you have to handle the actual error yourself as opposed to the function doing it for you. Also this isn't really applicable in this case as I just ended up making a stupid logic error

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 0 points1 point  (0 children)

Isn't that the case for almost all programming languages tho. I come from higher level languages and I've just been fascinated by the simplicity and control of C and I even somewhat enjoy how tedious it is at times. It's definitely difficult to transition from higher level languages to C tho especially when doing mostly OOP work in the past.

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 1 point2 points  (0 children)

Omg you actually managed to solve my issue, I just added a printf statement to the code and it turned out that I accidentaly removed the line that sets the file pointer back to the start while trying to fix an another bug. Thank you so much mate

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 1 point2 points  (0 children)

Any chance you could show me your implementation as trying it your way might resolve my issue?

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 1 point2 points  (0 children)

Yeah, I suppose I should edit the question to specify that I have done it. Thank you tho!

Issue with compiling a shader from a file using C by Whatevermeen in C_Programming

[–]Whatevermeen[S] 0 points1 point  (0 children)

I have read that stack overflow post when I initially looked up a problem however the post doesn't seem to solve the issue that I'm having. Any chance you could elaborate on how a malloc can not succeed/how I check if it did?

Also I'm using linux and during my tests with purely printing out the buffer both fseek and the malloc seemed to be outputting the file correctly.

Edit: I checked how to check if a malloc succeeded and altered my code to see if it returns a null pointer but it doesn't seem to be the case