Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: IDE question -

  1. #1
    Intern Newbie
    Join Date
    May 2017
    Posts
    36

    IDE question -

    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.

    Click image for larger version. 

Name:	screenshot_c++.jpg 
Views:	40 
Size:	67.2 KB 
ID:	2401
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	screenshot_c++.jpg 
Views:	18 
Size:	12.8 KB 
ID:	2400  

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,683
    Do you see where it says "libraries" on top of the list?

  3. #3
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    418
    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.

  4. #4
    Intern Newbie
    Join Date
    May 2017
    Posts
    36
    I've got several items in my library for the app: -lopengl32 & -lglut32.lib; know that one extension is .lib glut32.lib.

  5. #5
    Intern Newbie
    Join Date
    May 2017
    Posts
    36
    libraries can be .a, .lib, etc, and why is the extension concealed? It would be helpful to know

  6. #6
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    418
    As said above, this is gcc's options syntax. Your IDE just follows them.

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,683
    Quote Originally Posted by technologist View Post
    libraries can be .a, .lib, etc, and why is the extension concealed? It would be helpful to know
    http://www.mingw.org/wiki/specify_th..._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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •