[SRILM User List] perplexity results
Nickolay V. Shmyrev
nshmyrev at yandex.ru
Thu Feb 9 05:25:45 PST 2017
The option `-c` compiles an object file, a temporary file you can not execute.
To create executable you need to link object files and the libraries.
You can learn more about basic GCC usage from documentation, for example this book is good:
You need Chapter 2 called "Compiling a C program".
09.02.2017, 10:59, "徐" <xulikui123321 at 163.com>:
> Hi, Andreas:
> I want to rewrite the program ngram to web service, so i can query perplexity on Browser page.
> in ~/srilm/lm/src directory, i rewrite ngram.cc and named ngramService.cc
> then i compile it with follow command:
> g++ -m64 -I ~/srilm/include/ -c ngramService.cc -o ngramService
> it compile succecced.
> But when i execute it,
> System prompt：./ngramService: cannot execute binary file
> even after chmod +x ngramService command.
> am i miss something in compile command ?
> my machine is 64, when i type unama -a:
> Linux bjzw_48_43 2.6.32-504.23.4.el6.x86_64 #1 SMP Fri May 29 10:16:43 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
> SRILM-User site list
> SRILM-User at speech.sri.com
More information about the SRILM-User