LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-06-2005, 05:00 PM   #1
starbuck8968
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:
Code:
all:
  gcc -o test test.c -lpthread -D__USE_GNU
The function call in question:

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


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

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

All times are GMT -5. The time now is 10:20 AM.

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