User define function problem yunyouzi66@gmail.com


#1

I use scidb15.7 ,in the install packages /scidbtrunk/examples/operators/ example .I run $cmake . and then run $make have those problem
who can help me
$cat CMakeList.txt
set (operators_src
plugin.cpp
LogicalStub.cpp
PhysicalStub.cpp

)
include_directories("/home/scidb/data/scidbtrunk/include/")
add_library(operators SHARED ${operators_src})
set_target_properties(operators PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${GENERAL_OUTPUT_DIRECTORY}/plugins)

BUT when I run make ,there so many problems occur?

from /home/scidb/data/scidbtrunk/include/SciDBAPI.h:46,
from /home/scidb/data/scidbtrunk/examples/operators/plugin.cpp:32:
/home/scidb/data/scidbtrunk/include/util/Arena.h: In constructor ‘scidb::arena::Allocator< >::Allocator()’:
/home/scidb/data/scidbtrunk/include/util/Arena.h:260: error: there are no arguments to ‘getArena’ that depend on a template parameter, so a declaration of ‘getArena’ must be available
/home/scidb/data/scidbtrunk/include/util/Arena.h:260: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from /home/scidb/data/scidbtrunk/include/util/arena/Managed.h:28,
from /home/scidb/data/scidbtrunk/include/util/arena/Vector.h:28,
from /home/scidb/data/scidbtrunk/include/util/PointerRange.h:30,
from /home/scidb/data/scidbtrunk/include/array/Coordinate.h:31,
from /home/scidb/data/scidbtrunk/include/util/CoordinatesMapper.h:28,
from /home/scidb/data/scidbtrunk/include/array/Array.h:39,
from /home/scidb/data/scidbtrunk/include/SciDBAPI.h:46,
from /home/scidb/data/scidbtrunk/examples/operators/plugin.cpp:32:
/home/scidb/data/scidbtrunk/include/util/Arena.h: In constructor ‘scidb::arena::Allocator< >::Allocator(int)’:
/home/scidb/data/scidbtrunk/include/util/Arena.h:262: error: ‘p’ was not declared in this scope
/home/scidb/data/scidbtrunk/include/util/Arena.h: At global scope:
/home/scidb/data/scidbtrunk/include/util/Arena.h:421: error: ‘ArenaPtr’ does not name a type
/home/scidb/data/scidbtrunk/include/util/Arena.h:433: error: expected ‘;’ before ‘(’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:434: error: expected ‘;’ before ‘Options’
/home/scidb/data/scidbtrunk/include/util/Arena.h:441: error: expected ‘;’ before ‘(’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:442: error: expected ‘;’ before ‘Options’
/home/scidb/data/scidbtrunk/include/util/Arena.h:442: error: expected ‘;’ before ‘(’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:443: error: expected ‘;’ before ‘Options’
/home/scidb/data/scidbtrunk/include/util/Arena.h:443: error: expected ‘;’ before ‘(’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:444: error: expected ‘;’ before ‘Options’
/home/scidb/data/scidbtrunk/include/util/Arena.h:444: error: expected ‘;’ before ‘(’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:446: error: expected ‘;’ before ‘private’
/home/scidb/data/scidbtrunk/include/util/Arena.h:453: error: ‘ArenaPtr’ does not name a type
/home/scidb/data/scidbtrunk/include/util/Arena.h:755: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:790: error: expected constructor, destructor, or type conversion before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token
/home/scidb/data/scidbtrunk/include/util/Arena.h:816: error: expected initializer before ‘<’ token

                                               thanks!

#2

I have replied in your another post about the Makefile.
Hope it helps.