Language:
switch to room list switch to menu My folders
Go to page: First ... 90 91 92 93 [94]
[#] Mon May 13 2024 22:27:29 EDT from IGnatius T Foobar

[Reply] [ReplyQuoted] [Headers] [Print]

Dunno whether this ought to be in the *ix room or in the programming room, but whatever...

Today I came to the realization that ever since NPTL was merged into glibc some ~20 years ago, it's no longer necessary to specify "-lpthread" when compiling a multithreaded program. I tried it and it worked fine. I looked at the library on disk and, sure enough, it's just a null library that is only there to keep build scripts from breaking.

I was about to remove "-lpthread" from my published Makefiles but then I stopped to consider, it might still be required on non-Linux systems. FreeBSD in particular looks like it has several different implementations of POSIX Threads to choose from (why?) and you have to specify "-lpthread" to make it link that one, or you can specify one of several others.

Am I correct about that? If you try to use POSIX Threads library calls on BSD and don't link a threading library, will it fail to link?

[#] Sat May 18 2024 14:31:52 EDT from darknetuser

[Reply] [ReplyQuoted] [Headers] [Print]

Am I correct about that? If you try to use POSIX Threads library
calls on BSD and don't link a threading library, will it fail to link?




I think it will fail, but then I have not experimented with that in a while. I still have not so old memories of forgetting to add -lpthread and have the build failin my face.

[#] Sat May 25 2024 14:36:19 EDT from Nurb432

[Reply] [ReplyQuoted] [Headers] [Print]

New GhostBSD release. I should try it again. Tried that long ago, dismal failure ( i forget why, but was nothing but frustration )

 

( its essentially a desktop centric flavor of FreeBSD, not a fork, designed to optionally hide the complexities of real FreeBSD from newbies.  Or the lazy, like myself.  )



[#] Sun May 26 2024 10:29:14 EDT from Nurb432

[Reply] [ReplyQuoted] [Headers] [Print]

Officially back from the dead:

 

"The Damn Small Linux team has released Release Candidate 4 (RC4) for DSL 2024! This update brings a series of improvements focused on user experience, administrative tasks, and international accessibility.



Go to page: First ... 90 91 92 93 [94]