Hi Randy,

I am having the problems with the current build (note that none of these issues occur with the Beta3 build) - I am using MSVC 6):

Exaclty which version ? With SP6 included ? My version of cl.exe reports :
--------
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
--------

1. Needed to include "#IFNDEF" statements at the bottom of HBSETUP.CH since these vars seem to already be defined somewhere else. Note that Beta3 included these "#IFNDEF" statements but the current build does not.

Answered by Viktor.

2. I am still using ADS/ALS v6.22 and therefore the new RDDADS will not work for me - I must use the RDD_ADS from Beta3 instead - Perhaps it should be included in the new build for developers not yet using ADS v8.

Not a good idea. Either current version should be enhanced to compile
with older ADS (if possible), or you need to compile your rdd_ads localy.
The later seems resonable to me.

3. I have my own version of OLE2.C - I had to remove the following line from HBDATE.H...

extern HB_EXPORT HB_ULONG hb_dateMilliSeconds( void );

...otherwise I get these errors when compiling OLE2.C:

cl -TP -W3 -nologo -I..\..\include -DWIN32 -c -Fo..\..\obj\vc\ole2.obj ole2.c
ole2.c
..\..\include\HBdate.h(61) : error C2146: syntax error : missing ';' before identifier 'hb_dateMilliSeconds' ..\..\include\HBdate.h(61) : fatal error C1004: unexpected end of file found

Quite strange. Your log fragment shows that you compile your ole2.c
in CPP mode. AFAIK ole2.c from Harbour does not compile in CPP mode
and it has no chances to compile in its current form. But I may be
wrong here.

You might make an experiment and change line 60 of hbdate.h from
   extern HB_EXPORT double hb_dateSeconds( void );
to
   extern double HB_EXPORT hb_dateSeconds( void );
or
   HB_EXPORT extern double hb_dateSeconds( void );

I seem to recall problems with a placement of HB_EXPORT in MSVC
but I don't remember details.

4. I need to include "/NODEFAULTLIB:libcmt.lib" to get around link errors - I'm not sure what the implications of this are.

Are you talking about compiling Harbour itself, or about compiling
your application ? In the later case I guess you did not specify
-MT option for compiling your application. Despite the fact that
currently Harbour is not yet fully MT safe, it is compiled with
MT C runtime libraries using MSVC.

5. I can get my app to build, but get this warning:

LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF

Seems you do not use functions from ADVAPI32 library but you
specified /OPT:REF linker option and ADVAPI32 library in your
link command. Try removing ADVAPI32 from your link command.

6. When I run my Windows app, the app seems to launch ok but a DOS box appears in the background.

Looks like you did not specify GTGUI as your HB_GT_LIB (or HB_GT_DEFAULT,
if I remember correctly). Przemek, Viktor or Enrico knows the details I
guess :).

--

Marek

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to