01-28-2008
Re: undefined reference to pthread_create
I was missing the -lpthread option.
Thanks
9 More Discussions You Might Find Interesting
1. Programming
Hello,
plz help me out with this error,
i am getting this error when i compile my code with gcc.
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
/tmp/cciLxqdV.o(.text+0x3c): In function `HandleUserTransaction()':... (2 Replies)
Discussion started by: svh
2 Replies
2. Programming
I m writting code in c using another library(parapin) and making Makefile .but there is a error like
undefined reference to `sinf'
undefined reference to `ceilf'
although i have added math.h library in my code
. I tried to run simple programme using math.h
and it run.but in making Makefile it... (2 Replies)
Discussion started by: bharat suthar
2 Replies
3. Programming
when i compile my program, i meet the following error:
...
undefined reference to `__ctype_b'
...
anybody knows which shared library should be linked during make?
thanks a lot! (6 Replies)
Discussion started by: princelinux
6 Replies
4. Programming
Hi, i want to compile a code where fortran calls c . First I compiled C module ,it has pass by gcc. However, after generating .o file. I compiled C and fortran files together by intel fortran and it failed " undefined reference to 'vicerror'". vicerror is a function. I do not know why. (1 Reply)
Discussion started by: austinhsu
1 Replies
5. Programming
I try to compile a sample c code in fedora eclipse 3.2 as managed makefile using pthread library,it shows some error on pthread functions.Error is of undefined reference to pthread.Anybody guide me to solve this problem.
Thanking you (1 Reply)
Discussion started by: sujith4u87
1 Replies
6. Programming
Hi guys.
H was learning posix threads in C with anjuta IDE. it gives me
undefined reference to `pthread_create'
I know i should compile it like:
gcc -lpthread main.c
how should i import this configuration in anjuta so i can compile inside it? (2 Replies)
Discussion started by: majid.merkava
2 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
i know when undefined reference shows up the program is saying it is not link to that function but the problem... (1 Reply)
Discussion started by: mgyeah
1 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The problem is a function which i typed although it kept saying that it is a undefined reference still. other... (1 Reply)
Discussion started by: mgyeah
1 Replies
9. UNIX for Dummies Questions & Answers
.......... (1 Reply)
Discussion started by: larry burns
1 Replies
LEARN ABOUT FREEBSD
dh_missing
DH_MISSING(1) Debhelper DH_MISSING(1)
NAME
dh_missing - check for missing files
SYNOPSIS
dh_missing [-Xitem] [--sourcedir=dir] [debhelperoptions]
DESCRIPTION
dh_missing compares the list of installed files with the files in the source directory. If any of the files (and symlinks) in the source
directory were not installed to somewhere, it will warn on stderr about that (--list-missing) or fail (--fail-missing). Please note that
without either of these options, dh_missing will silently do nothing.
This may be useful if you have a large package and want to make sure that you don't miss installing newly added files in new upstream
releases.
Remember to test different kinds of builds (dpkg-buildpackage -A/-B/...) as you may experience varying results when only a subset of the
packages are built.
FILES
debian/not-installed
List the files that are deliberately not installed in any binary package. Paths listed in this file are ignored by dh_missing.
However, it is not a method to exclude files from being installed by any of the debhelper tool. If you want a tool to not install a
given file, please use its --exclude option (where available).
dh_missing will expand wildcards in this file (since debhelper 11.1). Wildcards without matches will be ignored.
OPTIONS
--list-missing
Warn on stderr about source files not installed to somewhere.
Note that files that are excluded from being moved via the -X option are not warned about.
This is the default in compat 12 and later.
--fail-missing
This option is like --list-missing, except if a file was missed, it will not only list the missing files, but also fail with a nonzero
exit code.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Michael Stapelberg <stapelberg@debian.org>
11.1.6ubuntu2 2018-05-10 DH_MISSING(1)