Highlighted

Compile DNG_SDK fail

New Here ,
Jun 14, 2018

Copy link to clipboard

Copied

I download dng_sdk and compile in VS community 2017.

Some errors like below:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorC2440'initializing': cannot convert from 'dng_std_allocator<dng_noise_function>' to 'dng_std_allocator<_Newfirst>'c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.11.25503\include\vector558

I learned from past post = mentioned that template issue.

But I still confuse.

Any suggestions are welcome.

Thanks in advance.

Topics

DNG

Views

280

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Compile DNG_SDK fail

New Here ,
Jun 14, 2018

Copy link to clipboard

Copied

I download dng_sdk and compile in VS community 2017.

Some errors like below:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorC2440'initializing': cannot convert from 'dng_std_allocator<dng_noise_function>' to 'dng_std_allocator<_Newfirst>'c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.11.25503\include\vector558

I learned from past post = mentioned that template issue.

But I still confuse.

Any suggestions are welcome.

Thanks in advance.

Topics

DNG

Views

281

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Jun 15, 2018

Copy link to clipboard

Copied

reply by myself.

after modify  dng_memory.h :  #if 0 -> #if 1, this error is gone.

#if 0

// original implementation without using custom allocator

#define dng_std_vector std::vector

#else

// preferred implementation using custom allocator, requires C++11

template <class T> using dng_std_vector = std::vector<T, dng_std_allocator<T> >;

};

#endif

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...