Closed chococandy63 closed 6 months ago
Building tests shows the following errors. System info:
cd cppyy/test
make all
Builds successfully
(venv) trinity@ukiyo:~/compres/cppyy/test$ make all genreflex advancedcpp.h --selection=advancedcpp.xml --rootmap=advancedcppDict.rootmap --rootmap-lib=[[advancedcppDict.so](http://advancedcppdict.so/)](http://advancedcppdict.so/) In file included from input_line_7:3: ./advancedcpp.h:330:5: error: unknown type name 'intptr_t' intptr_t gime_address_ptr(void* obj) { ^ ./advancedcpp.h:334:5: error: unknown type name 'intptr_t' intptr_t gime_address_ptr_ptr(void** obj) { ^ ./advancedcpp.h:338:5: error: unknown type name 'intptr_t' intptr_t gime_address_ptr_ref(void*& obj) { ^ ./advancedcpp.h:342:12: error: unknown type name 'intptr_t' static intptr_t set_address_ptr_ptr(void** obj) { ^ ./advancedcpp.h:347:12: error: unknown type name 'intptr_t' static intptr_t set_address_ptr_ref(void*& obj) { ^ ./advancedcpp.h:331:17: error: use of undeclared identifier 'intptr_t' return (intptr_t)obj; ^ ./advancedcpp.h:335:17: error: use of undeclared identifier 'intptr_t' return (intptr_t)*((long**)obj); ^ ./advancedcpp.h:339:17: error: use of undeclared identifier 'intptr_t' return (intptr_t)obj; ^ ./advancedcpp.h:343:12: error: use of undeclared identifier 'intptr_t' (*(intptr_t**)obj) = (intptr_t*)0x4321; ^ ./advancedcpp.h:343:22: error: expected expression (*(intptr_t**)obj) = (intptr_t*)0x4321; ^ ./advancedcpp.h:343:31: error: use of undeclared identifier 'intptr_t' (*(intptr_t**)obj) = (intptr_t*)0x4321; ^ ./advancedcpp.h:343:40: error: expected expression (*(intptr_t**)obj) = (intptr_t*)0x4321; ^ Error: rootcling: compilation failure (./advancedcpp_rflxc933b38e1e_dictUmbrella.h) make: *** [Makefile:31: advancedcpp_rflx.cpp] Error 1
Add cstdint header file on top of test/advancedcpp.h file.
cstdint
test/advancedcpp.h
Building tests shows the following errors. System info:
Steps to reproduce
cd cppyy/test
make all
Expected
Builds successfully
Found
Possible fix
Add
cstdint
header file on top oftest/advancedcpp.h
file.