Skip to content

Is the installation instruction up-to-date? #531

@tsurupin

Description

@tsurupin
  • Checked for duplicates

Describe the bug

I followed the instructions but encountered an error.
Is there anything else I need to install as a prerequisite?

$./bin/cling '#include <stdio.h>' 'printf("Hello World!\n")'

I got the following error:

$ ./bin/cling '#include <stdio.h>' 'printf("Hello World!\n")'
ERROR in cling::CIFactory::createCI():
  resource directory /home/xx/cling-build/lib/clang/16 not found!
In file included from input_line_3:1:
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
         ^~~~~~~~~~
input_line_4:2:2: error: use of undeclared identifier 'printf'
 printf("Hello World!\n")

Expected behavior

it prints "Hello World!"

To Reproduce

Setup

  1. Cling version
    1.1~dev
  2. Operating system
    CentOS Stream 9
  3. How you obtained Cling, such as with cpt.py (also mention flags) / you built it yourself.
    Follow the instruction

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions