When I've specified a header file in my code why do I need to specify a library in my gcc compilation command?

GL/glfw. H is a header file, it declares all the types, constants, functions, you know the drill, it's to make the compiler know what code to generate and to make it not complain about unknown identifiers. Libglfw is a library that contains the actual binary code (or stubs that will be bound later by the dynamic linker, or something like that), you have to link with it to make the linker not complain about unresolved symbols.

I don't know specifically the GLFW library. However, the #include is a preprocessor directive for the compiler (if you miss it, your code won't compile), but the -lglfw argument is for the linker (if you miss it, the code would be compiled to an object file, but you would get undefined symbols by the linker).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions