O
O
old_iniquity2014-07-04 22:52:43
Programming
old_iniquity, 2014-07-04 22:52:43

How to fix error : undefined reference when linking (assembler)?

When linking, the linker throws an error:
(.text+0x1e): undefined reference to `error_exit'
Source code HERE .
In theory, the program should work like a regular pwd command on UNIX systems.
a619ec2927454aa8be9bc8f96f293ae3.png
Help me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-07-07
@old_iniquity

error_exit, as far as I understand, is some system call or function from the standard C library. Accordingly, when linking, you need to additionally specify the library in which the error_exit function is implemented.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question