Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I don't have the Unicode library so I tried compiling the "Release" version. Everything compiled until the last step; the demo. Then I got these errors. Did I miss something?
MSIL
Linking...
   Creating library ../bin/demo.lib and object ../bin/demo.exp
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_cleanup_dcraw
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _htons@4
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_flip_index
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_gamma_lut
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_stretch
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_convert_to_rgb
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_fuji_rotate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_recover_highlights
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_blend_highlights
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_median_filter
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_vng_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_ahd_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_ppg_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_lin_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_pre_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_scale_colors
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_subtract
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_bad_pixels
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_remove_zeroes
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_merror
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_kodak_ycbcr_load_raw
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_identify
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_parse_command_line_options
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_init_dcraw
../bin/demo.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

demo.exe - 25 error(s), 0 warning(s)


EDIT: Here is the link to the article forum: CxImage[^]
Posted
Updated 28-May-10 7:23am
v3
Comments
Moak 28-May-10 13:25pm    
Updated subject and tags, also linked the article you refer to.

It looks like you need to link with the libDCR library [^] (and the Ws2_32.lib for the htons function, I suppose).
:)
 
Share this answer
 
Hi,

The problem can occur in the following cases:

1. Missing some library.[Make sure that all the Libraries are included in
"Additional Include Libraries"].
2. Make sure u have set path for Additional Include Libraries.
3. Make sure u have included concerned "header" files..
4. Make sure u are using the right version of dll for the "Release" build.



Thanks
 
Share this answer
 
At the top after header declaration.

C++
#pragma comment (lib, "fully qualified path to libdcr");
//else put in system32

May be this will work
 
Share this answer
 
For questions relating to an article, it's best to post the questions in the "Comments and Discussions" section under the article. That way you get feedback from either the original article poster or others that are using the project.

This just looks like you're missing a library (probably the one CPallini pointed out). If you don't know how to configure your linker, a quick Google search should give you plenty of information on the subject.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900