Menu

v0.998 wouldn't make

Help
Anonymous
2011-07-27
2013-04-11
  • Anonymous

    Anonymous - 2011-07-27

    Hi,

    all i've done is downloaded the library and tried to compile it. So, i have an errors:

    $ make
    rm -f lwnnplus
    ln -s source lwnnplus
    make lib -C tinyxml
    make[1]: Enter directory `/home/va/lwnn/tinyxml'
    g++ -m32  -fPIC  -shared tinyxml.o tinyxmlparser.o tinyxmlerror.o tinystr.o -o libtinyxml.so 
    make[1]: Exit from directory `/home/va/lwnn/tinyxml'
    make -C source
    make[1]: Enter directory `/home/va/lwnn/source'
    gcc -g -O2 -Wall -W -Winline -c -o generate_sigma.o generate_sigma.c
    gcc -o generate_sigma generate_sigma.o -lm
    ./generate_sigma -n 2000 > sigmoidal.cc
    g++ -O3 -finline-functions -fPIC -DLWNNPLUS_VERSION=0.998 -Wall -Winline -pedantic -c network.cc -o network.o 
    network.cc: In member function ‘int network::fscan_ssab(FILE*)’:
    network.cc:1399: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
    g++ -O3 -finline-functions -fPIC -DLWNNPLUS_VERSION=0.998 -Wall -Winline -pedantic -c trainer.cc -o trainer.o 
    trainer.cc: In member function ‘void trainer::compute_error_and_accuracy(float&, float&, int, float**, float**)’:
    trainer.cc:680: error: ‘malloc’ was not declared in this scope
    trainer.cc:696: error: ‘free’ was not declared in this scope
    trainer.cc: In member function ‘float trainer::compute_accuracy(int, float**, float**)’:
    trainer.cc:709: error: ‘malloc’ was not declared in this scope
    trainer.cc:717: error: ‘free’ was not declared in this scope
    trainer.cc: In member function ‘float trainer::show_on_set(bool, int, float**, float**) const’:
    trainer.cc:775: error: ‘malloc’ was not declared in this scope
    trainer.cc:817: warning: unknown escape sequence '\%'
    trainer.cc:817: warning: unknown conversion type character ‘)’ in format
    trainer.cc:823: warning: unknown escape sequence '\%'
    trainer.cc:823: warning: unknown conversion type character 0xa in format
    trainer.cc:825: error: ‘free’ was not declared in this scope
    trainer.cc: In member function ‘void trainer::copy_data(int, float**, float**, float**, float**)’:
    trainer.cc:1022: error: ‘memcpy’ was not declared in this scope
    trainer.cc:1026: error: ‘memcpy’ was not declared in this scope
    make[1]: *** [trainer.o] Error 1
    make[1]: Exit directory `/home/va/lwnn/source'
    make: *** [all] Error 2
    $
    
     
  • Anonymous

    Anonymous - 2011-07-27

    Oh, yeah, i have gcc_4.4.3 and Kernel_2.6.32.

    If your project alive, answer me ;)

     

Log in to post a comment.