No symbols exported in static library (Windows Store apps)


  • I am building Mesa's glu implementation to replace GLU32.lib distributed in Windows SDK, as suggested in this post (http://social.msdn.microsoft.com/Forums/en-US/wingameswithdirectx/thread/14fa6235-da9d-4749-90ff-63c6f5529d28). I create a new project of the prototype "static library (Windows Store apps)" in VS 2012 express. The build is OK and the library file (named glu.lib) is generated. But when I use glu.lib as a dependency library in another project, the VS2012 linker reports unresolved external symbols such as gluDeleteTess, gluNewTess etc. These symbols should have been exported from glu.lib. The output of dumpbin also shows no exported symbols:

    > dumpbin /symbols glu.lib

    Dump of file glu.lib

    File Type: LIBRARY

    > dir glu.lib

    2012/08/24    23:53                     1,026,584 glu.lib

    Friday, August 24, 2012 5:08 PM


  • I build mesa as DLL and it works. But I still do not know why static library method fails.
    • Marked as answer by Leonard Monday, August 27, 2012 9:38 AM
    Monday, August 27, 2012 9:38 AM

All replies