C compiler problems
Posted: Wed Sep 25, 2019 7:38 pm
Current GhostBSD, all packages up to date.
Unless I am missing something pretty basic, I cannot compile a "Hello World" c program.
There is a man entry for clang, but no clang.
There is a clang80, but the man page for clang80 says to call clang.
When I use clang80 it can't find <stdio.h>
If I search / for stdio.h, there doesn't appear to be a stdio.h related to clang or llvm80.
I loaded gcc48 and gcc9. Same problem finding <stdio.h>.
But there are include files containing stdio.h for both.
But they are not in a directory that the compilers searches (-v option show search path).
If I copy stdio.h to a directory that gcc48 will search, then I get:
/usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a
/usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a
If I search / for libc_nonshared.a, nothing is found.
To say the least, I am very unimpressed!
Unless I am missing something pretty basic, I cannot compile a "Hello World" c program.
There is a man entry for clang, but no clang.
There is a clang80, but the man page for clang80 says to call clang.
When I use clang80 it can't find <stdio.h>
If I search / for stdio.h, there doesn't appear to be a stdio.h related to clang or llvm80.
I loaded gcc48 and gcc9. Same problem finding <stdio.h>.
But there are include files containing stdio.h for both.
But they are not in a directory that the compilers searches (-v option show search path).
If I copy stdio.h to a directory that gcc48 will search, then I get:
/usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a
/usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a
If I search / for libc_nonshared.a, nothing is found.
To say the least, I am very unimpressed!