GithubHelp home page GithubHelp logo

error! please, help me( /usr/bin/ld: /tmp/ex1-dfb212.o: in function `main': /workspaces/106884994/chapter10/ex1.8.c:17: undefined reference to `readLine' /usr/bin/ld: /workspaces/106884994/chapter10/ex1.8.c:21: undefined reference to `countWords' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [<builtin>: ex1.8] Error 1 about rc-shell HOT 1 CLOSED

ElenaSirosh avatar ElenaSirosh commented on August 16, 2024
error! please, help me( /usr/bin/ld: /tmp/ex1-dfb212.o: in function `main': /workspaces/106884994/chapter10/ex1.8.c:17: undefined reference to `readLine' /usr/bin/ld: /workspaces/106884994/chapter10/ex1.8.c:21: undefined reference to `countWords' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [: ex1.8] Error 1

from rc-shell.

Comments (1)

indradhanush avatar indradhanush commented on August 16, 2024

Hi @ElenaSirosh!

It is not clear to me what book you are referring to. The error undefined reference to readLine usually shows up due to a linker error during compilation. Try adding -lreadline to your compilation command and see if resolves this issue.

In the meantime, since the issue does not appear to be related to this project, I'm going to go ahead an close the issue.

from rc-shell.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.