Re: [greenstone-users] problem with compiling the source code

From Michael Dewsnip
DateWed, 20 Aug 2003 13:39:59 +1200
Subject Re: [greenstone-users] problem with compiling the source code
In-Reply-To (1061301294-3f422c2ec0e67-webmail-utoronto-ca)
Hi Kim,

This problem seems to be particular to certain versions of the Microsoft Visual
C++ compiler. For example, we can compile this fine using the version 12.00.8804
compiler, but we get the problem you describe with version 12.00.8168. (To check
the version of the compiler you are using, run cl.exe with no arguments).

I suggest you look at the Microsoft site for updates to your Visual
Studio: http://msdn.microsoft.com/vstudio/previous/vs6/downloads/default.aspx

In particular, you might like to download the latest Visual Studio service pack
(unfortunately, it is quite large).

Regards,

Michael

PS Just to clear up one point - you usually only need to compile either the web
library (if you have a separate web server such as apache) or the local library
(otherwise). You shouldn't need to do both.


kim.hsieh@utoronto.ca wrote:

> Hi
>
> I follow the instruction given by install.txt, which come along with the
> source file that I downloaded from www.greenstone.org a few days ago.
> According to the instruction, the library.exe and server.exe
> files needs to be compiled individually with the following 2 lines:
>
> 1.nmake /f win32.mak
> 2.nmake /f win32.mak LOCAL_LIBRARY=1
>
> when I compiled with the first line, it worked fine. I successfully get
> library.exe in cgi-bin folder; however, I got some fatal error messages
> while
> compileing the second line: nmake /f win32.mak LOCAL_LIBRARY=1, with
> nmake. I tried several times and I always got the same fatal error.
>
> Can anyone who has compiled the source code before give me some advice on this?
> By the way, I compiled the source code with Visual C++ 6.0 Enterpreneur
> Edition on a Windows XP Professional Platform.
>
> Thanks a lot,
> Kim Hsieh
>
> The following is the error message I got:
> httpreq.cpp
> C:Documents and SettingsIversonDesktop eedgsdllib ext_t.h(205) : error
> C2
> 678: binary '==' : no operator defined which takes a left-hand operand of
> type '
> const class text_t' (or there is no acceptable conversion)
> C:Documents and SettingsIversonDesktop eedgsdllibdisplay.h(122) : error
> C
> 2678: binary '==' : no operator defined which takes a left-hand operand of
> type
> 'const class text_t' (or there is no acceptable conversion)
> C:Documents and SettingsIversonDesktop eedgsdllibdisplay.h(127) : error
> C
> 2678: binary '!=' : no operator defined which takes a left-hand operand of
> type
> 'const class text_t' (or there is no acceptable conversion)
> httpreq.cpp(252) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(260) : error C2678: binary '!=' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(288) : error C2678: binary '!=' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(317) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(323) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(326) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(329) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(333) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(336) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(339) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(343) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(346) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(349) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(353) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(356) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(359) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> httpreq.cpp(362) : error C2678: binary '==' : no operator defined which takes
> a
> left-hand operand of type 'class text_t' (or there is no acceptable
> conversion)
> NMAKE : U1077: 'cl' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:PROGRA~1MICROS~4VC98BINNMAKE.EXE' : return
> co
> de '0x2'
> Stop.
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users