Skip to content

좀 늦은 질문일 수도 있는데 , get_int, get_string 등 함수 사용 #4

@inwoo123

Description

@inwoo123

lecture를 보면 cs50.h를 include하면 get_int 등의 함수를 쓸 수 있다고 했는데 제가 컴파일을 할 땐 get_int등의 함수를 참조(reference)할 수 없다고 하네요. 다른 분들은 cs50.h 를 include하면 잘 되시나요?

math.h함수를 참조했을 때도 같은 에러가 발생하네요! 혹시 클라우드 9에서는 stdio.h 라던가 제한적으로만 라이브러리를 참조할 수 있는건가요 ?

/tmp/credit-056f4c.o: In function main': credit.c:(.text+0x73): undefined reference to pow'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions