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.
  1.  
    Hi I have downloaded NTK Project and Installed on C:\WNTK4HRB, I have Borland C, installed in C:\Borland\BCC55, Xharbour installed in c:\xhb

    Content of XHRBENV.BAT is under
    PATH %PATH%;C:\BorLand\BCC55\BIN;C:\BorLand\BCC55\INCLUDE;C:\BorLand\BCC55\LIB;c:\hb\bin;d:\djgpp\bin;d:\tasm\bin;d:\ajm
    SET OBJ=c:\xhb\b32\obj
    SET LIB=c:\Borland\BCC55\LIB;C:\xhb\lib;D:\other\cl52
    SET INCLUDE=C:\BorLand\BCC55\INCLUDE;C:\xhb\include;d:\other\cl52

    IF EXIST D:DJGPP\DJGPP.ENV SET DJGPP=D:\DJGPP\DJGPP.ENV
    IF NOT EXIST D:DJGPP\DJGPP.ENV SET Bison_Simple=D:\DJGPP\share\bison\bison.simple

    SET HB_ARCHITECTURE=w32
    SET HB_COMPILER=bcc32

    SET C_USR=
    SET L_USR=


    SET BCCDIR=C:\Borland\BCC55
    SET HRBDIR=D:\xhb
    SET HB_ARCHITECTURE=w32
    SET HB_COMPILER=bcc32
    rem SET BISON_SIMPLE=BorLand\BCC55\BIN\BISON.SIM

    While compileing simple Hello.prg
    Function Main
    Alert("Hello")

    It gives following Error, Can you Please help me out on this !

    C:\WNTK4HRB>mk test
    Harbour 3.1.0dev (Rev. 16977)
    Copyright (c) 1999-2011, http://harbour-project.org/
    Compiling 'test.prg'...
    Lines 2, Functions/Procedures 1
    Generating C source output to 'test.c'... Done.
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    test.c:
    Error E2257 test.c 18: , expected
    Error E2451 test.c 21: Undefined symbol 'hb_vm_SymbolInit_TEST'
    Error E2141 test.c 36: Declaration syntax error
    *** 3 errors in Compile ***
    •  
      CommentAuthorAbbougaga
    • CommentTimeAug 5th 2011 edited
     
    Hi Vishnu,

    Welcome aboard!

    It sounds like you're not using the right xharbour version. AFAIK, since v1.10 (and later), NTK only supports the (stable) free xHarbour 1.2.1 for BCC55, which is available from xharbour.org or from NTK download page:
    http://www.ntkproject.com/download.php?language=1

    imo, you should:

    1)Download and install xHarbour 1.2.1
    2)Have a look to chapters 0.6, 0.7 and 0.8 of the NTK's Getting Started manual, in order to properly configure your whole dev plateform (NTK+XHRB+BCC)
    3)Adapt xHrbEnv.bat, MK.bat and MKrad.bat to your own environment
    3)Then, just try to rebuild basic tutorials/samples like hello, hello1.prg into your \wntk4hrb\ntkrad\ directory.

    e.g MKRAD hello1
    (see result in the attached screenshot)

    Hope this helps. Let us know.

    Cheers,
    Ab
    •  
      CommentAuthorxbasefan
    • CommentTimeAug 5th 2011 edited
     
    hi vishnu.baroda, welcome aboard!
    similar issues have been already discussed here:
    http://www.ntkproject.com/forum_ntk/comments.php?DiscussionID=22&page=1#Item_0
    hope you find this useful
    wilson