Compile Questions.

Compile Questions.

Postby MichaelMo » Sun Feb 01, 2009 5: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)
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: Compile Questions.

Postby anserkk » Sun Feb 01, 2009 8:47 am

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

Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Compile Questions.

Postby Antonio Linares » Sun Feb 01, 2009 10:36 am

Michel,

You have to create two Borland setup files.

It is described here:
viewtopic.php?f=17&t=13098
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

Re: Compile Questions.

Postby MichaelMo » Sun Feb 01, 2009 8:49 pm

Thank you both. Once I made those changes it compiled just beautifully. I'm very happy. :)
MichaelMo
 
Posts: 55
Joined: Thu Feb 15, 2007 1:35 am

Re: Compile Questions.

Postby mmercado » Mon Feb 02, 2009 4: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
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Compile Questions.

Postby Antonio Linares » Mon Feb 02, 2009 5: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
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 90 guests