After the install some code I has gave a number of build errors most of which are now resolved but there are a few things I really do not understand. Consider the source below which is a simple pared down to the bare bones example...
program Console4 use OpenGL_GLU implicit none real(8) :: rad=1.0_8 real(8) :: fred=0.0_8 integer(4) :: slices=16 integer(4) :: loops=2 integer(4) :: quad=1234 call gludisk(quad, fred, rad, slices, loops) end program Console4 !DEC$ objcomment lib:"glu32.lib" MODULE OpenGL_GLU PUBLIC :: gluDisk INTERFACE SUBROUTINE gluDisk(quad, inner, outer, slices, loops) !DEC$ ATTRIBUTES STDCALL, REFERENCE, DECORATE, ALIAS:"gluDisk" :: gluDisk IMPORT INTEGER(4) :: slices INTEGER(4) :: loops REAL(8) :: inner REAL(8) :: outer integer(4) :: quad END SUBROUTINE gluDisk END INTERFACE END MODULE OpenGL_GLU
The above are two separate source files for a x32 build (I will post the build log to the thread). I get the error:
Console4.obj : error LNK2019: unresolved external symbol _gluDisk@20 referenced in function _MAIN__
I set the link to verbose to check that glu32.lib was actually searched and where the lib used resided. If I do a dumpbin of that LIB the symbol is _gluDisk@28 which is what I would expect as we have 2*8 + 3*4 = 28bytes on the call. Where are things going wrong????