Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

compiling c++ program using threads in linux

Posted on 2002-05-23
2
Medium Priority
?
184 Views
Last Modified: 2010-04-02
i have written a typical c++ program using pthreads. i would like to know the compilation process for the same in steps and in detail
0
Comment
Question by:kalpanas
  • 2
2 Comments
 
LVL 3

Expert Comment

by:MDarling
ID: 7029320
write makefile
type make

or

g++ -o programname filelist...

Just read the man pages for g++ and make

0
 
LVL 3

Accepted Solution

by:
MDarling earned 150 total points
ID: 7029324
might want to link in libpthread as well...

g++ -o programname filelist -lpthread
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question