Thanx for the suggestion. Here's what I get:

================
cl -nologo -W3 -DZLIB_DLL -MD -I../include -DDBUG_OFF -D_WIN32 -DWIN32 -
D__WIN32
__ -IL:/win32/include/zlib -DDEFAULT_CONFIG_FILE=\"c:\htdig\demo.conf\" -
DCOMMON
_DIR=\"c:\htdig\demo.db\templates\" -DBIN_DIR=\"c:\htdig\demo.db\bin\" -
DCONFIG_
DIR=\"c:\htdig\" -DIMAGE_URL_PREFIX=\"/rnt/rnm/img\" -
DDATABASE_DIR=\"c:\htdig\d
emo.db\" -Fowin32/dirent_local.obj -c dirent_local.c
dirent_local.c
dirent_local.c(26) : fatal error C1083: Cannot open include file: 'iostream.h':
No such file or directory
make[1]: *** [win32/dirent_local.obj] Error 2
make[1]: Leaving directory `/home/htdig320b4/htdig-3.2.0b4-20031005/db'
make: *** [db.build] Error 2
================

I'm using the 2003 .NET compiler (Vc7/cl.exe), and it doesn't have iostream.h 
or ostream.h headers (only the C++ versions iostream and ostream). Commenting 
out the '#include <iostream.h>' line in dirent_local.c (probably a bad idea) 
appears to let compilation continue through the BDB code without errors. The 
next error is as follows:

================
cl -DHAVE_CONFIG_H -I../db -I. -I../htword -I../htcommon -nologo -W3 -DZLIB_DLL
-MD -I../include -DDBUG_OFF -D_WIN32 -DWIN32 -D__WIN32__ -
IL:/win32/include/zlib
 -DDEFAULT_CONFIG_FILE=\"c:\htdig\demo.conf\" -
DCOMMON_DIR=\"c:\htdig\demo.db\te
mplates\" -DBIN_DIR=\"c:\htdig\demo.db\bin\" -DCONFIG_DIR=\"c:\htdig\" -
DIMAGE_U
RL_PREFIX=\"/rnt/rnm/img\" -DDATABASE_DIR=\"c:\htdig\demo.db\" -GX -
Fowin32/Conf
iguration.obj -c /Tp Configuration.cc
Configuration.cc
c:\cygwin\home\htdig320b4\htdig-3.2.0b4-20031005-B\htlib\htString.h(28) : fatal
error C1083: Cannot open include file: 'iostream.h': No such file or directory
make[1]: *** [win32/Configuration.obj] Error 2
make[1]: Leaving directory `/home/htdig320b4/htdig-3.2.0b4-20031005-B/htlib'
make: *** [htlib.build] Error 2
================

I attempted to make use of several suggested fixes for htString.h regarding 
ostream and the std namespace from the mailing lists, but none of them seemed 
to work. The issue seems to be that HAVE_STD and HAVE_NAMESPACES checks at the 
top of the file aren't working correctly. I was sure to copy over 
your .h.win32 headers as specified.

With a little tweaking around, it looks like the compile will continue *IF* I 
can get the std namespace working for the appropriate references, and *IF* I 
can get the files to reference iostream and ostream instead of the .h 
versions. Does this sound like the right path? Lots of other files have this 
same conditional block. Any ideas?

Cheers!!

>
> Please try this in a cygwin shell:
> 
> cp ./db/db.h.win32 ./db/db.h
> cp ./db/db_config.h.win32 ./db/db_config.h
> cp ./include/htconfig.h.win32 ./include/htconfig.h
> 
> make -f Makefile.win32
> 
> That should fire off a build using Microsoft's compilers...
> 
> Thanks!  Neal.
> 
> Neal Richter
> Knowledgebase Developer
> RightNow Technologies, Inc.
> Customer Service for Every Web Site
> Office: 406-522-1485
> 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to