Re:Single-file public-domain/open source C libraries with mi...
by mbrock on Saturday January 23, 2016 @03:08AM
(#10957641)
Note that the implementation code is conditionally compiled. By default you only compile the headers, so it's up to you instantiate the implementation somewhere by setting a preprocessor symbol before you include the library. This is described in the comment at the top of the file.
[ Parent
| on HN ]
Re:Single-file public-domain/open source C libraries with mi...
by chubot on Saturday January 23, 2016 @04:43AM
(#10957816)
OK, I missed that... it makes it a slightly less crazy pattern, but still weird and offputting. If you really have problems adding one .h and one .c file to your project, I think the development environment is broken.
(Admittedly, I last used Visual Studio C++ in 2007... I installed it from a DVD, only to find it was broken, and I had to copy a .DLL from the Microsoft website to get it to work.)