In the .h file of my program, the structure is initialized.
I need to use a static library instead. I compiled a static library in Visual Studio, where I call only the header. The problem is that I can not connect it to my program. I tried to do this by adding this: (#pragma comment ( lib, "MathFuncsLib.lib" )) to the Studio properties (Linker -> Input -> Additional dependencies), but it did not help me.
I get an error:
Error LNK1104 cannot open the file "#pragma comment (lib, \ MathFuncsLib.lib \) .obj
If you add only MathFuncsLib.lib there, then the compilation crashes, but not because of the library's calling curve, but because of the lack of a definition of the structure.
Do not tell me how to fix this? Thank.
printffrom there, but its code is from the corresponding library. And one is not replaced by another. You still need a header file that describes data types, function declarations, etc. And in the library there is a ready- compiled code of these functions for working with these types. - Harry