Greetings C experts
I have a very simple question that I feel should be asked sooner rather than later. First off I will say I have MinGW installed, and am using Code::Blocks IDE on top of it, with a few plugins allowing for different project types like SDL and OpenGL, GLUT, Ogre3d, etc...
If you have a source file (say test.c), that has an #include at the top that includes the SDL header (say SDL.h), you can then reference externally defined functions. After compilation, is there any specific job the user has to do in order to bind the definitions on SDL.h to the library (say SDL.lib)? Both the header and the library are in the default \include and \lib directories, and it definitely finds the header file because it compiles successfully.
I ask this because when I create an SDL project with Code::Blocks, I haven't added any external references to a library, nor could I find anything in the settings of the IDE that references it by default (since it is an SDL project). It compiles and links correctly. But when I manually added PDCurses to the \header and \lib directories, and created a program with it, it could find the header with no problem, but only could link it if I explicitly added a reference to the PDCurses .lib file.
Basically what I don't understand is why the SDL app worked with seemingly no reference to the corresponding lib, but the PDCurses app did not work unless I explicitly referenced its lib file.
Thanks for the help in advance,
Brandon