- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have some problems compiling an opengl programm using opengl_1.1 extensions.
I' am using the f90gl librarra of Michtell, with the modules opengl_gl,opengl_glu,opengl_glut.
I want to use the function glGenTextures, which is supported by opengl 1.1 and later
The precompiled modules should provide opengl 1.1, and I can find the definition of "glGenTextures" in the sourcees of f90gl,
however the comilation results with an "error Lnk2019: unresolved external symbol _GLGENTEXTURES referenced in function _CHECKER_MOD_mp_MYINIT"
skipping this function, I have no problems compiling the remaining opengl programm.
Have someone an Idea to solve this problem ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not using opengl I can only offer my experience with related problems.
The link error is reporting an unresolved external symbol "_GLGENTEXTURES" i.e. leading underscore and all caps. The library routine might have a different name (as opposed to being missing). By different I mean different case and/or underbar decoration(s) in addition to different spelling. Generally this is caused by a problem (inconsistency)with the INTERFACE declaration such asa missing ALIAS or improperly specified ALIAS and/or calling convention. First, compare the interface declaration with a function that you know works. There may be an ommision or type-o that passes compilation and produces the wrong name. If this does not shed light on the problem then you may have to use the librarian to dump the symbols in the OpenGL .LIB file(s) to locate the actual name as opposed to the documented name. Then figure out how to fix it by modifying the interface declaration.
Note, if you also have C/C++ and can link in the function then by looking at the MAP file you may be able to descern the naming problem and thus modify the interface declaration.
Good luck
Jim Dempsey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page