When compiling, the path of bcc7 is always c:\bcc7

When compiling, the path of bcc7 is always c:\bcc7

Postby teddydjohan » Sat Sep 02, 2017 2:53 am

Guys,

Need help on this issue. I change the path in the buildx.bat according to the location of my fivewin, xharbour, and bcc directory. However, the compiler keeps pointing to c:\bcc7 even though the path in buildx.bat has been set to d:\FiveWin\bcc7.

Why is it keep pointing to c:\bcc7 and not to the defined path I set in buildx.bat?

This is the buildx.bat
Code: Select all  Expand view

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for xHarbour 17.07 - July 2017          xHarbour development power ³Ü
ECHO ³ (c) FiveTech 1993-2017 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO Compiling...

if "%FWDIR%" == "" set FWDIR=D:\FiveWin\fwh
if "%XHDIR%" == "" set XHDIR=D:\FiveWin\xhb
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

set hdir=%XHDIR%
set hdirl=%hdir%\lib
set bcdir=D:\FiveWin\bcc7
set fwh=%FWDIR%

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.log
@type warnings.log

echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE

IF EXIST %1.rc %bcdir%\bin\brc32.exe -r -I%bcdir%\include -I%bcdir%\include\windows\sdk %1

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
 


This is the compile result:
Code: Select all  Expand view

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for xHarbour 17.07 - July 2017          xHarbour development power │▄
(c) FiveTech 1993-2017 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20161218)
Copyright 1999-2016, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'tutor01.prg' and generating preprocessed output to 'tutor01.ppo'...
Generating C source output to 'tutor01.c'...
Done.
Lines 13, Functions/Procedures 1, pCodes 14
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies,
 Inc.
Warning W8123: Path 'c:\bcc7\include\dinkumware' not found - path ignored in opt
ion '-I'
Warning W8123: Path 'c:\bcc7\include\windows\crtl' not found - path ignored in o
ption '-I'
Warning W8123: Path 'c:\bcc7\include\windows\rtl' not found - path ignored in op
tion '-I'
Warning W8123: Path 'c:\bcc7\include\windows\sdk' not found - path ignored in op
tion '-I'
Warning W8123: Path 'c:\bcc7\include\windows\sdk\atl' not found - path ignored i
n option '-I'
Warning W8123: Path 'c:\bcc7\lib' not found - path ignored in option '-L'
Warning W8123: Path 'c:\bcc7\lib\psdk' not found - path ignored in option '-L'
tutor01.c:
 


Teddy Djohan
teddydjohan
 
Posts: 18
Joined: Wed Aug 16, 2017 5:38 am

Re: When compiling, the path of bcc7 is always c:\bcc7

Postby Antonio Linares » Sat Sep 02, 2017 4:54 am

Teddy,

Please modify c:\bcc7\bin\bcc32.cfg and c:\bcc7\bin\ilink32.cfg files
regards, saludos

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

Re: When compiling, the path of bcc7 is always c:\bcc7

Postby Enrico Maria Giordano » Sat Sep 02, 2017 6:52 am

Antonio Linares wrote:Teddy,

Please modify c:\bcc7\bin\bcc32.cfg and c:\bcc7\bin\ilink32.cfg files


Maybe

D:\FiveWin\bcc7\bin\bcc32.cfg and D:\FiveWin\bcc7\bin\ilink32.cfg

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: When compiling, the path of bcc7 is always c:\bcc7

Postby teddydjohan » Mon Sep 04, 2017 1:26 am

Thanks, Antonio and Enrico.

That fixes my issue.



Teddy
teddydjohan
 
Posts: 18
Joined: Wed Aug 16, 2017 5:38 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 118 guests