|
From: Devon Y. <9to...@gm...> - 2012-10-10 17:49:08
|
Thanks for the reply. Your solution fixed some parts. Now I have really
weird problem.
#include "lcms2.h"
#include "lcms2_plugin.h"
ClassName::FunctionName()
{
cmsHPROFILE hInProfile, hOutProfile;
cmsHTRANSFORM hTransform;
}
The code above does not have a problem so far. But When I add a line of
code:
hInProfile = cmsOpenProfileFromFile("cp.icc", "r");
the same error messages come out
(error message looks like: "*** already defined in
MSVCRT.lib(MSVCR100.dll)")
Do you have an idea why it happens?
On Wed, Oct 10, 2012 at 10:19 AM, Marti Maria <mar...@li...>wrote:
>
> Hi
>
> I assume you mean a static library that uses the DLL C runtime. Just go to
> "Configuration properties" "C/C++" "Code generation" and in "runtime
> library" select either Multi threaded DLL or multithreaded depending in the
> settings you use in your project. Recompile and that is all. On *managed*
> code that will not work.
>
> If you mean how to compile lcms as a DLL (which is a truly non-static but
> dynamic library) there is a project to do so.
>
> Hope that helps
> Marti
>
>
>
> El 10/10/2012 18:36, Devon Yoo escribió:
>
> Hi,
>
> I keep having library compatibility problem.
> lcms_static.lib works okay in VC++ console project of Visual Studio 2010
> with /MD (no clr).
> but error occurs in VC++ windows form project of VS2010 with /MD and /clr
> (error message: "*** already defined in MSVCRT.lib(MSVCR100.dll)")
>
> It looks like VC++ windows form project needs to import non-static
> lcms2.lib and I can't build it at all. I downloaded "lcms2-2.3" and the
> Projects\VC2010\lcms2.sln does not seems to build non-static one.
>
> Please give me some tips if you have any idea.
>
> Devon
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!http://p.sf.net/sfu/newrelic-dev2dev
>
>
>
> _______________________________________________
> Lcms-user mailing lis...@li...://lists.sourceforge.net/lists/listinfo/lcms-user
>
>
>
|