Ask Your Question
1

In a cross-platform C++ application, how should libraries be stored?

asked 2023-06-11 17:05:08 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-11 17:15:01 +0000

pufferfish gravatar image

Libraries should be stored in a platform-specific folder and referenced in the project using platform-specific variables or macros. For example, on Windows, libraries could be stored in a "lib" folder and referenced using the LIBRARYPATH variable, while on Linux, libraries could be stored in a "lib64" folder and referenced using the LDLIBRARY_PATH variable. Alternatively, libraries can be packaged with the application itself, eliminating the need for the user to install additional dependencies.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-11 17:05:08 +0000

Seen: 15 times

Last updated: Jun 11 '23