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
135 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,380 points
2,918 views
0 votes
1 answer

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

Your first problem can be solved like ...READ MORE

answered Jun 27, 2019 in Linux Administration by ajs3033
• 7,280 points
417 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 in Linux Administration by anonymous
• 120 points
82 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
370 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
10,370 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
3,702 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,060 points
941 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,060 points
254 views