FWH V8.05 with Visual Studio 2008 - Buildhm Tutor01 Problem?

FWH V8.05 with Visual Studio 2008 - Buildhm Tutor01 Problem?

Postby angelo.c » Tue Jun 17, 2008 3:50 pm

I have just bought FWH V8.05 and tried this first example build as such:

My Environment is FWH8.05 and Visual Studio 2008
(I use the MSVC versions of the FWH libraries)

I execute the build command:

Buildhm tutor01

and get the following errors:

FiveWin for Harbour 2.8 (MSVC++) November 2008 Harbour development power
(c) FiveTech, 1993-2008 for Microsoft Windows 95/98/NT/2000/ME and XP

Compiling...
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'tutor01.prg' and generating preprocessed output to 'tutor01.ppo'...
Lines 3524, Functions/Procedures 2
Generating C source output to 'tutor01.c'... Done.
tutor01.c
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation. All rights reserved.


gtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in
FiveHM.lib(ERRSYSW.obj); second definition ignored
Creating library tutor01.lib and object tutor01.exp
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
FiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPPOPUP
FiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPINDEX
FiveHM.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_CHMHELPTOPIC
FiveHCM.lib(BRUSHES.obj) : error LNK2019: unresolved external symbol __imp__AlphaBlend@44 referenced
in function _HB_FUN_ABPAINT
tutor01.exe : fatal error LNK1120: 4 unresolved externals
There are errors




Can you provide some guidance as to where I need to start looking to fix these issues

Best Regards,
Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Tue Jun 17, 2008 7:10 pm

Angelo,

You have to link msimg32.lib from Microsoft too, for AlphaBlend.

Regarding the CHM symbols, please compile and link source\winapi\helpchm.prg as another PRG of your application, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Tue Jun 17, 2008 10:37 pm

Thank you for your quick reply.

It now compiles/links/runs OK.

However I get these warnings: .... section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes.

Can I safely ignore these warning?

--------------------------------------------------------------------------
[SNIP]
helpchm.c
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation. All rights reserved.


gtgui.lib(gtgui.obj) : warning LNK4006: _HB_FUN_HB_GT_GUI_DEFAULT already defined in FiveHM.lib(ERRSYSW.obj); second definition ignored
Creating library tutor01.lib and object tutor01.exp
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
tutor01.exe : warning LNK4088: image being generated due to /FORCE option; image may not run
tutor01.obj : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
helpchm.obj : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(ERRSYSW.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(FWERROR.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(REG32.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(BUTTON.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(listbox.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(SAY.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(DIALOG.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
FiveHM.lib(HARBOUR.obj) : warning LNK4254: section '.CRT' (40000040) merged into '.data' (C0000040) with different attributes
[SNIP]


Thank you and best regards,
Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Tue Jun 17, 2008 11:03 pm

Angelo,

Yes, you can safely ignore those warnings.

Let me advise you that most of FWH users are using the free Borland C compiler ( http://www.fivetechsoft.com/files/freec ... etools.exe )

We do recommend you to use Borland C as it is very popular and most of utilities and libraries that you may need in a near future are built with Borland, and can't be mixed with Microsoft VC.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Wed Jun 18, 2008 12:08 pm

Hello Antonio,

I have done as you ask. I now use Borland C compiler from the Link you have provided. I can now compile/Link/run the Tutor0x.prg examples.

I saw the "testdll.prg" DLL example and tried the "buildhd.bat tutor01" batch file command. I Got the following linking error.


---------------------------------------------------------------------------
FiveWin for Harbour 8.05 - May. 2008 Harbour development power
(c) FiveTech, 1993-2008 for Microsoft Windows 95/98/NT/2000/ME and XP
Compiling...
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tutor01.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'MAINDLL.OBJ'
* There are errors

I can't find that obj file on my system.
Can you supply me with the 'MAINDLL.OBJ' please.

Thank you and best regards.
Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Wed Jun 18, 2008 12:48 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests