Solved

compiling c++ program using threads in linux

Posted on 2002-05-23
2
174 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 50 total points
ID: 7029324
might want to link in libpthread as well...

g++ -o programname filelist -lpthread
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now