NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorFourmi
    • CommentTimeJul 3rd 2010
     
    After i installed BCC5.5.1, NTK 1.10F and XHARBOUR 1.2, like the manual NTK,
    i can't create any application. Lot of error messages compilation.
    Can't you help ?
    I tried with the contrib Foxlike and i obtained that :

    xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
    Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
    Compiling 'FoxLike.prg'...
    Lines 147, Functions/Procedures 8
    Generating C source output to 'FoxLike.c'...
    Done.
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    foxlike.c:
    Error E2209 \xharbour\include\hbvmpub.h 65: Unable to open include file 'assert.h'
    Error E2209 \xharbour\include\hbdefs.h 58: Unable to open include file 'stdarg.h'
    Error E2209 \xharbour\include\hbdefs.h 59: Unable to open include file 'stdio.h'
    Error E2209 \xharbour\include\hbdefs.h 60: Unable to open include file 'stdlib.h'
    Error E2209 \xharbour\include\hbdefs.h 61: Unable to open include file 'string.h'
    Error E2209 \xharbour\include\hbsetup.h 65: Unable to open include file 'limits.h'
    Error E2141 \xharbour\include\hbwince.h 183: Declaration syntax error
    Error E2293 \xharbour\include\hbwince.h 184: ) expected
    Error E2141 \xharbour\include\hbwince.h 185: Declaration syntax error
    Error E2293 \xharbour\include\hbwince.h 186: ) expected
    Error E2147 \xharbour\include\hbwince.h 187: 'wchar_t' cannot start a parameter declaration
    Error E2147 \xharbour\include\hbwince.h 188: 'wchar_t' cannot start a parameter declaration
    Error E2293 \xharbour\include\hbwince.h 189: ) expected
    Error E2293 \xharbour\include\hbdefs.h 483: ) expected
    Error E2188 \xharbour\include\hbdefs.h 489: Expression syntax
    Error E2257 \xharbour\include\hbdefs.h 521: , expected
    Error E2139 \xharbour\include\hbvmpub.h 288: Declaration missing ;
    Error E2141 \xharbour\include\hbapi.h 621: Declaration syntax error
    Error E2451 foxlike.c 62: Undefined symbol 'NULL'
    Error E2141 foxlike.c 62: Declaration syntax error
    Error E2190 foxlike.c 62: Unexpected }
    Error E2190 foxlike.c 62: Unexpected }
    Error E2040 foxlike.c 62: Declaration terminated incorrectly
    Error E2190 foxlike.c 62: Unexpected }
    Error E2190 foxlike.c 62: Unexpected }
    Error E2228 foxlike.c 62: Too many error or warning messages
    *** 26 errors in Compile ***

    Press any key to continue ou CTRL+C to stop this process now...
    Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    Fatal: Unable to open file 'C0W32.OBJ'

    Thanks for your help
    •  
      CommentAuthorjnd
    • CommentTimeJul 4th 2010
     
    Hi Fourmi,

    Sounds like a bcc55 configuration issue.

    Did you check BCC32.CFG and ILINK32.CFG settings?

    Both files are located in your c:\bcc55\bin folder. If not, you have to create them.

    [ Content of BCC32.CFG ]
    -I"c:\Bcc55\include"
    -L"c:\Bcc55\lib ;c:\Bcc55\lib\psdk"
    -lj"c:\Bcc55\lib ;c:\Bcc55\lib\psdk"


    [ Content of ILINK32.CFG ]
    -L"c:\Bcc55\lib ;c:\Bcc55\lib\psdk"

    You'll find more infos looking at the 'Step 1 - Borland CPP: Setup and Configuration' section of your 'GETTING STARTED' manual.


    Hope it helps.

    Regards,
    JN
    •  
      CommentAuthorFourmi
    • CommentTimeJul 5th 2010
     
    Sorry, i jumped the step 1.
    Ok , i created this 2 files in BCC5/bin and retried a compilation with the example BTNBMP and it don't find the OBJ, look the above message error :
    Lines 323, Functions/Procedures 7
    Generating C source output to 'BtnBmp.c'...
    Done.
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    btnbmp.c:

    Press any key to continue ou CTRL+C to stop this process now...
    Borland Resource Compiler Version 5.40
    Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
    Lines: Current 0, Total 0
    New File: BtnBmp.rc
    Lines: Current 1, Total 0
    New File: C:\WNTK4HRB\NTKRAD\BtnBmp.rc
    Lines: Current 11, Total 10
    Compiling 24: 1
    Lines: Current 14, Total 13
    Compiling BITMAP: Loupe_UP
    Lines: Current 15, Total 14
    Compiling BITMAP: Loupe_DN
    Lines: Current 16, Total 15
    Compiling BITMAP: Loupe_OFF
    Lines: Current 17, Total 16
    Compiling BITMAP: Loupe_OVR
    Lines: Current 19, Total 18
    Compiling BITMAP: FShape_UP
    Lines: Current 20, Total 19
    Compiling BITMAP: FShape_DN
    Lines: Current 21, Total 20
    Compiling BITMAP: FShape_OFF
    Lines: Current 22, Total 21
    Compiling BITMAP: FShape_OVR
    Lines: Current 0, Total 25
    New File:
    Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    Fatal: Unable to open file 'C0W32.OBJ'

    Can you help me again ?

    Thanks
    •  
      CommentAuthorjnd
    • CommentTimeJul 6th 2010 edited
     
    Hi Fourmi,

    As I told you before, it's only a matter of settings:
    It looks like you haven't created a default (or a correct) linker configuration file yet, or else you need to add an /L switch with the directory where the Borland *.lib and startup (*.obj) files are located.


    IMO, you should check the 3 following points:

    1. Check again your .cfg files in c:\bcc55\bin.

    e.g. In order to help you, you'll find below my own cfg files:
    (beware: the following lines are case sensitive)

    [ Content of BCC32.CFG ]
     
    -I"C:\BCC55\include"
    -L"C:\BCC55\lib;C:\BCC55\lib\psdk"
    -lj"C:\BCC55\lib;C:\BCC55\lib\psdk"
    

    [ Content of ILINK32.CFG ]
     
    -L"C:\BCC55\lib;C:\BCC55\lib\psdk"
    



    2. BTW, C0W32.OBJ you're talking about is part of your BCC55. It's one of the startup files located in the c:\bcc55\lib subfolder. So, have look to this directory content - just to ensure the right files are in the right place, and to confirm your installation is not corrupted...

    e.g.
    
    C:\BCC55\Lib>dir *.obj
     Le volume dans le lecteur C s'appelle OS
     Le numéro de série du volume est 5865-18D7
    
     Répertoire de C:\BCC55\Lib
    
    27/06/2000  05:01             2 758 c0d32.obj
    27/06/2000  05:01             2 761 c0d32w.obj
    27/06/2000  05:01             2 667 c0d32x.obj
    27/06/2000  05:01             3 519 c0s32.obj
    27/06/2000  05:01             2 302 c0w32.obj    <<< Here!
    27/06/2000  05:01             2 308 c0w32w.obj
    27/06/2000  05:01             2 279 c0x32.obj
    27/06/2000  05:01             2 304 c0x32w.obj
    27/06/2000  05:01               185 fileinfo.obj
    27/06/2000  05:01               852 gp.obj
    27/06/2000  05:01               271 wildargs.obj
                  11 fichier(s)           22 206 octets
                   0 Rép(s)  32 649 793 536 octets libres
    
    C:\BCC55\Lib> 
    



    3. Finally, give a look and feel free to adapt your XHRBENV.BAT file, located in the c:\wntk4hrb\ folder.(remember: This batch file needs to be run before each programming session)

    Here is a minimalist, but working XHRBENV.BAT sample:
     
    REM
    REM --- MINIMAL ENVIRONMENT TO USE NTK FOR xHARBOUR WITH BCC 5.5.1
    REM --- YOU CERTAINLY HAVE TO MODIFY IT FOR YOUR OWN CONVENIENCE...
    REM
    REM --- THEREFORE, WE'RE ASSUMING EITHER YOUR FAVORITE BATCH FOLDER IS
    REM --- ALREADY KNOWN FROM %PATH%
    REM --- OR C:\WNTK4HRB\ HAS BEEN DECLARED INTO %PATH%
    REM
    
    PATH %PATH%;C:\BCC55\BIN;C:\BCC55\INCLUDE;C:\BCC55\LIB;C:\XHARBOUR\BIN
    SET OBJ=C:\XHARBOUR\B32\OBJ
    SET LIB=C:\BCC55\LIB;C:\XHARBOUR\LIB;
    SET INCLUDE=C:\BCC55\INCLUDE;C:\XHARBOUR\INCLUDE
    
    SET BCCDIR=C:\BCC55
    SET HRBDIR=C:\XHARBOUR
    
    SET HB_ARCHITECTURE=w32
    SET HB_COMPILER=bcc32
    


    Hope it helps. Keep in touch.

    BR,
    JN
    •  
      CommentAuthorFourmi
    • CommentTimeJul 6th 2010
     
    Every things it's OK.
    Just some spaces at the end of line in my XHRBENV.BAT file,
    (copy/Paste in PDF, it's the problem, i think)
    I removed this and now i can create EXE.
    Why the NTK install executable doesn't create the folders and files for BCC5 and XHARBOUR, and the correct XHRBENV.BAT file ?
    This will be a good thing for a beginner like me.
    Now, i can make my project and test your NTK environment.

    Thanks.
    •  
      CommentAuthorjnd
    • CommentTimeJul 6th 2010 edited
     
    Hi Fourmi,

    Great, I'm happy you can get it working! :bigsmile:

    >Why the NTK install executable doesn't create the folders and files for BCC5 and XHARBOUR, and the correct
    >XHRBENV.BAT file ? This will be a good thing for a beginner like me.
    You are absolutely right! - your remark is highly relevant.
    In fact, this is on my todo list since a while, but until now I did not get so much time to do it...

    Maybe you can also contribute to NTK project by proposing such a feature in a contrib I could include in the next NTK package/release? :wink:

    Cheers,
    JN