[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -lpthread


On Mon, Mar 17, 2003 at 06:39:17AM -0600, Todd T. Fries wrote:

>As to your specific issue, please show the actual gcc link command line.  I
>am surprised to hear what you report, it makes no sense, '-pthread' is
>equivalent to '-lpthread' at this time ('-pthread' should be used for
>linking time, not compiling .c to .o).

I thought you ought to use -pthread *both* for compiling and linking,
as there might be the need to pass some preprocessor flag in some time
in future.


Kind regards,


Visit your host, monkey.org