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

Mark Brethen mark.brethen at gmail.com
Wed Jul 27 14:53:02 UTC 2022


Clang12 w/-std=c99: 
:info:build parser.c:85:5: warning: implicit declaration of function 'DrawCommandLine' is invalid in C99 [-Wimplicit-function-declaration]

Clang14 w/-std=c89:
:info:build /usr/bin/clang -std=c89 -Os -arch x86_64 -I./ -I/opt/local/include -I/opt/local/include/GL -I../../libSNL/src -I../../glut-3.5/src   -c -o parser.o parser.c
:info:build parser.c:85:5: error: implicit declaration of function 'DrawCommandLine' [-Werror,-Wimplicit-function-declaration]
:info:build     DrawCommandLine(keystroke, strlen(keystroke)+*curshft);
:info:build     ^
:info:build 1 error generated.
:info:build make: *** [parser.o] Error 1



Mark Brethen
mark.brethen at gmail.com



> On Jul 27, 2022, at 7:23 AM, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> Latest clang compilers probably default to a 'recent' c standard, unless otherwise told. If the code in question only builds using the less restrictive older standards, then the builds should specify this using -std=c89 for instance..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220727/28224dca/attachment.htm>


More information about the macports-dev mailing list