4 ms·
The 'lib' is generally mandatory so that the GCC/clang linker flag can find the binaries in its search path. '-lpng' means 'find libpng.a or libpng.so'. Hence m
by cormacrelf 7y ago
The 'lib' is generally mandatory so that the GCC/clang linker flag can find the binaries in its search path. '-lpng' means 'find libpng.a or libpng.so'. Hence many, many C libraries have it as part of the name of the project. In general the 'lib' prefix in a name means 'this is a C library', or at least now in the days of Rust, 'you can link to this with a C linker or normal FFI'.
Considering that, 'spng' is different enough from 'png'.
- Eldt 7y agoIt's a very generic name and adding a single letter doesn't do much to differentiate at a cursory glance. If you're focused on what you're doing then maybe...
- true_religion 7y agoThat’s really the original libpngs fault for picking a generic. Now everyone wants to follow suit.
- FroshKiller 7y agoI suggest you not take on dependencies based on your cursory glances, then.
- aargh_aargh 7y agomaybe... libpng-ng?
- dfgdghdf 7y agoIt is similar to how many JavaScript libraries are call "something.js" or Java libraries are called Something4J. I would call this library "spng" and the original "png"; once compiled they would be named "libspng" and "libpng".
- deleted 7y ago[deleted]
- userbinator 7y agoConsidering that, 'spng' is different enough from 'png'. It's different, but I think it's so close as to verge on namesquatting, especially when the description and purpose is almost identical to the original libpng --- in fact, that's why I clicked, to see what exactly this is about.