Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-06-2005, 06:00 PM   #1
LQ Newbie
Registered: Sep 2003
Distribution: slack/deb/rhel/fc
Posts: 4

Rep: Reputation: 0
Compiling NPTL - pthread_setaffinity_np

I'm having problems with compiling some code that's threaded. I'm using pthread_setaffinity_np() to set the processor affinity for threads. Unfortunately at link time its having problems finding the reference to the function.

My makefile:
  gcc -o test test.c -lpthread -D__USE_GNU
The function call in question:

pthread_setaffinity_np(tid[i], (void *)1);


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 and NPTL in -current abrouwers Slackware 1 05-26-2005 03:10 PM
Error compiling after NPTL update SlackwareInAZ Slackware 2 05-17-2005 11:32 AM
NPTL on Slackware thick_guy_9 Slackware 0 01-23-2005 11:13 PM
nptlsmp and nptl ospf10 Linux - Newbie 0 07-29-2004 01:04 PM
nptl kernel mmc Fedora 0 01-25-2004 02:27 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:15 PM.

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