Page 1 of 1

OBJ Compiling help

Posted: Wed Dec 07, 2016 8:43 pm
by liviod
We are looking for help on compiling Clipper with HMG 3.4.3 64 bits I downloaded from app.php/page/download

But I did not find a link to register in the forums.

ucp.php?mode=login

Here is the original Clipper Compiler line:

rtlink file NDSm000,nds,CTUS LIB CT52,esc30_52

Here we have 2 OBJ files that are not working compiling IAMIDLE.OBJ CTUS.OBJ

Here is the error on some .obj files I got compiling.

C:\tmp\HARBOUR-64\bin\hbmk2.exe -o0liv NDSm000.prg NDS.prg IAMIDLE.OBJ CTUS.OBJ -lct52 -lESC30_52 -lNANFOR -lCPMI
Harbour 3.2.0dev (r1604201603)
Copyright (c) 1999-2016, http://harbour-project.org/
Compiling 'NDSm000.prg'...
Compiling 'NDSm110.prg'...
Compiling 'NDSm120.prg'...
Compiling 'NDSm130.prg'...
Compiling 'NDSt210.prg'...
Compiling 'NDSt220.prg'...
Compiling 'NDSr100.prg'...
Compiling 'NDSR200.prg'...
Compiling 'NDSr110.prg'...
Compiling 'NDSr300.prg'...
Compiling 'NDSr400.prg'...
Compiling 'NDSr500.prg'...
Compiling 'NDSr600.prg'...
Compiling 'NDSr700.prg'...
Compiling 'NDSr800.prg'...
Compiling 'NDSr900.prg'...
Compiling 'NDSr10.prg'...
Compiling 'NDSr1100.prg'...
Compiling 'NDSr830.prg'...
Compiling 'NDSr310.prg'...
Compiling 'NDSu410.prg'...
Compiling 'NDSu440.prg'...
Compiling 'NDSu450.prg'...
Lines 69, Functions/Procedures 74
Generating C source output to 'C:\Users\loko\AppData\Local\Temp\hbmk_wa7zga.dir\NDSm000.c'... Done.
Compiling 'NDS.prg'...
Lines 819, Functions/Procedures 42
Generating C source output to 'C:\Users\loko\AppData\Local\Temp\hbmk_wa7zga.dir\NDS.c'... Done.
gcc.exe: error: IAMIDLE.o: No such file or directory
gcc.exe: error: CTUS.o: No such file or directory
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/loko/AppData/Local/Temp/hbmk_wa7zga.dir/NDSm000.o C:/Users/loko/AppData/Local/Temp/hbmk_wa7zga.dir/NDS.o IAMIDLE.o CTUS.o -mconsole -Wl,--start-group -lct52 -lESC30_52 -lNANFOR -lCPMI -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -o0liv.exe -L"C:/tmp/HARBOUR-64/lib/win/mingw64"


Please Help.

Best Regards.

Liviod....

Re: OBJ Compiling help

Posted: Wed Dec 07, 2016 9:02 pm
by liviod

OBJ Compiling help

Posted: Wed Dec 07, 2016 9:28 pm
by Pablo César
Hi liviod, welcome to our community. (By the way, what is your name?)

Let me give you some tips prior I do not know about your Harbour knowledges.

If you intentions is just to compile your Clipper sources codes in CONSOLE mode, there are some considerations to be taken.

1. You can use 3.4.3 version and can be used 32 bits for your propose, I guess.
2. You will need to know some Harbour basic knowledge. As beeing structureted as Clipper 5 with functions structuration. The first function must be "Function Main". Basically Harbour is 99% compatible with Clipper source.
3. Yours old OBJ files and libs, you will not longer be used in Harbour. You have to look up for equivalent functions you need for it.
4. CT functions, mostly are already in Harbour.
5. Do not use rtlink any more. Is harbour + other C compiler. In our case here in HMG will be used MinGW
6. If this is the first compiling try, I advice you to take SAMPLES and see especially for console (in case) otherwise you will see other examples in GUI (graphical mode)
7. There is some basic for console compilation. See at DOC in Basics/Building HMG Applications
8. This DJGPP is a graphical lib for Clipper. Doesn't it ? Here you will not be used, I guess.

Let us know what experience you have in Harbour and what you want: console or in GUI mode ?

Re: OBJ Compiling help

Posted: Thu Dec 08, 2016 12:07 am
by danielmaximiliano
Welcome liviod

Saludos / Regard form Buenos Aires Argentina

Re: OBJ Compiling help

Posted: Thu Dec 08, 2016 8:49 am
by serge_girard
Hi liviod,

Welcome from Belgium!

Serge

Re: OBJ Compiling help

Posted: Thu Dec 08, 2016 9:40 pm
by esgici
Hello liviod

Welcome wonderful world of HMG :arrow:

Saludos / Regard form Turkiye :D