MC> What branch are you compiling against?

I think just the main branch -- I got the code with

  git clone git://noxrepo.org/noxcore
  cd noxcore

so whatever that gets me.

MC> If cstdio is being included then this is probably a namespace issue. 
MC> Try std::printf instead and let us know if that works.

No joy; I replaced three instances of 'printf' with 'std::printf' in
.../src/tests/test-coop-preblock-hook.cc.orig, and now it says

  g++ -DHAVE_CONFIG_H -I. -I../../../src/tests -I../..  
-DPKGDATADIR=\"/usr/local/share/nox\" -DPKGLIBDIR=\"/usr/local/bin/tests\" 
-DPKGLOCALSTATEDIR=\"/usr/local/var/nox\" 
-DPKGSYSCONFDIR=\"/usr/local/etc/nox\" -include ../../config.h -I 
../../../src/include -I../../../src/include/openflow -I/usr/include  
-D_GNU_SOURCE=1   -D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 
-D__STDC_CONSTANT_MACROS=1 -D_GLIBCXX_CONCEPT_CHECKS=1 -D_GLIBCXX_DEBUG=1 
-D_GLIBCXX_DEBUG_PEDANTIC=1 -I   -fno-omit-frame-pointer -Wall 
-Wno-sign-compare -Winit-self -Wformat-nonliteral -Wformat-security -g -O2 -MT 
test-coop-preblock-hook.o -MD -MP -MF .deps/test-coop-preblock-hook.Tpo -c -o 
test-coop-preblock-hook.o ../../../src/tests/test-coop-preblock-hook.cc
  ../../../src/tests/test-coop-preblock-hook.cc: In function 'void 
thread1_hook()':
  ../../../src/tests/test-coop-preblock-hook.cc:32: error: 'printf' is not a 
member of 'std'
  ../../../src/tests/test-coop-preblock-hook.cc: In function 'void thread1()':
  ../../../src/tests/test-coop-preblock-hook.cc:40: error: 'printf' is not a 
member of 'std'
  ../../../src/tests/test-coop-preblock-hook.cc: In function 'void thread2()':
  ../../../src/tests/test-coop-preblock-hook.cc:52: error: 'printf' is not a 
member of 'std'
  make[5]: *** [test-coop-preblock-hook.o] Error 1

and exits.

                                      -Josh (j...@bbn.com)

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to