FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Compile Questions.
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Compile Questions.
Posted: Sun Feb 01, 2009 05:27 AM

Well, I finally had time tonight to start playing with UEStudio and FWH, but I didn't get far.
Here is the sample code"

include "FiveWin.ch"

function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "Test"
ACTIVATE WINDOW oWnd
return nil

include <winapi.ch>

When I go to compile the application, I get the following message:
Any suggestions on what I missed while setting up?

--------------------Configuration: Hello - Debug--------------------
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
main.c:
Error E2209 c:\Harbour\INCLUDE\hbdefs.h 56: Unable to open include file 'stdarg.h'
Error E2209 c:\Harbour\INCLUDE\hbdefs.h 57: Unable to open include file 'stdio.h'
Error E2209 c:\Harbour\INCLUDE\hbdefs.h 58: Unable to open include file 'stdlib.h'
Error E2209 c:\Harbour\INCLUDE\hbdefs.h 59: Unable to open include file 'string.h'
Error E2209 c:\Harbour\INCLUDE\hbdefs.h 60: Unable to open include file 'limits.h'
Error E2209 c:\Harbour\INCLUDE\hbsetup.h 56: Unable to open include file 'limits.h'
Error E2141 c:\Harbour\INCLUDE\hbwince.h 184: Declaration syntax error
Error E2293 c:\Harbour\INCLUDE\hbwince.h 185: ) expected
Error E2141 c:\Harbour\INCLUDE\hbwince.h 186: Declaration syntax error
Error E2293 c:\Harbour\INCLUDE\hbwince.h 187: ) expected
Error E2147 c:\Harbour\INCLUDE\hbwince.h 188: 'wchar_t' cannot start a parameter declaration
Error E2147 c:\Harbour\INCLUDE\hbwince.h 189: 'wchar_t' cannot start a parameter declaration
Error E2293 c:\Harbour\INCLUDE\hbwince.h 190: ) expected
Error E2293 c:\Harbour\INCLUDE\hbdefs.h 485: ) expected
Error E2188 c:\Harbour\INCLUDE\hbdefs.h 491: Expression syntax
Error E2257 c:\Harbour\INCLUDE\hbdefs.h 523: , expected
Error E2451 main.c 21: Undefined symbol 'NULL'
Error E2141 main.c 21: Declaration syntax error
Error E2190 main.c 21: Unexpected }
Error E2190 main.c 21: Unexpected }
Error E2040 main.c 21: Declaration terminated incorrectly
Error E2190 main.c 38: Unexpected }
Error E2190 main.c 38: Unexpected }
Error E2109 main.c 38: Not an allowed type in function hb_vm_SymbolInit_MAIN
*** 24 errors in Compile ***
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'C0W32.OBJ'
Hello.EXE - 25 error(s), 0 warning(s)

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Compile Questions.
Posted: Sun Feb 01, 2009 08:47 AM

please remove the last line (#include <winapi.h>) and then compile

Regards

Anser

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compile Questions.
Posted: Sun Feb 01, 2009 10:36 AM

Michel,

You have to create two Borland setup files.

It is described here:

viewtopic.php?f=17t=13098

&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 55
Joined: Thu Feb 15, 2007 01:35 AM
Re: Compile Questions.
Posted: Sun Feb 01, 2009 08:49 PM

Thank you both. Once I made those changes it compiled just beautifully. I'm very happy. :)

Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: Compile Questions.
Posted: Mon Feb 02, 2009 04:57 PM

Hello Antonio:

I'm also starting today with uestudio (it looks great), I have a question:

How to integrate a lib file to a project?

Best regards.

Manuel Mercado

manuelmercado at prodigy dot net dot mx
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compile Questions.
Posted: Mon Feb 02, 2009 05:19 PM

Dear Manuel,

You have to modify:
c:\Program Files\IDM Computer Solutions\UEStudio '06\configs\Harbour\Application

and add the library name inside it. You can do it this way (using FWH provided UEStudio config Application file):

...
LIBS4 = MyLib1.lib MyLib2.lib etc...
LIBS = $(LIBS1) $(LIBS2) $(LIBS3) $(LIBS4)

...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion