Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issues in Visual Studio #31

Open
GoogleCodeExporter opened this issue Jul 1, 2015 · 0 comments
Open

Compilation issues in Visual Studio #31

GoogleCodeExporter opened this issue Jul 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I am trying to compile the chromium in Visual Studio 2013. I am actually trying 
to create a .NET Wrapper for the library so I have added all the source files 
inside my CLR project.

Now whenever I compile I get these linking errors.

    error LNK2005: "struct CLD2::CLD2TableSummary const CLD2::kCjkDeltaBi_obj" (?kCjkDeltaBi_obj@CLD2@@3UCLD2TableSummary@1@B) already defined in cld_generated_cjk_delta_bi_32.obj

These all seems to be related as I can see a relation between the 'generated' 
files.

Problem is I have a lot of these and I am not sure which ones I should exclude 
and which I should keep and use in my code.

Here is a list all the generated files that came with the CLD2 code.

    cld_generated_cjk_uni_prop_80.cc
    cld_generated_score_quad_octa_2.cc
    cld_generated_score_quad_octa_0122.cc
    cld_generated_score_quad_octa_0122_2.cc
    cld_generated_score_quad_octa_1024_256.cc
    cld_generated_cjk_delta_bi_4.cc
    cld_generated_cjk_delta_bi_32.cc
    cld2_generated_octa2_dummy.cc
    cld2_generated_quad0122.cc
    cld2_generated_quad0720.cc
    cld2_generated_quadchrome_2.cc
    cld2_generated_quadchrome_16.cc
    cld2_generated_cjk_compatible.cc
    cld2_generated_deltaocta0122.cc
    cld2_generated_deltaocta0527.cc
    cld2_generated_deltaoctachrome.cc
    cld2_generated_distinctocta0122.cc
    cld2_generated_distinctocta0527.cc
    cld2_generated_distinctoctachrome.cc

The naming convention of these suggests that I should only be using one of each 
group. At least that how I think I should use it as I am not really an expert 
in encoding nor in how CLD2 works. And I could not find any references online 
explaining how to configure it.

I tried eliminating the linking errors by keeping only one of each generated 
group:

for example: from `cld_generated_cjk_delta_bi_4` and 
`cld_generated_cjk_delta_bi_32` I kept the 32 version. And so on for the rest 
of the files.

Now this made CLD compile yet when I tried testing it with languages I noticed 
that the scores were way way off and it was behaving inexplicably bad.

I am not trying to support all languages I only need to support latin languages 
along with hebrew, arabic, japanese and chinese.

Can someone please explain how to configure CLD2 to compile and work correctly.


Original issue reported on code.google.com by redserpe...@gmail.com on 30 Mar 2015 at 5:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant