Menu

#9 not building

open
nobody
None
9
2008-11-29
2008-11-29
Kevin D
No

the program is not building.
here is the command line output:

kevin@tobias-phoenix:~/Desktop/stampbc_124$ make
g++ -g -Wall -D_COLORFUL -c stampbc.cc
stampbc.cc: In function ‘int processOptions(int, char**, SBProject&)’:
stampbc.cc:81: warning: suggest parentheses around arithmetic in operand of |
stampbc.cc:133: error: ‘atoi’ was not declared in this scope
stampbc.cc: In function ‘int main(int, char**)’:
stampbc.cc:185: error: ‘exit’ was not declared in this scope
make: *** [stampbc.o] Error 1

Discussion

  • Kevin D

    Kevin D - 2008-11-29
    • priority: 5 --> 9
     
  • Kevin R. Bulgrien

    I do not know what you are compiling, but the currently supplied tarball (bstamp-2006.05.31.tar.gz) does not contain any such file as stampbc.cc:

    $ tar -itf bstamp-2006.05.31.tar.gz
    bstamp/
    bstamp/bstamp_run.cpp
    bstamp/tokenizer.h
    bstamp/PBASIC_Tokenizer_Software_Distribution_License.txt
    bstamp/pbasic_examples/
    bstamp/pbasic_examples/hello.bs2
    bstamp/pbasic_examples/Makefile
    bstamp/pbasic_examples/touch.bs2
    bstamp/Makefile
    bstamp/PBASIC_Tokenizer_Software_Distribution_License.pdf
    bstamp/TODO.txt
    bstamp/GPL.txt
    bstamp/README.txt
    bstamp/CHANGES.txt
    bstamp/COPYING.txt
    bstamp/bstamp_tokenize.cpp
    bstamp/tokenizer.so
    bstamp/error_handling.cpp

    This is an invalid complaint so far as I can tell. The source in the tarball does compile:

    $ make
    g++ -c -o bstamp_tokenize.o bstamp_tokenize.cpp
    g++ -Wall bstamp_tokenize.o -o bstamp_tokenize -ldl
    g++ -c -o bstamp_run.o bstamp_run.cpp
    bstamp_run.cpp:3:1: warning: "_GNU_SOURCE" redefined
    <command-line>: warning: this is the location of the previous definition
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:25: warning: deprecated conversion from string constant to ‘char*’
    bstamp_run.cpp:56: warning: deprecated conversion from string constant to ‘char*’
    g++ -Wall bstamp_run.o -o bstamp_run
    $