>-----Original Message-----
>From: Viktor Szakáts [mailto:harbour...@syenar.hu] 
>Sent: Friday, June 05, 2009 12:58 PM
>To: Harbour Project Main Developer List.
>Subject: Re: [Harbour] hash() in harbour
>
>Cannot tell for sure, but you seemed to have moved the test 
>from it's original dir (so you have an unmatching .prg and 
>.hbc file now), and try to compile .prg from there.
>
>One sign of this is that we have no test1.prg in 
>contrib/rddsql/tests/ dir.
>
>Probably you copied sddmy/tests/test1.prg to there, which is 
>unnecessary and just creates such problems unless you adjust 
>lib list manually.
>
>For zero configuration leave everything in original location and use:
>hbmk2 <test.prg>
>
>You can of course move everything, but in this case either 
>move the .hbc files with them, or add libs manually. In your 
>example, you probably miss '-lsddmy' option.
>
>Brgds,
>Viktor

No. Did you try ?
Pls. See (with set and path) :

C:\harbour\contrib\rddsql\tests>set hb
HB_COMPILER=mingw

C:\harbour\contrib\rddsql\tests>set path
Path=C:\harbour-11\mingw\;c:\harbour-11\bin;C:\BATCH;C:\ExeCom;C:\Windows\System32;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

C:\harbour\contrib\rddsql\tests>hbmk2 test1.prg
hbmk: Processing: rddsql.hbc
Harbour 1.1.0dev (Rev. 11179)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'test1.prg'...
Lines 572, Functions/Procedures 3
Generating C source output to 'test1.c'... Done.
test1.o:test1.c:(.data+0x128): undefined reference to `HB_FUN_SDDMY'
collect2: ld returned 1 exit status
hbmk: Error: Running linker. 1
c:\harbour-11\mingw\bin\gcc.exe test1.o hbmk_ft2nw2.o    -mconsole 
-Wl,--start-group -lrddsql -lhbcpage -lhblang -lhbcommon -
lhbcplr -lhbdebug -lhbvm -lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx 
-lrddfpt -lhbuddall -lrddnsx -lhbrtl -lhbpp -lh
bmacro -lhbextern -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbpcre 
-lhbzlib -lkernel32 -luser32 -lgdi32 -ladvapi32 -l
ws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -lole32 -loleaut32 -luuid 
-lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -Wl,--en
d-group -otest1.exe -Lc:/harbour-11/lib/win/mingw -Lc:/harbour-11/lib

Or with -lsddmy :

C:\harbour\contrib\rddsql\tests>hbmk2 test1.prg -lsddmy
hbmk: Processing: rddsql.hbc
Harbour 1.1.0dev (Rev. 11179)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'test1.prg'...
Lines 572, Functions/Procedures 3
Generating C source output to 'test1.c'... Done.
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x33e): 
undefined reference to `mysql_row_s...@8'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x34f): 
undefined reference to `mysql_fetch_...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x366): 
undefined reference to `mysql_fetch_leng...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x396): 
undefined reference to `mysql_free_res...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x3df): 
undefined reference to `mysql_real_qu...@12'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x3f1): 
undefined reference to `mysql_store_res...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x406): 
undefined reference to `mysql_num_r...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x414): 
undefined reference to `mysql_free_res...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x42b): 
undefined reference to `mysql_er...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x43c): 
undefined reference to `mysql_er...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x497): 
undefined reference to `mysql_field_co...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x4a9): 
undefined reference to `mysql_affected_r...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x4ba): 
undefined reference to `mysql_insert...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x4d0): 
undefined reference to `mysql_insert...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x51e): 
undefined reference to `mysql_cl...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x554): 
undefined reference to `mysql_i...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x5ce): 
undefined reference to `mysql_real_conn...@32'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x604): 
undefined reference to `mysql_cl...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x68e): 
undefined reference to `mysql_real_qu...@12'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x6aa): 
undefined reference to `mysql_store_res...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x6c3): 
undefined reference to `mysql_num_fie...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x72e): 
undefined reference to `mysql_fetch_field_dir...@8'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x802): 
undefined reference to `mysql_num_r...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x8aa): 
undefined reference to `mysql_row_t...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0x8bf): 
undefined reference to `mysql_fetch_...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0xb31): 
undefined reference to `mysql_er...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0xb50): 
undefined reference to `mysql_er...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0xc4f): 
undefined reference to `mysql_er...@4'
c:/harbour-11/lib/win/mingw/libsddmy.a(mysqldd.o):mysqldd.c:(.text+0xc73): 
undefined reference to `mysql_er...@4'
collect2: ld returned 1 exit status
hbmk: Error: Running linker. 1
c:\harbour-11\mingw\bin\gcc.exe test1.o hbmk_pih57m.o    -mconsole 
-Wl,--start-group -lrddsql -lsddmy -lhbcpage -lhblang -lhb
common -lhbcplr -lhbdebug -lhbvm -lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx 
-lrddcdx -lrddfpt -lhbuddall -lrddnsx -lhbrtl -l
hbpp -lhbmacro -lhbextern -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui 
-lhbpcre -lhbzlib -lkernel32 -luser32 -lgdi32 -ladv
api32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -lole32 -loleaut32 
-luuid -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32
-Wl,--end-group -otest1.exe -Lc:/harbour-11/lib/win/mingw -Lc:/harbour-11/lib

Contents of folder :

╔══════════════ C:\harbour\contrib\rddsql\tests ══════════[]═╗
║               Name                │  Size   │  Date  │Time  
║..                                 │<UP--DIR>│05-06-09│13:19 ■
║arrayrdd                        prg│      866│17-05-09│12:07 ▒
║rddsql                          hbc│       78│28-05-09│02:26 ▒
║rddsql                          hbl│       78│25-05-09│04:19 ▒
║rddsql                          hbp│       79│16-05-09│09:54 ▒
║test1                           prg│     1488│25-12-08│02:06 ▒


Please note that this is in harbour. When I copy this file to your distro 
(\HARBOUR-11\...), its remains.
 
Regards,
Marek Horodyski
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to