facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.85k stars 4.71k forks source link

Issue with Compilation #231

Closed sagnikbanerjee15 closed 7 years ago

sagnikbanerjee15 commented 7 years ago

Hello I am trying to compile the program but I run into the following issue. Please help.

c++ -pthread -std=c++0x -O3 -funroll-loops -c src/args.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/dictionary.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/matrix.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/qmatrix.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/vector.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/model.cc c++ -pthread -std=c++0x -O3 -funroll-loops -c src/fasttext.cc c++ -pthread -std=c++0x -O3 -funroll-loops args.o dictionary.o productquantizer.o matrix.o qmatrix.o vector.o model.o utils.o fasttext.o src/main.cc -o fasttext productquantizer.o: file not recognized: File format not recognized collect2: error: ld returned 1 exit status make: *** [fasttext] Error 1

Thank you

onurgu commented 7 years ago

Do you have a line like

productquantizer.o: src/productquantizer.cc src/productquantizer.h src/utils.h

in your Makefile?

sagnikbanerjee15 commented 7 years ago

Yes I do

onurgu commented 7 years ago

Then the problem is that the current version of the object file became corrupted somehow.

Just run make clean and then make opt

sagnikbanerjee15 commented 7 years ago

Oh Thank you this time it worked.. ᐧ

Sagnik Banerjee Graduate Research Assistant Bioinformatics and Computational Biology Department of Plant Pathology and Microbiology Dr. Roger Wise's Lab Iowa State University

*"The moment I have realized God sitting in the temple of every human body, the moment I stand in reverence before every human being and see God in him

On Sat, May 27, 2017 at 11:20 AM, onur güngör notifications@github.com wrote:

Then the problem is that the current version of the object file became corrupted somehow.

Just run make clean and then make opt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebookresearch/fastText/issues/231#issuecomment-304461728, or mute the thread https://github.com/notifications/unsubscribe-auth/AWXwuQjXzu00_qvzHq2TVE3dFCoqi8nHks5r-E1dgaJpZM4NoYN9 .