[OpenAFS-devel] MSVC++ 5 problems with current CVS

Joe Buehler jbuehler@hekimian.com
Thu, 13 Nov 2003 09:17:18 -0500


There are a few problems I ran into when building the latest CVS
with Visual C++ 5:

1. The /no_robust midl option is invalid, and /WX then forces a fatal
error instead of a warning.

--- ./src/WINNT/afsadmsvr/NTMakefile.~1~	2003-08-12 00:06:37.000000000 -0400
+++ ./src/WINNT/afsadmsvr/NTMakefile	2003-11-12 14:52:33.000000000 -0500
@@ -105,7 +105,6 @@
             /align 8 \
             /pack 8 \
             /W3 \
-           /WX \
  	   /no_robust \
             /nologo

2. The shobjidl.h file does not exist.  Taking it out doesn't cause any compile
problems.

--- ./src/WINNT/client_creds/shortcut.cpp.~1~	2003-03-14 15:07:55.000000000 -0500
+++ ./src/WINNT/client_creds/shortcut.cpp	2003-11-13 09:01:46.000000000 -0500
@@ -18,7 +18,7 @@
  #include <windowsx.h>
  #include <shlobj.h>
  #include <shellapi.h>
-#include <shobjidl.h>
+//#include <shobjidl.h>
  #include <shlguid.h>
  #include "shortcut.h"


3. afs_shl_ext.dll fails to link with massive (200) undefined symbol errors.  I
looked at it a little, and there are apparently missing libraries,
and a conflict between MFC and msvcrt that needs to be resolved by someone
in the know.
-- 
Joe Buehler