Ha, that sounds harder than it really is. Here is what I mean:
Suppose I am writing an application that uses threads. In this application, I do not use pthreads directly, but I use a shell that uses pthreads . So, -lpthread should be included in this make-up wrapper file. And the question is: do I need to include -lpthread in my project, or is it not needed? Or does it depend? If so, then what?
I ask about it because I saw it a lot and I donโt think it is necessary .. The same for -std=c++0x ?
Also, I had a problem with the Informix C ++ interface, as it relies on a lib called DMI , which is built on top of ESQL/C When I deleted these libraries and used only the real one, I had problems with linkers (problems with finding libs). When I added DMI and ESQL/C , everything was fine.
Does this answer my question (with "YES"), or could I do something wrong, except for this (I'm new to make files (:)
: "Makefiles is something like a mysterious topic - one joke is that there is only one makefile in the world and that all other makefiles are just an extension of it. I assure you, however, that this is not true, I wrote from time to time your own files.
This made me wonder if all of the included libraries in makefiles are needed (from my company projects), or is this for "historical reasons"
EDIT . The pthread shell is linked to static, and Informix lib is dynamically linked, if that matters.
In addition, the OS is RHEL (4 and 5), but I need to know if it depends on the OS and the binding method (dynamic or static)