link errors on Ant build (newbie to building)

I’m trying to build JOGL because the newest version on CVS has a bug fix I need, but my build stops with this:

   [cc] Starting link
   [cc]    Creating library jogl.lib and object jogl.exp
   [cc] WindowsGLImpl_JNI.obj : error LNK2019: unresolved external symbol __

imp__glAccum@8 referenced in function _Java_net_java_games_jogl_impl_windows_Win
dowsGLImpl_glAccum@16
[cc] WindowsGLImpl_JNI.obj : error LNK2019: unresolved external symbol __
imp__glAlphaFunc@8 referenced in function _Java_net_java_games_jogl_impl_windows
_WindowsGLImpl_glAlphaFunc@16

[etc. * MANY MANY LINES]

  [cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglCr

eateContext@4 referenced in function Java_net_java_games_jogl_impl_windows_WGL
wglCreateContext@16
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglDe
leteContext@4 referenced in function Java_net_java_games_jogl_impl_windows_WGL
wglDeleteContext@16
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglGe
tCurrentContext@0 referenced in function Java_net_java_games_jogl_impl_windows
WGL_wglGetCurrentContext@8
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglGe
tCurrentDC@0 referenced in function _Java_net_java_games_jogl_impl_windows_WGL_w
glGetCurrentDC@8
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglGe
tProcAddress@4 referenced in function _Java_net_java_games_jogl_impl_windows_WGL
_wglGetProcAddress@12
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglMa
keCurrent@8 referenced in function _Java_net_java_games_jogl_impl_windows_WGL_wg
lMakeCurrent@24
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglSh
areLists@8 referenced in function _Java_net_java_games_jogl_impl_windows_WGL_wgl
ShareLists@24
[cc] WGL_JNI.obj : error LNK2019: unresolved external symbol __imp__wglSw
apLayerBuffers@8 referenced in function _Java_net_java_games_jogl_impl_windows_W
GL_wglSwapLayerBuffers@20
[cc] jogl.dll : fatal error LNK1120: 364 unresolved externals

BUILD FAILED
C:\jogl\make\build.xml:1074: The following error occurred while executing this l
ine:
C:\jogl\make\build.xml:857: The following error occurred while executing this li
ne:
C:\jogl\make\build.xml:812: link failed with return code 1120

Total time: 1 minute 4 seconds

Any idea what I’m doing wrong? I have the path variables set up correctly I think, and I’m running from a Visual Studio .NET 2003 command prompt. I have Ant 1.6.2, ANTLR 2.7.2, and of course MS VS.NET 2003, version 7.1.3
Microsoft Visual C++ .NET 69462-335-0000007-18740

Thanks so much.

I haven’t built JOGL with VS.NET but it looks like you may need to update the vc7.root property in your $HOME/jogl.properties file and compile with “ant win32.vc7”. It looks like the link process is not finding the import library opengl32.lib.

Thank you! The problem was that jogl.properties says:

If you are building on Windows with Visual C++ 7.0 and have installed

the compiler in somewhere other than the default location, modify this

to point to the absolute path of the VC98 directory

vc7.root=C:/Program Files/Microsoft Visual Studio .NET/Vc7

but for VS.NET 2003 it needs:

vc7.root=C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK rather than just
vc7.root=C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7

I wonder if that’s the case for VS.NET non-2003?

It might be good to change the comments, too - we really want to point to the absolute path of the parent of the library directory, if one can say that any more clearly…

Thanks again.

Thanks for the note; I’ve updated the specification of vc7.root in the properties file to specialize it for VS.NET 2003 and also updated the comment.