Hi,

After updating from svn I tried to build Wince libs using EVC4 and got these warnings and error:

<<<<<<<<<
Harbour Preprocessor 1.0.0
Copyright 1999-2008, http://www.harbour-project.org
pptable.c
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

genobj32.c
p:\programacion\harbour\source\compiler\genobj32.c(549) : warning C4244: '=' : conversion from 'short ' to 'unsigned char ', possible loss of data
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

filesys.c
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

gtwvt.c
p:\programacion\harbour\source\rtl\gtwvt\gtwvt.c(1452) : warning C4013: 'SetWindowLongPtr' undefined; assuming extern returning int
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

gtgui.c
gtdef.c
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

hbrun.c
external.c
LINK : warning LNK4044: unrecognized option '/MANIFEST:NO'; ignored
gtwvt.lib(gtwvt.obj) : error LNK2019: unresolved external symbol SetWindowLongPtr referenced in function hb_gt_wvt_WndProc
bin\vcce\hbrun.exe : fatal error LNK1120: 1 unresolved externals
<<<<<<<<<<

I am not quite sure how to determine exact value for _MSC_VER since this piece of code:

// line 1449 $Id: gtwvt.c 8986 2008-07-21 19:54:54Z druzus $
#if defined(_MSC_VER) && (_MSC_VER <= 1200)
SetWindowLong( pWVT->hWnd, GWL_STYLE, WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_THICKFRAME );
#else
SetWindowLongPtr( pWVT->hWnd, GWL_STYLE, WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_THICKFRAME );
#endif

makes that execution goes to SetWindowLongPtr. And this is the problem. Evc4 does not have this function. Maybe it could be hacked in hbwince.h making some kind of #define or maybe it could be solved determining the exact value of _MSC_VER for Evc4 and adjusting accordingly the above piece of code.

I am not a C expert nor a user C. So for me it is difficult to help you in doing that :-(

Any help I can give you, please, tell me.

Regards,
José Luis Capel

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to