Page 1 of 2

Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 12:27 am
by byron.hopp
Do older versions of FiveWin, and xHarbour not work on Windows 7. I can't seem to compile on Windows 7 32 bit.

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 1:27 am
by Adolfo
Byron...

Any version of FWH with Harbour or xHarbour will work with no problem in W7

FW for Clipper won't

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 1:57 am
by byron.hopp
Here is a simple "Hello World" (it's about my speed) app.
Where am I going wrong?

Source Code of App Start:
Function Main
?"Hello World."
Return nil
End Source Code:

Hello.exe.log for my app
Type: C >>>xhb.exe -o"hello.c" -m -n -p -q -gc0 -I"c:\xhb\include" -I"c:\xhb\include\w32" "hello.prg"<<<


Type: C >>>Couldn't build: hello.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>> 1275<<<
End:

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 6:44 am
by Antonio Linares
Byron,

Please add #include "FiveWin.ch" at the top of your PRG

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 7:02 am
by byron.hopp
No Difference, after adding:

#include "Fivewin.ch"

???

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 7:23 am
by Antonio Linares
Byron,

Please go to FWH/samples folder and do:

buildh.bat tutor01

it should build and execute the tutor01.exe. This checks that your settings are fine

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 7:30 am
by byron.hopp
I'm using xHarbour.

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 7:32 am
by byron.hopp
xharbour builder Hello.exe.xbp:

CINI =
C_OUTPUTFOLDER =
DEFFILE =
INCLUDEFOLDERS =
LAUTORUN =
LDEBUG = .F.
LGUI = .T.
LIBFOLDERS =
LMT = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE =
MYC_FLAGS =
MYDEFINES =
MYLINK_FLAGS =
MYPRG_FLAGS =
MYRC_FLAGS =
MYSLY_FLAGS =
OUTPUTFOLDER =
PRG_OUTPUTFOLDER =
RC_OUTPUTFOLDER =
RUNARGUMENTS =
SLY_OUTPUTFOLDER =
STARTIN =
TARGETFOLDER =

[hello.prg]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 7:41 am
by Antonio Linares
Byron,

for xHarbour do, from FWH\samples folder:

buildx.bat tutor01

Please try this first to check that your settings are fine, thanks

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 3:09 pm
by byron.hopp
I get the following:

Compiling...
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
* There are errors

But my xHarbour Builder seems to be in c:\xHb (this is where it installed it).
And in my c:\xhb\bin directory I do not find Harbour.exe it has:

xBuild.exe
xBuildW.exe
xCC.exe
xDebugW.exe
xEditW.exe
xHB.exe
xLib.exe
xLink.exe
xPrompt.exe
xRC.exe

I also do not have a c:\bcc55 directory.

I don't think this batch file has a chance.

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 3:57 pm
by TimStone
Byron,

I assume you are using xBuilder ? It would be installed in c:\xhb. Be sure your version of FIve WIn is in c:\FWH.

Are you trying to do a graphical interface ? If so, there are other libraries you will need to put into xBuilder.

I am using this combination daily and there are no issues with FWH.

Tim

Re: Harbour / FiveWin on Windows 7

Posted: Tue May 15, 2012 4:01 pm
by TimStone
Byron,

If you need a hand, email me direct at timstone@mlsdg.onmicrosoft.com and I can go online with you to look at this. It should be pretty simple to get you running. You can call me at 949 589-3186.

Tim

Re: Harbour / FiveWin on Windows 7

Posted: Sat May 19, 2012 5:50 pm
by byron.hopp
Update, I went in Antonio's direction, and although I could not get xBuild.bat to work on my workstation, I did get a batch file to compile, and link.
So I am up and running, here is an example:

xhb.exe -o"EtDe.c" -m -n -p -q -gc0 -I"C:\fwh\include" -I"c:\xHb\include" -I"c:\xHb\include\w32" "EtDe.PRG" > Output.log
xhb.exe -o"Funcs.c" -m -n -p -q -gc0 -I"C:\fwh\include" -I"c:\xHb\include" -I"c:\xHb\include\w32" "Funcs.prg" >> Output.log
xrc.exe -fo"ETDE.res" -I"c:\xHb\c_include" -I"c:\xHb\c_include\win" "ETDE.RC" >> Output.log
xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"c:\xHb\lib" -LIBPATH:"c:\xHb\c_lib" -LIBPATH:"c:\xHb\c_lib\win" -LIBPATH:"C:\fwh\lib" "EtDe.obj" "Funcs.obj" "ETDE.res" c:\fwh\lib\mcsfivex.lib FiveHCM.lib FiveHMX.lib OptG.lib xhb.lib dbf.lib ntx.lib cdx.lib rmdbfcdx.lib activex.lib crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"etde.exe" >> Output.log

I am hopefully going to work with Tim to see why my xBuildw.exe does not run on Windows 7.
Thank you everyone for your help, Tim, look forward to your input.

Byron ...

Re: Harbour / FiveWin on Windows 7

Posted: Sat May 19, 2012 6:27 pm
by Antonio Linares
Byron,

Very good! :-)

Thanks for sharing it

Re: Harbour / FiveWin on Windows 7

Posted: Mon Apr 28, 2014 12:15 pm
by dpaterso
Hi folks.

It's been a while!!! How're things???

I can only assume that this issue was resolved??? Only problem: I don't really see the solution posted here???

I've no option but to now install my old xHB and FWH (January 2007) on a Windows 7 (32-bit) workstation. Just ran a standard install (used all defaults) of both but cannot compile anything. My error log file is pretty much the same as the thread starter's:

Type: C >>>xhb.exe -o"Fleet9.c" -m -n -p -q -gc0 -I"C:\fwh\include" -I"C:\xHB\include" -I"C:\xHB\include\w32" "Fleet9.prg"<<<


Type: C >>>Couldn't build: Fleet9.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>> 1278<<<


By the way: it's not the application i.e. this very same application compiles no problem on XP with the exact same xHB / FWH installation and configuration. What's more: none of the (simple) sample files wil compile either.

Regards,

Dale.