Compile Error

Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 8:52 pm

Hi,

I am getting the following compile error when I try to rebuild an app that works with an older version of FWH (7.11)

Any ideas?

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for xHarbour 10.9 - Sep. 2010 xHarbour development power │▄
│ (c) FiveTech, 1993-2010 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'EzSat.prg' and generating preprocessed output to 'EzSat.ppo'...
Lines 23613, Functions/Procedures 274
Generating C source output to 'EzSat.c'...
Done.
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
EzSat.c:
Warning W8075 EzSat.prg 23519: Suspicious pointer conversion in function HB_FUN_
MYOPENCOMM
Warning W8075 EzSat.prg 23566: Suspicious pointer conversion in function HB_FUN_
INTERNETFINDNEXTFILE
Warning W8075 EzSat.prg 23588: Suspicious pointer conversion in function HB_FUN_
INTERNETREADFILE
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Too many DEF file names: \bcc582\lib\wininet.LIB
* Linking errors *
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 9:04 pm

This is my Buildx.bat file:

Code: Select all  Expand view

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for xHarbour 10.9 - Sep. 2010           xHarbour development power ³Ü
ECHO ³ (c) FiveTech, 1993-2010     for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

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

ECHO Compiling...

if "%FWDIR%" == "" set FWDIR=c:\FWH
if "%XHDIR%" == "" set XHDIR=c:\xharbour
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=c:\bcc582
set fwh=%FWDIR%

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w0 /p %2 %3 > comp.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.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 -r -I%bcdir%\include %1

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

echo \mylib\xWndmove.obj + >> b32.bc
echo \mylib\xwndprint.obj + >> b32.bc
echo \mylib\xButton.obj + >> b32.bc

echo \fwh\lib\Fivehx.lib \fwh\lib\FiveHC.lib + >> b32.bc
echo %hdirl%\rtl.lib + >> b32.bc
echo %hdirl%\vm.lib + >> b32.bc
echo %hdirl%\%GT%.lib + >> b32.bc
echo %hdirl%\lang.lib + >> b32.bc
echo %hdirl%\macro.lib + >> b32.bc
echo %hdirl%\rdd.lib + >> b32.bc
echo %hdirl%\dbfntx.lib + >> b32.bc
echo %hdirl%\dbfcdx.lib + >> b32.bc
echo %hdirl%\dbffpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\debug.lib + >> b32.bc
echo %hdirl%\common.lib + >> b32.bc
echo %hdirl%\pp.lib + >> b32.bc
echo %hdirl%\pcrepos.lib + >> b32.bc
echo %hdirl%\ct.lib + >> b32.bc
echo %hdirl%\zlib.lib + >> b32.bc
echo %hdirl%\hbzip.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc

rem echo \fwh\source\classes\control.obj + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
echo %hdir%\lib\rddads.lib + >> b32.bc
echo %hdir%\lib\Ace32.lib + >> b32.bc


echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib >> b32.bc

REM Lines added by me.
echo \fwh_orig\lib\BtnGet.LIB + >> b32.bc
echo \bcc582\lib\wininet.LIB + >> b32.bc
echo \xharbour_orig\lib\TIP.LIB + >> b32.bc
echo \fwh_orig\samples\BoxDesign.obj + >> b32.bc
echo \fwh_orig\lib\hbcomm.lib + >> b32.bc
echo \fwh_orig\lib\mselect.obj + >> b32.bc
echo \mylib\cs32.obj + >> b32.bc
echo \mylib\MBkeygen.obj,  >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc

rem uncomment this line to use the debugger and comment the following one
if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi¢n PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby ukoenig » Fri Oct 29, 2010 9:20 pm

Hello Jeff,

did You delete the old OBJ-files / directory ? ( will force a complete new rebuild )

These xHarbour-Files I couldn`t find in You Link-file :
( The BC-files are the same. )

echo $(HBDIR)\lib\ct.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc


REM Lines added by me.
...
echo \bcc582\lib\wininet.LIB + >> b32.bc

Your are using functions from this Lib ?

Best Regards
Uwe :lol:
Last edited by ukoenig on Fri Oct 29, 2010 9:55 pm, edited 7 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 9:27 pm

Hi Uwe,

I just tried. Same errors :(
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby ukoenig » Fri Oct 29, 2010 10:07 pm

Hello Jeff,

I added Wininet.lib to my Link-file and got the following Error :
( used new BCC 6.3 )

Image

is it possible for You, to disable the Functions, You are using from this Lib ?
( let`s test, what happens )

Best Regards
Uwe :roll:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Compile Error

Postby James Bott » Fri Oct 29, 2010 10:34 pm

Jeff,

Did you recompile all your LIBs with the newer FWH/xHarbour? You will need to do this whenever the PCODE version is changed by the xHarbour developers. It has changed a number of times since version 7.1.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 11:14 pm

Hi James,

Good point. I forgot to recompile my old libs.
I will give it a shot.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 11:33 pm

Ok, so I fixed a couple of issues with my buildx.bat and recompiled my old libs.

When I launch the app I get the following error (never seen this one before):

Image
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby Jeff Barnes » Fri Oct 29, 2010 11:37 pm

I think the above error is cause by the older dll files for ADS....
ace32.dll
adsloc32.dll
axcws32.dll

They all have a file data in 2007

Where can I get updated version of the above files?

If these need to be extracted from another file could you please let me know how this is done?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby ukoenig » Sat Oct 30, 2010 12:02 am

Jeff,

a website with the biggest DLL-collection, where You can find the DLL`s You are looking for.

http://alldll.net/dll-list-letter-A-page-1.html

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Compile Error

Postby Jeff Barnes » Sat Oct 30, 2010 12:24 am

Thanks for your help :)

The compile problem is mostly solved.

The program now compiles and runs ... I still get the following "Warnings":
Warning W8075 ezsat.prg 23519: Suspicious pointer conversion in function HB_FUN_
MYOPENCOMM
Warning W8075 ezsat.prg 23566: Suspicious pointer conversion in function HB_FUN_
INTERNETFINDNEXTFILE
Warning W8075 ezsat.prg 23588: Suspicious pointer conversion in function HB_FUN_
INTERNETREADFILE
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
* Application successfully built *


In the older version I had no warnings ... this is the offending code:
Code: Select all  Expand view

#pragma BEGINDUMP

#include <hbapi.h>
#include <windows.h>
#include "wininet.h"
#define IF(x,y,z) ( (x) ? (y) : (z) )

unsigned long OpenComm( char *, WORD, WORD );

HB_FUNC( MYOPENCOMM )
{
   WORD cbInQueue  = IF( ISNUM( 2 ), hb_parni( 2 ), 1024 );
   WORD cbOutQueue = IF( ISNUM( 3 ), hb_parni( 3 ),  128 );

   hb_retnl( ( unsigned long ) OpenComm( hb_parc( 1 ), cbInQueue, cbOutQueue ) );
}


HB_FUNC( INTERNETFINDNEXTFILE )
{
    hb_retl( InternetFindNextFile( ( HINTERNET ) hb_parnl( 1 ), hb_parc( 2 ) ) );
}


HB_FUNC( INTERNETREADFILE )
{
    DWORD nBytesRead;

    BOOL lSuccess = InternetReadFile( ( HINTERNET ) hb_parnl( 1 ), hb_parc( 2 ), hb_parclen( 2 ), &nBytesRead );

    if ( !lSuccess )
        hb_retnl( -1 );
    else
        hb_retnl( nBytesRead );
}


#pragma ENDDUMP


 
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Error

Postby Antonio Linares » Sat Oct 30, 2010 6:14 am

Jeff,

Please make these changes:

hb_retnl( ( unsigned long ) OpenComm( ( char * ) hb_parc( 1 ), cbInQueue, cbOutQueue ) );

hb_retl( InternetFindNextFile( ( HINTERNET ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ) ) );

BOOL lSuccess = InternetReadFile( ( HINTERNET ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ), hb_parclen( 2 ), &nBytesRead );
regards, saludos

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

Re: Compile Error

Postby Jeff Barnes » Sat Oct 30, 2010 12:10 pm

Thanks Antonio. My compile issue is now resolved :)
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 102 guests