First of all, excuse me for my english. I’m not using A.I. so probably you’ll find here a bunch of human mistakes. Sorry.
I’m starting with SDL3 (for a C++ game). So I need to work, not only with pure SDL, but also with others libs like SDL-Image or SDL-ttf.
I’m trying to install them in my VS solution by following the tutorials (like this, for example).
But, as said in this file, inside my solution I need to create relations between SDL-Image and SDL, which are going to be stored in VisualC/SDL_image.vcxproj (versioned in SDL-Image’s repository). So I cannot carry SDL libs as submodules inside my git repository due to this step.
Could you give me any recommendations or alternatives? I would love to import them as submodule, pointing to the release I want.
Do you have a lot of experience with C or C++?
I highly recommend using SDL in another language. I enjoyed SDL2 using C#. It has image and ttf. C# is fine for many games, unity and godot use C#. C++ on windows is terrible
Hi,
Yes, I have a lot of experience with C actually. Not that much with C++ but I’m forcing myself to use it, so I can move out from my confort zone.
However, I don’t see any relation with my question. I mean, with Visual Studio and C# I would have the same problem. Isn’t it? Or it would be different?
The tutorial you linked looks like it’s for linking sdl_image. If you’re trying to compile and link usually C# and other languages it’s easier. You just include the package and usually it works.
When I use to compile for windows I was using clang instead of visual studio. I tried clang and zig, both worked well. For zig you write zig c++ your-code.cpp -g -other-clang-flags. I don’t program on windows so I can’t help much