Viktor,

with latest code I have a new error either when using an extension or when not
using it:

---------8<--------------
(E:\REPOSITORY\harbour\tests)hbmk2 vidtest
hbmk: Processing configuration: E:\harbour\bin\hbmk.cfg
Harbour 1.1.0dev (Rev. 10524)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'vidtest.prg'...
Lines 299, Functions/Procedures 6
Generating C source output to 'vidtest.c'... Done.
E:/Sviluppo/gcc/v3.3.5/usr/i386-pc-os2-emx/bin/ld.exe: No such file or directory
 for gtnul
hbmk: Error: Running C compiler. 1:
gcc.exe vidtest.c E:\TMP\hbmk_qfa2yd.c  -O3 -DTCPV40HDRS -DHB_FM_STATISTICS_OFF
-o vidtest.exe -Ie:\harbour\include -Le:\harbour\lib -lhbcpage -lhblang -lhbcomm
on -lhbcplr -lhbdebug -lhbvm -lhbrdd -lhbusrrdd -lhbuddall -lhbhsx -lhbsix -lrdd
ntx -lrddnsx -lrddcdx -lrddfpt -lhbrtl -lhbpp -lhbmacro -lhbextern -lgtnul -lgtc
gi -lgtpca -lgtstd -lgtos2 -lhbcommon -lhbrtl -lhbvm -lhbpcre -lhbzlib -lsocket
--------->8--------------


---------8<--------------
(E:\REPOSITORY\harbour\tests)hbmk2 vidtest.prg
hbmk: Processing configuration: E:\harbour\bin\hbmk.cfg
Harbour 1.1.0dev (Rev. 10524)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'vidtest.prg'...
Lines 299, Functions/Procedures 6
Generating C source output to 'vidtest.c'... Done.
E:/Sviluppo/gcc/v3.3.5/usr/i386-pc-os2-emx/bin/ld.exe: No such file or directory
 for gtnul
hbmk: Error: Running C compiler. 1:
gcc.exe vidtest.c E:\TMP\hbmk_nnxekl.c  -O3 -DTCPV40HDRS -DHB_FM_STATISTICS_OFF
-o vidtest.exe -Ie:\harbour\include -Le:\harbour\lib -lhbcpage -lhblang -lhbcomm
on -lhbcplr -lhbdebug -lhbvm -lhbrdd -lhbusrrdd -lhbuddall -lhbhsx -lhbsix -lrdd
ntx -lrddnsx -lrddcdx -lrddfpt -lhbrtl -lhbpp -lhbmacro -lhbextern -lgtnul -lgtc
gi -lgtpca -lgtstd -lgtos2 -lhbcommon -lhbrtl -lhbvm -lhbpcre -lhbzlib -lsocket
--------->8--------------

Best regards.

Maurilio.


Viktor Szakáts wrote:
>     I had not noticed that it did build vidtest.exe even in the first
>     case!? :)
>     Anyway, here with trace:
> 
> 
> Thank you. Yes, this is the MAIN entry detection code kicking in, 
> but I missed the case when no extension is given and the filename 
> gets passed to the detection routine as is, without .c extension.
> 
> Pls change line 1538 from this:
>          tmp := iif( Lower( FN_ExtGet( s_cFIRST ) ) == ".prg",
> FN_ExtSet( s_cFIRST, ".c" ), s_cFIRST )
> to this:
>          tmp := iif( Lower( FN_ExtGet( s_cFIRST ) ) == ".prg" .OR.
> Empty( FN_ExtGet( s_cFIRST ) ), FN_ExtSet( s_cFIRST, ".c" ), s_cFIRST )
> 
> I'll commit a fix after getting some feedback on pending make file patch.
> 
> Brgds,
> Viktor
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.


_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to