LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-27-2002, 04:09 AM   #1
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 30
exported symbols???


hello

does anybody know which libraray exports the following functions:

__FD_ZERO
__FD_SET
__FD_ISSET

I tryed to compile ncpfs, and I get undefined references to these functions. so the linker fails obviously. I am probably missing some library, but which one??

thanks for everything

raven
 
Old 06-27-2002, 06:10 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
They are declared in the header files and not in any libraries. When I'm looking for which header files to include I usually run something like:

find /usr/include -type f -exec \grep -H __FD_ZERO {} \;

It shouldn't be to hard to make a script out of that which searches for the arguments passed to the script. Maybe something like:

Code:
#!/bin/bash

if [ -z "$1" ]
then
  filename=`basename $0`
  echo "Usage: $filename keyword"
  exit
fi

find /usr/include -type f -exec \grep -H $1 {} \;
And usually when searching through libraries I'd do something like:

strings library.a | grep keyword

You could probably make a simple script like the above one which lets you search through all the libraries for a keyword.
 
  


Reply


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
How to enable my keyboard if DISPLAY is exported?? dileepkk Linux - Software 1 07-30-2005 07:19 PM
exported symbols dorian Programming 1 02-23-2005 06:42 PM
Relocation error for symbol but it is being exported nukkel Programming 0 12-04-2004 03:23 AM
FreeBSD 4.10 with Calculix exported by NFS tungsten *BSD 0 07-15-2004 02:17 AM
How to allow exported value be reflected in all xterm shells? davidas Linux - Newbie 1 03-31-2004 01:29 AM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration