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
1,091 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 Hope this ...READ MORE

answered May 29, 2019 in Linux Administration by Shubham
• 13,490 points
8,877 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, 2021 in Linux Administration by anonymous
14,736 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
245 views
0 votes
0 answers
0 votes
0 answers

How do I copy folder with files to another folder in Unix/Linux?

I am having some issues copying a ...READ MORE

Apr 13 in Linux Administration by Soham
• 9,670 points
49 views
0 votes
0 answers

How do I output coloured text to a Linux terminal?

How do I print coloured characters to ...READ MORE

Apr 20 in Linux Administration by Edureka
• 13,640 points
61 views
0 votes
0 answers

How do I copy folder with files to another folder in Unix/Linux?

I am having some issues to copy ...READ MORE

Apr 21 in Linux Administration by Edureka
• 13,640 points
41 views
0 votes
0 answers

How can I convert a series of images to a PDF from the command line on linux?

I have a scanning server I wrote ...READ MORE

Apr 21 in Linux Administration by Edureka
• 13,640 points
53 views
0 votes
0 answers

How to fix 'sudo: no tty present and no askpass program specified' error?

I  wanted to compile sources using a ...READ MORE

May 9 in Linux Administration by Kichu
• 19,040 points
520 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP