Original Message:
Sent: Sun March 26, 2023 06:33 PM
From: Jonathan Juler
Subject: Documentation
Hi Colin,
Thanks for the reply - I worked out eventually what I needed to do. I have indeed already cracked that nut, my issue was npm was not using my xlc.cfg file to work out where to get stuff. There is no option to tell npm to use a local xlc.cfg file but it does honour whatever you setup for normal C compiles. The system version of xlg.cfg is not configured properly (methinks no-one uses it or due to low confidence takes matters in their own hands like I am). I have some environment variables set like CFLAGS='-F xlc.cfg' and CXXFLAGS='-F xlc.cfg' which has helped with other attempts at C compilation but not this. Turns out there is another option called XL_CONFIG that I had to set for npm to work out that I wanted to use the local version then bingo we had an attempted compile.
Then I had to work out why it couldn't include the headers...again there are options in the xlc.cfg but I am no expert at this so it took me a while to work out which ones to use (cinc and cppinc). None of this is helped by the inconsistency in the naming standards for variables and parameters nor by the sprinkling of different bits of information throughout different manuals.
I finally got it to the point where it would at least attempt to compile the code and could now find the header files but now have a roadblock in the form of :
npm ERR! "../cppsrc/zrexx.cc", line 187.1: CCN5130 (S) "Napi::RegisterModule" is not declared.
The road goes ever on and down down from the door where it began...
Regards J
------------------------------
Jonathan Juler
------------------------------
Original Message:
Sent: Fri March 24, 2023 04:21 AM
From: Colin Paice
Subject: Documentation
I googled it and found
I copied /usr/lpp/cbclib/xlc/etc/xlc.cfg to my current working directory:
cp /usr/lpp/cbclib/xlc/etc/xlc.cfg myxlc.cfg
I modified the value of the steplib option in myxlc.cfg from none to
CBC.SCCNCMP.
Thereafter the command
xlc -F./xlc.cfg -o hw hw.c
worked
Make sure it points to your library
Colin
------------------------------
Colin Paice