LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2004, 08:00 AM   #1
Siriuss
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Error compiling with pthread


Hi
I'm writing a multi thread app in C, I have included the pthread.h library in my header file however, when compiling the app I get:

/tmp/cc6XMXHH.o(.text+0x87): In function `main':
: undefined reference to `pthread_create'

am I missing something??
 
Old 10-23-2004, 08:21 AM   #2
Siriuss
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
never mind, it's fixed...

forgot to addin the -lpthread when compiling... silly me.. lol
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Splint parse error problem when used pthread rajsun Programming 4 10-07-2010 01:27 AM
c++ pthread error SIGSEGV almorris Programming 5 09-23-2005 05:14 PM
glibc make error: pthread.h DanielIvy Linux - Software 2 12-09-2004 06:40 AM
pthread zaman Programming 6 08-29-2004 04:04 PM
pthread and C++ gt73 Programming 17 11-04-2003 03:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration