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,713 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
10,069 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
17,198 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
669 views
0 votes
0 answers

How do I copy a folder from remote to local using scp?

How do I copy a folder from ...READ MORE

Apr 13, 2022 in Linux Administration by Soham
• 9,710 points
493 views
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, 2022 in Linux Administration by Soham
• 9,710 points
351 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, 2022 in Linux Administration by Edureka
• 13,690 points
383 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, 2022 in Linux Administration by Edureka
• 13,690 points
379 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, 2022 in Linux Administration by Edureka
• 13,690 points
491 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, 2022 in Linux Administration by Kichu
• 19,050 points
1,102 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