Menu

#1 /src/grey_theory.cpp compile failure

open
nobody
None
7
2009-02-12
2009-02-12
wirser
No

while trying to compile hbstock on fedora 9 86_64 (gcc 4.3)
the following error was encountered

/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -I/usr/include -I../../include -O2 -MT libhbstock2_la-grey_theory.lo -MD -MP -MF .deps/libhbstock2_la-grey_theory.Tpo -c -o libhbstock2_la-grey_theory.lo `test -f 'grey_theory.cpp' || echo '../../src/'`grey_theory.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -I/usr/include -I../../include -O2 -MT libhbstock2_la-grey_theory.lo -MD -MP -MF .deps/libhbstock2_la-grey_theory.Tpo -c ../../src/grey_theory.cpp -fPIC -DPIC -o .libs/libhbstock2_la-grey_theory.o
../../src/grey_theory.cpp: In function 'void gnu::print_vector_f(const std::vector<float, std::allocator<float> >&, unsigned int, unsigned int)':
../../src/grey_theory.cpp:207: error: 'printf' was not declared in this scope
../../src/grey_theory.cpp:210: error: 'printf' was not declared in this scope
../../src/grey_theory.cpp:214: error: 'printf' was not declared in this scope
../../src/grey_theory.cpp:217: error: 'printf' was not declared in this scope
make[2]: *** [libhbstock2_la-grey_theory.lo] Error 1
make[2]: Leaving directory `/home/standard/build/hbstock-2.2.9/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/standard/build/hbstock-2.2.9/build'
make: *** [all] Error 2
*************************end error*********************
adding "#include <cstdio>" to the beginning of /src/grey_theory.cpp corrects it
this error is caused due to GCC's effort to more closely follow ISO C++ standards

Discussion

  • wirser

    wirser - 2009-02-12
    • priority: 5 --> 7
     
  • zzhb

    zzhb - 2009-12-19

    your gcc version is 4.3, maybe don't support. But I think the error is that you don't install ACE

     

Log in to post a comment.