I am getting error as undefined reference how to resolve it

+1 vote
this is the error i got

main.c:(.text+0x6c): undefined reference to `app_init'
main.c:(.text+0x88): undefined reference to `pthread_create'
main.c:(.text+0xa0): undefined reference to `ERROR'
main.c:(.text+0xb0): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

even i added header file and in compilation i added -lpthread.then also this error is comming;
Dec 5, 2019 in Linux Administration by pooja
• 130 points
723 views
What command is giving you this error?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Linux Administration

0 votes
1 answer
0 votes
1 answer

Linux : Undefined reference to pthread_create

Try this; gcc -pthread -o term term.c READ MORE

answered May 29, 2019 in Linux Administration by Shubham
• 13,480 points
7,330 views
0 votes
2 answers

How do I use a shell script to SSH in to a remote machine to execute commands?

Sorry in advance for any formatting. Check out ...READ MORE

answered Feb 7 in Linux Administration by anonymous
10,624 views
0 votes
0 answers

Trying to configure rsyslog server but I am facing challanges

Here are the steps which i have ...READ MORE

Mar 5, 2020 in Linux Administration by anonymous
• 120 points
149 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
2,756 views
0 votes
2 answers

How do I find all files containing specific text on Linux?

grep -rnw 'text to find recursively inside ...READ MORE

answered May 20, 2019 in Linux Administration by Ritesh Singh
18,951 views
0 votes
1 answer

How to increase Swap Memory in CentOS 7?

Follow the below steps and procedures: Prerequisites Must have ...READ MORE

answered Oct 5, 2018 in Linux Administration by Frankie
• 9,810 points
7,466 views
0 votes
1 answer
–1 vote
1 answer

How to use help command for ls?

The help command is limited and it ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,150 points
1,547 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,150 points
715 views