einaros
spree wrote: |
But how do I accomplish this when at the declaration of my log class I have to declar an ostream object
|
|
In some cases you simply cannot get around it; the definition simply has to be present. With the STL, this will generally not produce errors such as the one noted in your initial post.
spree wrote: |
And I do use dll's but staticly linked from the complier ( pragma comment(lib,"mydll.lib") ... )
|
|
That wasn't what I meant. If you check the runtime library setting in the Project properties -> Configuration properties -> C/C++ -> Code generation, you will see that a few of the options use DLL's, while the others use static libraries. You must make sure that all the libraries in your solution either uses the DLLs, or the static libraries. Don't select an "DLL"-option for one project and non-dll for another.