A voir également:
- Compilation SRILM / Visual Studio 2005
- Cam studio - Télécharger - Capture d'écran
- Microsoft visual c++ runtime - Guide
- Visual petanque - Télécharger - Sport
- Visual studio 2017 - Télécharger - Langages
- Télécharger money 2005 - Télécharger - Comptabilité & Facturation
5 réponses
Hi, I met the same problem. The error says that 'computeBleu' doesn't exist in sri_oolm.lib. Actually it's declared in lm/src/Bleu.cc . Add these files to sri_oolm to solve the problem:
lm/src/Bleu.*
lm/src/LMClient.*
Don't forget to rebuild the sri_oolm. Good luck!
lm/src/Bleu.*
lm/src/LMClient.*
Don't forget to rebuild the sri_oolm. Good luck!
Thnak you For your answer.
I thought no body would answer me :)
I added the .h and .cc files to the sri_oolm.lib
lm/src/Bleu.*
lm/src/LMClient.*
and compiled it. I obtained this compilation error:
matherr.c
Compiling resources...
Creating library...
LMClient.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '??0<unnamed-tag>@LMClient@@QAE@XZ'
Build log was saved at "file://C:\cygwin\srilm\lib\Debug\intermediate\BuildLog.htm"
sri_oolm - 1 error(s), 882 warning(s)
???? i'im deseperate with all these compilation problems!
I thought no body would answer me :)
I added the .h and .cc files to the sri_oolm.lib
lm/src/Bleu.*
lm/src/LMClient.*
and compiled it. I obtained this compilation error:
matherr.c
Compiling resources...
Creating library...
LMClient.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '??0<unnamed-tag>@LMClient@@QAE@XZ'
Build log was saved at "file://C:\cygwin\srilm\lib\Debug\intermediate\BuildLog.htm"
sri_oolm - 1 error(s), 882 warning(s)
???? i'im deseperate with all these compilation problems!
this is a bug from Microsoft Visual Studio related to struct defination. The link will help you to find the resolution.
http://203.208.35.101/search?q=cache:O_eFppqJdogJ:connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx%3FFeedbackID%3D99795+Error+10+fatal+error+LNK1179:+invalid+or+corrupt+file:+duplicate+COMDAT&hl=zh-CN&ct=clnk&cd=14&gl=cn&st_usg=ALhdy2-_07rk0fHZVC7Ed6R3hKBM4chomg
The following code was written by me and compiled with no error, just remember give the struct a name while using anonymmous struct.
struct temp1{
VocabIndex word;
Array<VocabIndex> context;
void *id;
unsigned length;
} contextIDCache; /* single-result cache for contextID() */
struct temp2{
Array<VocabIndex> context;
unsigned length;
LogP bow;
} contextBOWCache; /* single-result cache for contextBOW() */
http://203.208.35.101/search?q=cache:O_eFppqJdogJ:connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx%3FFeedbackID%3D99795+Error+10+fatal+error+LNK1179:+invalid+or+corrupt+file:+duplicate+COMDAT&hl=zh-CN&ct=clnk&cd=14&gl=cn&st_usg=ALhdy2-_07rk0fHZVC7Ed6R3hKBM4chomg
The following code was written by me and compiled with no error, just remember give the struct a name while using anonymmous struct.
struct temp1{
VocabIndex word;
Array<VocabIndex> context;
void *id;
unsigned length;
} contextIDCache; /* single-result cache for contextID() */
struct temp2{
Array<VocabIndex> context;
unsigned length;
LogP bow;
} contextBOWCache; /* single-result cache for contextBOW() */
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question