guesu - 2005-07-16

I would like to receive technical support for Common C++ class library.

I'm writing my private program in order for my scientific study, using Common C++ 1.3.9. I chose this best class foundations for my developing program because this library provides basic foundations for C++ simply but very powerful.

I currently met a critical problem when chaning the dynamic DLL library (*.dll) of this Common C++ to the form of static library (*.lib). My source codes should not call any DLL files because the programming environment of my study.

I found common.sln (Microsoft Visual Studio's solution file) at "w32" directory in the distribution of Common C++ 1.3.9, but I could not make a static library by simply changing this project options in the Visual Studio (ver 7.0). I try almost everything which I can do. However, terribly I cannot find any solution for this problem of chaning the library type. Please tell me how to do this. When I change the project option of "common.sln" and generate a static library of Common C++, there occurred a critical error of runtime error. (Note: there is no compilation error during building the static library) Especially, ost::String does not function properly by referencing this static library when it has a string which has more characters than 12. I found unknown memory leak during an ost::String object has more 12 characters in my program. Anyway, when I build the dynamic library, there is no problem in my source codes. This problem is very critical for me.

I think that the config.h should be changed suitably for chaning the type of static library. I already changed the "CCXX_NO_DLL" and other possible options in "config.h", but it did not work. However, I don't want to know the complicated config.h. I cannot change it for solving my problem.

Please let me know how to change this "config.h" in order to build a static library (*.lib) of Common C++.

Thank you very much.