CalculiX is using libstdc++ (this installation is configured to use libc++)

Mark Brethen mark.brethen at gmail.com
Thu Jul 28 16:56:21 UTC 2022


cgx.h already had a call to extUtil.h, so I replaced it in parser.c. Build completed without further errors.

Thanks,
Mark



> On Jul 28, 2022, at 11:22 AM, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> 
> 
>> On 28 Jul 2022, at 5:21 pm, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
>> 
>> 
>> 
>> 
>>> On 28 Jul 2022, at 5:17 pm, Mark Brethen <mark.brethen at gmail.com> wrote:
>>> 
>>> 
>>> ~ $ cd /opt/local/var/macports/build/_Users_marbre_ports_cad_CalculiX/CalculiX/work/CalculiX/cgx_2.18/src
>>> src $ sudo ack DrawCommandLine
>>> Password:
>>> cgx.c
>>> 5009:  DrawCommandLine(keystroke, strlen(keystroke)+curshft);
>>> 5071:    DrawCommandLine(keystroke, strlen(keystroke)+curshft);
>>> 5799:  DrawCommandLine(0,0);
>>> 5803:void DrawCommandLine(char *string, int curpos)
>>> 5807:  printf(" in DrawCommandLine\n");
>>> 5874:    DrawCommandLine(0,0);
>>> 
>>> cgx.h
>>> 588:void DrawCommandLine(char *string, int curpos);
>>> 
>>> parser.c
>>> 85:    DrawCommandLine(keystroke, strlen(keystroke)+*curshft);
>>> 
>>> 
>>> cgx.h has 'void DrawCommandLine(char *string, int curpos);’ 
>>> 
>>> cgx.c has '#include <cgx.h>’
>>> 
>>> parser.c has '#include <extUtil.h>’ only
>>> 
>>> should I add '#include <cgx.h>’ to parser.c or add 'void DrawCommandLine(char *string, int curpos);’  to extUtil.h?
>> 
>> Based on the above, no, but instead add it to parser.c
> 
> Apologies, misread your reply. I would say yes to the first part.
> 
>>> 
>>> Mark Brethen
>>> mark.brethen at gmail.com <mailto:mark.brethen at gmail.com>
>>> 
>>> 
>>> 
>>>> On Jul 27, 2022, at 8:41 PM, Joshua Root <jmr at macports.org <mailto:jmr at macports.org>> wrote:
>>>> 
>>>> There's only one -Wimplicit-function-declaration warning in the log, so it doesn't look like there's a lot that needs fixing. Just say yes to function prototypes. :)
>>>> 
>>>> - Josh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220728/42fa33ca/attachment-0001.htm>


More information about the macports-dev mailing list