|
Re: Linking GLFW libs to project [message #1838343 is a reply to message #1838333] |
Mon, 22 February 2021 16:33 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Sounds like you already know how to tell Eclipse to build using an external library.
Just in case you need to know:
- You need to tell the compiler where the include files can be found GCC -I (capital I) flag.
- You need to tell the linker where the libraries can be found and which to use GCC -L and -l (small L) flags
- Tell the Indexer where the include files can be found
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros, etc
The above assumes you are using gcc.
You will need to know what the comparable options are if you are using something else.
If the library is dynamic, you usually need to provide the linker with the external names and how to reach them in the library.
In Windows this is called an Import Library.
This might help you understand: https://cygwin.com/cygwin-ug-net/dll.html
When running a program that needs a dynamic library (.dll in windows) you need to put it where the OS will look.
For Linux: add it's path to the LD_LIBRARY_PATH environement variable
For Windows read: https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order
This site is for answering questions about using CDT itself.
The rest of your questions are specific to GLFW.
You may get answers here but, in general,
you will be better off if you ask at the GLFW community
https://www.glfw.org/community.html
or perhaps at stackoverflow.com
[Updated on: Mon, 22 February 2021 16:51] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03834 seconds