Qt 6.11 is out! See what's new in the release
blog
Environment Variable
-
@JonB said in Environment Variable:
Indeed, so it does. What do you find "a very strange behavior"?
I didn't know before that the order of the libraries mattered, so I called it strange behavior, but now I know.
@8Observer8
Ah yes, OK. The linker processes its files once in a single pass, left to right (there is no "going back" leftwards). Only those modules in a library which resolve currently (i.e. at the instant they are encountered) wanted symbols are pulled into the target executable. Else it would have to include everything just in case it's wanted later, and that's not how libraries work. So basically arrange them with the "lowest level" libraries to the right.