PDA

View Full Version : IDE question -



technologist
06-24-2017, 05:37 PM
The picture below is taken from the project settings of a correctly working project. What entities are the circled ones; they have no file extensions. Thanks in advance.

2401

mhagain
06-24-2017, 11:24 PM
Do you see where it says "libraries" on top of the list?

Silence
06-25-2017, 07:06 AM
I believe they do it on purpose. Depending on the OS, libraries could have different extensions.
Plus, the default syntax on gcc to link to a library is just to give the library name without the lib prefix, without the versions and without the extension.

technologist
06-25-2017, 11:39 AM
I've got several items in my library for the app: -lopengl32 & -lglut32.lib; know that one extension is .lib glut32.lib.

technologist
06-25-2017, 11:41 AM
libraries can be .a, .lib, etc, and why is the extension concealed? It would be helpful to know

Silence
06-25-2017, 10:54 PM
As said above, this is gcc's options syntax (https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html). Your IDE just follows them.

mhagain
06-26-2017, 01:26 AM
libraries can be .a, .lib, etc, and why is the extension concealed? It would be helpful to know

http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use

This is the way the MinGW linker works; it does not specify the library extension, even on the command line. If you're not happy about that you will need to raise it as an issue with the MingW developers, because it's got nothing to do with OpenGL.