$RBGB/bdemakeErrors080512.0113 ------------------------------- make errors about pr_accessors.c macros not declared/defined/linked in. I gratuitously added refs to these functions in nodeops.cc because they encapsulated struct HN* types by using hcg_key pkey refs instead of hcg_ptr HNcurr. Within the access functions are calls to pr_find search loops; however these first check the current global id (HNcurr here) which avoids repeated search for the same HNid in loops like the BUTTON_MOVED event loop. pr-accessors.c defines macros that expand to function declarations for every table and fieldname. These are compiled, but now need extern "C" declarations in bde/src files that use them. Where are the prototypes of these functions declared extern for nodeops.cc? Do we need a new .h file for these? gencpp generates these set/get functions as class methods instead. Moving to pr-accessors.c use divides and conquers the process of refactoring pr_util use into gencpp equivalent code. -------------------------------------- Script started on Mon 12 May 2008 01:12:36 AM EDT ... Script done on Mon 12 May 2008 01:13:06 AM EDT 080512.1829: New make after correcting non-pr_accessors.c errors: ==================== making all in ././src... make[1]: Entering directory `/nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/src' g++ -DUSECPLUSPLUS -DDEBUG -DString_REDEFINE_NOT_NEEDED -DBDE_SCHEMA="94sbde_schema.h" -DBDE_VIEW="94sbdeview" -DS94LC -DLCWC -DDEFAULT_LIB_PATH=\""../lib"\" -g -Wall -pg -DDEBUG -Dlint -DLinuxArchitecture -I../include -I../pr_util_nolog -I/usr/include -I.. -I/usr/local/lib/g++-include ../src/nodeops.cc -c -o ../pr_util_nolog/i386-linux/obj/nodeops.o ../src/nodeops.cc: In function `void doSRN1BUA3(float, float, XButtonEvent*, hcg_key)': ../src/nodeops.cc:741: error: `HNGetcenterx' was not declared in this scope ../src/nodeops.cc:742: error: `HNGetcentery' was not declared in this scope ../src/nodeops.cc:743: error: `HNGetwidth' was not declared in this scope ../src/nodeops.cc:744: error: `HNGetheight' was not declared in this scope ../src/nodeops.cc:778: error: `HNSetwidth' was not declared in this scope ../src/nodeops.cc:779: error: `HNSetheight' was not declared in this scope ../src/nodeops.cc:741: warning: unused variable 'HNGetcenterx' ../src/nodeops.cc:742: warning: unused variable 'HNGetcentery' ../src/nodeops.cc:743: warning: unused variable 'HNGetwidth' ../src/nodeops.cc:744: warning: unused variable 'HNGetheight' ../src/nodeops.cc:778: warning: unused variable 'HNSetwidth' ../src/nodeops.cc:779: warning: unused variable 'HNSetheight' ../src/nodeops.cc: In function `void doSRNBDA3(float, float, XButtonEvent*, hcg_key)': ../src/nodeops.cc:1056: error: `curr_x' was not declared in this scope ../src/nodeops.cc:1056: error: `curr_y' was not declared in this scope ../src/nodeops.cc:1064: error: `signx' was not declared in this scope ../src/nodeops.cc:1064: error: `signy' was not declared in this scope ../src/nodeops.cc:1064: warning: unused variable 'signx' ../src/nodeops.cc:1064: warning: unused variable 'signy' ===============