Hello to all. Faced the following unusual behavior.
The C program opens the file with the member specified. The file location library is not specified. The file with the specified name is in two libraries: the LIBDDM library contains the DDM file, the LIBPF library contains the PF file. The LIBPF library is located after the LIBDDM library in the list of libraries, but the program opens a file from the LIBPF library.
If you remove the indication of the member when opening, then everything is fine - the file from LIBDDM opens. Also, if you remove the LIBPF library from the list, then the file from LIBDDM also opens without problems (even with a member specified).
It turns out that before opening a file, the system searches for the "most suitable" file to open. Can you explain why this is happening?
The C program opens the file with the member specified. The file location library is not specified. The file with the specified name is in two libraries: the LIBDDM library contains the DDM file, the LIBPF library contains the PF file. The LIBPF library is located after the LIBDDM library in the list of libraries, but the program opens a file from the LIBPF library.
If you remove the indication of the member when opening, then everything is fine - the file from LIBDDM opens. Also, if you remove the LIBPF library from the list, then the file from LIBDDM also opens without problems (even with a member specified).
It turns out that before opening a file, the system searches for the "most suitable" file to open. Can you explain why this is happening?
Comment