Re: [Harbour] MEMIO - Some Clarifications
Hi, REQUEST HB_MEMIO PROC Main() LOCAL nI FIELD F1 DBCREATE("mem:\test.dbf", {{"F1", "N", 9, 0}},, .T., "memarea") [...] ? "dbDrop() =>", DBDROP("mem:\test") // Free memory resource Did you try to you the _same_ name for creation and drop? Maybe .dbf isn't used by MEMIO as default extension (since there are no files anyway). Brgds, Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] MEMIO - Some Clarifications
Hello, Mindaugas Kavaliauskas wrote: > > Can you try to make self contained sample by changing real report to > some simple DBAPPEND(), FIELDPUT()? I can not reproduce such bahaviour. > Here is the code, though not portraying the exact problem I stated, but may be the results may give some clues: REQUEST HB_MEMIO PROC Main() LOCAL nI FIELD F1 DBCREATE("mem:\test.dbf", {{"F1", "N", 9, 0}},, .T., "memarea") FOR nI := 1 TO 1000 DBAPPEND(); F1 := HB_RANDOM() * 100 NEXT INDEX ON F1 TAG f1 TO "mem:\test.z01" DBEVAL({|| QOUT(F1)}) ? alias(), used(), dbInfo( 10 ) ? "dbDrop() =>", DBDROP("mem:\test") // Free memory resource ? alias(), used(), dbInfo( 10 ) // This SHOULD PRODUCE ERROR DbGotop()// if DbDrop() returns TRUE ? fieldget( 1 ) // NOTE: I have not closed the area DbSkip() ? fieldget( 1 ) ? "DbCloseArea() =>", DBCLOSEAREA() ? alias(), used(), dbInfo( 10 ) ? 'Press a key when done' inkey( 0 ) RETURN Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/MEMIO---Some-Clarifications-tp25639924p25675247.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Error Comparing two arrays
Hello Teo, >Hello Rossine, here is a little function that I wrote years ago to >compare two array contents: > >... This work´s fine :) Many thank´s, Rossine. -- View this message in context: http://www.nabble.com/Error-Comparing-two-arrays-tp25665027p25668693.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Error Comparing two arrays
On 29Sep, 2009, at 10:15 AM, Rossine wrote: Hello This sample: [CODE] function main local aArr1 := { } local aArr2 := { } ? aArr1 != aArr2 return NIL [ENDCODE] generate this error: [ERROR] Error BASE/1072 Argument error: <> Called from MAIN(6) [ENDERROR] I see that this is correct, it also occurs in the clipper same error. How do I compare two arrays ? Hello Rossine, here is a little function that I wrote years ago to compare two array contents: FUNCTION aCompare(a1,a2) LOCAL r:=.T.,v IF !valtype(a1)=="A" .OR. !valtype(a1)==valtype(a2) .OR. ! len(a1)==len(a2) RETURN .F. ENDIF aeval(a1,{|e,i| iif (r ,r:=iif((v:=valtype(e))=="A",aCompare(e,a2[i]),v==valtype(a2[i]) .AND. e == a2[i]),NIL) }) RETURN r Then you simply use: IF aCompare( a1, a2 ) // TRUE on equal array contents best regards, Teo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Error Comparing two arrays
Hello This sample: [CODE] function main local aArr1 := { } local aArr2 := { } ? aArr1 != aArr2 return NIL [ENDCODE] generate this error: [ERROR] Error BASE/1072 Argument error: <> Called from MAIN(6) [ENDERROR] I see that this is correct, it also occurs in the clipper same error. How do I compare two arrays ? Regards, Rossine. -- View this message in context: http://www.nabble.com/Error-Comparing-two-arrays-tp25665027p25665027.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour
Hi Viktor, Il 29/09/2009 15.59, Viktor Szakáts ha scritto: Hi Francesco, It seems it can't find cl.exe. Is it in the PATH? I'd suggest to let it autodetect, instead of forcing HB_COMPILER value manually. You, as usual, are right! I forgot to start my setvc.bat that adds MSVC path. Sorry for email and for your time, I got confused from the error message --- cl.exe -nologo -I. -I../../../../../include -Gs -TC -Ot2b1 -EHs-c- -MT -IJ:/cvs/harbourSVN_trunk/external/zlib -IJ:/cvs/harbourSVN_trunk/external/libpng -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO -Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c process_begin: CreateProcess(NULL, cl.exe -nologo -I. -I../../../../../include -Gs -TC -Ot2b1 -EHs-c- -MT -IJ:/cvs/harbourSVN_trunk/external/zlib -IJ:/cvs/harbourSVN_trunk/external/libpng -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO -Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c, ...) failed. make (e=2): Impossibile trovare il file specificato. (<==file not found) --- because I saw file not found and I thought to _hbhbpdf.c (a path problem during building) and not to cl.exe that was missing. Best regards, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour
Hi Francesco, It seems it can't find cl.exe. Is it in the PATH? I'd suggest to let it autodetect, instead of forcing HB_COMPILER value manually. Brgds, Viktor On 2009 Sep 29, at 15:45, Francesco Saverio Giudice wrote: Hi Viktor, Il 29/09/2009 12.44, vszak...@users.sourceforge.net ha scritto: Revision: 12626 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12626&view=rev Author: vszakats Date: 2009-09-29 10:44:14 + (Tue, 29 Sep 2009) with last SVN and building on Windows and MSVC I get: ! Building Harbour 2.0.0beta3 from source - http://www.harbour-project.org ! MAKE: make 3.81 sh.exe clean install ! HB_USER_PRGFLAGS: -DHB_HASH_MSG_ITEMS ! HB_USER_CFLAGS: -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF - DHB_FM_DLMT_ALLOC -DHB_GC_AUTO ! HB_INSTALL_PREFIX: j:\cvs\harbour_msvc ! HB_BUILD_DLL: no ! HB_BUILD_SHARED: no ! HB_BUILD_DEBUG: no ! HB_HOST_PLAT: win (x86) HB_SHELL: nt ! HB_PLATFORM: win (x86) (autodetected) ! HB_COMPILER: msvc ! Component: 'zlib' found in J:/cvs/harbourSVN_trunk/external/zlib (local) ! Component: 'pcre' found in J:/cvs/harbourSVN_trunk/external/pcre (local) ! Component: 'openssl' found in c:\openssl\include ! Component: 'gpm' not supported on win platform ! Component: 'slang' not found ! Component: 'curses' not found ! Component: 'x11' not found ! Component: 'wattcp/watt-32' not supported on win platform ! 'gtcrs' library skipped (component not found) ! 'gtdos' library skipped (platform not supported) ! 'gtos2' library skipped (platform not supported) ! 'gtsln' library skipped (component not found) ! 'gttrm' library skipped (platform or compiler not supported) ! 'gtxwc' library skipped (component not found) ! 'gtalleg' library skipped ('allegro' not found) ! 'hbcurl' library skipped ('libcurl' not found) ! 'hbmysql' library skipped ('mysql' not found) ! 'hbpgsql' library skipped ('postgresql' not found) ! 'rddads' library skipped ('ads' not found) ! 'sddmy' library skipped ('mysql' not found) ! 'sddpg' library skipped ('postgresql' not found) 1 file copiati. 1 file copiati. 1 file copiati. [snip] 1 file copiati. 1 file copiati. cl.exe -nologo -I. -I../../../../../include -Gs -TC -Ot2b1 -EHs-c- - MT -IJ:/cvs/harbourSVN_trunk/external/zlib -IJ:/cvs/ harbourSVN_trunk/external/libpng -DHB_LEGACY_OFF - DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO - Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c process_begin: CreateProcess(NULL, cl.exe -nologo -I. - I../../../../../include -Gs -TC -Ot2b1 -EHs-c- -MT -IJ:/cvs/ harbourSVN_trunk/external/zlib -IJ:/cvs/harbourSVN_trunk/external/ libpng -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC - DHB_GC_AUTO -Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c, ...) failed. make (e=2): Impossibile trovare il file specificato. (<==file not found) make[3]: *** [_hbhbpdf.obj] Error 2 make[2]: *** [descend] Error 2 make[1]: *** [libhpdf.inst] Error 2 make: *** [external.inst] Error 2 Best Regards, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[12593] trunk/harbour
Viktor Szakáts wrote: BTW I have nothing against hosting LetoDB in Harbour repository, but here Alexander has the final word, so if he also likes the idea, plus other Harbour developers also agree, we can do it. If this is a voting thing - +1. Regards Alex ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour
Hi Viktor, Il 29/09/2009 12.44, vszak...@users.sourceforge.net ha scritto: Revision: 12626 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12626&view=rev Author: vszakats Date: 2009-09-29 10:44:14 + (Tue, 29 Sep 2009) with last SVN and building on Windows and MSVC I get: ! Building Harbour 2.0.0beta3 from source - http://www.harbour-project.org ! MAKE: make 3.81 sh.exe clean install ! HB_USER_PRGFLAGS: -DHB_HASH_MSG_ITEMS ! HB_USER_CFLAGS: -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO ! HB_INSTALL_PREFIX: j:\cvs\harbour_msvc ! HB_BUILD_DLL: no ! HB_BUILD_SHARED: no ! HB_BUILD_DEBUG: no ! HB_HOST_PLAT: win (x86) HB_SHELL: nt ! HB_PLATFORM: win (x86) (autodetected) ! HB_COMPILER: msvc ! Component: 'zlib' found in J:/cvs/harbourSVN_trunk/external/zlib (local) ! Component: 'pcre' found in J:/cvs/harbourSVN_trunk/external/pcre (local) ! Component: 'openssl' found in c:\openssl\include ! Component: 'gpm' not supported on win platform ! Component: 'slang' not found ! Component: 'curses' not found ! Component: 'x11' not found ! Component: 'wattcp/watt-32' not supported on win platform ! 'gtcrs' library skipped (component not found) ! 'gtdos' library skipped (platform not supported) ! 'gtos2' library skipped (platform not supported) ! 'gtsln' library skipped (component not found) ! 'gttrm' library skipped (platform or compiler not supported) ! 'gtxwc' library skipped (component not found) ! 'gtalleg' library skipped ('allegro' not found) ! 'hbcurl' library skipped ('libcurl' not found) ! 'hbmysql' library skipped ('mysql' not found) ! 'hbpgsql' library skipped ('postgresql' not found) ! 'rddads' library skipped ('ads' not found) ! 'sddmy' library skipped ('mysql' not found) ! 'sddpg' library skipped ('postgresql' not found) 1 file copiati. 1 file copiati. 1 file copiati. [snip] 1 file copiati. 1 file copiati. cl.exe -nologo -I. -I../../../../../include -Gs -TC -Ot2b1 -EHs-c- -MT -IJ:/cvs/harbourSVN_trunk/external/zlib -IJ:/cvs/harbourSVN_trunk/external/libpng -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO -Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c process_begin: CreateProcess(NULL, cl.exe -nologo -I. -I../../../../../include -Gs -TC -Ot2b1 -EHs-c- -MT -IJ:/cvs/harbourSVN_trunk/external/zlib -IJ:/cvs/harbourSVN_trunk/external/libpng -DHB_LEGACY_OFF -DHB_FM_STATISTICS_OFF -DHB_FM_DLMT_ALLOC -DHB_GC_AUTO -Fo_hbhbpdf.obj -c ../../../_hbhbpdf.c, ...) failed. make (e=2): Impossibile trovare il file specificato. (<==file not found) make[3]: *** [_hbhbpdf.obj] Error 2 make[2]: *** [descend] Error 2 make[1]: *** [libhpdf.inst] Error 2 make: *** [external.inst] Error 2 Best Regards, Francesco ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] SF.net SVN: harbour-project:[12627] trunk/harbour
Revision: 12627 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12627&view=rev Author: druzus Date: 2009-09-29 12:12:04 + (Tue, 29 Sep 2009) Log Message: --- 2009-09-29 14:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/cdpapi.c * allow to use "UTF8" CP in HB_TRANSLATE() function * harbour/include/hbapicdp.h * harbour/source/rtl/itemseri.c + added support for optional CP translation in serialization and deserialization operations + added two new public C functions: hb_itemSerializeCP() and hb_itemDeserializeCP() + added new optional paramters and to HB_SERIALIZE() function: HB_SERIALIZE( , [], [], [] ) -> By default VM CP is used. + added new optional paramters and to HB_DESERIALIZE() function: HB_DESERIALIZE( , [], [] ) -> By default VM CP is used. * harbour/source/rdd/dbfntx/dbfntx1.c * harbour/source/rdd/dbfnsx/dbfnsx1.c * harbour/source/rdd/dbfcdx/dbfcdx1.c * harbour/source/rdd/dbffpt/dbffpt1.c * formatting Modified Paths: -- trunk/harbour/ChangeLog trunk/harbour/include/hbapicdp.h trunk/harbour/source/rdd/dbfcdx/dbfcdx1.c trunk/harbour/source/rdd/dbffpt/dbffpt1.c trunk/harbour/source/rdd/dbfnsx/dbfnsx1.c trunk/harbour/source/rdd/dbfntx/dbfntx1.c trunk/harbour/source/rtl/cdpapi.c trunk/harbour/source/rtl/itemseri.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour
-Messaggio Originale- Da: A: Data invio: martedì 29 settembre 2009 12.44 Oggetto: [Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour Thank you, it's ok now. EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg The EMG Music page: http://www.emagsoftware.it/emgmusic ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] ViaNemo: more news
fmanc...@viaopen.com wrote: I'm post a new article on http://blog.viaopen.com with list of most frequent questions we received about ViaNEMO. Does Antonio Linares new free release of FiveWin have anything to do with you guys? Regards Alex ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] SF.net SVN: harbour-project:[12626] trunk/harbour
Revision: 12626 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12626&view=rev Author: vszakats Date: 2009-09-29 10:44:14 + (Tue, 29 Sep 2009) Log Message: --- 2009-09-29 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * bin/postinst.prg ! Fixed another error. + Utilizing ugly hack to avoid using Harbour header files. Although it works, this solution is way ugly. I'm brand new hbrun user so I don't know what is the proper solution for using headers from .prgs code run directly. Maybe this should be compiled into hbrun and the internal version used, or it needs full include header dir autodetection logic built in. Modified Paths: -- trunk/harbour/ChangeLog trunk/harbour/bin/postinst.prg This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Error building latest SVN
./bin/win/bcc/hbrun.exe --hb:gtcgi ./bin/postinst.prg ! Making E:\HARBOUR_CVS\harbour\bin\hbmk.cfg... Error BASE/1081 Argument error: + (Quit) Error BASE/1081 Argument error: + Called from MAIN(50) Called from HB_HRBRUN(0) Called from _APPMAIN(0) EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg The EMG Music page: http://www.emagsoftware.it/emgmusic ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] SF.net SVN: harbour-project:[12625] trunk/harbour
Revision: 12625 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=12625&view=rev Author: vszakats Date: 2009-09-29 10:07:07 + (Tue, 29 Sep 2009) Log Message: --- 2009-09-29 12:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * bin/postinst.prg ! Fixed bad typos reported by Elart. * utils/hbmk2/hbmk2.hu_HU.po * Minor clarification in HU translation. Modified Paths: -- trunk/harbour/ChangeLog trunk/harbour/bin/postinst.prg trunk/harbour/utils/hbmk2/hbmk2.hu_HU.po This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Re: SF.net SVN: harbour-project:[12624] trunk/harbour
Hi, all Harbour from Svn: rev. 12624 make[3]: «../../../../../lib/linux/gcc/libhbxbp.a» è aggiornato. ! Installing xbp.ch on /usr/include ! Installing xbpdev.ch on /usr/include ! Installing appevent.ch on /usr/include ! Installing gra.ch on /usr/include ! Installing ../../lib/linux/gcc/libhbxbp.a on /usr/lib ./bin/linux/gcc/hbrun --hb:gtcgi ./bin/postinst.prg ./bin/postinst.prg(28) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(29) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(31) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(32) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(33) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(34) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(39) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(40) Error E0030 Syntax error "syntax error at ')'" ./bin/postinst.prg(41) Error E0030 Syntax error "syntax error at ')'" 9 errors No code generated. make: *** [install] Errore 1 Thank you ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to create a dll using hbmk2?
Hi, Yes, its now working. I just missed a compiler error/warning stating that I define a function in my class that already exists in Harbour. That made me think I needed to add the lib path explicitly. Oh well thats what you get when not fully reading the warning/messages by the compiler :) By the way, Great job in HBMK2! Regards, Jerry > - Original Message - > From: "Viktor Szakáts" > To: "Harbour Project Main Developer List." > Subject: Re: [Harbour] How to create a dll using hbmk2? > Date: Tue, 29 Sep 2009 09:19:39 +0200 > > > > Hi Viktor, > > > > Still with the same error. Is the program below valid to compile > > to dll using > > MS C++ v2008? > > Yes. Just verified. (at least it should link, I'm not .dll user, > so couldn't test it any further) > > If I'm thinking about it even -L%LIB% is wrong. Since %LIB% > itself is a ';' delimited list and might also contain quotes. > Pass your lib dirs manually one by one. hbmk2 will only accept > one dir per -L switch. libpaths= will accept a list, but the > delimiter is a space. > > Anyhow your switches cause a quote problem in generated command > line (just watch the output) and this is 99.999% caused by this > suspicious switch. > > Brgds, > Viktor > > > > > > TIA, > > Jerry > > > > --- > > #include "hbclass.ch" > > > > CREATE CLASS Dbf > > VAR oDbf > > METHOD Open() > > ENDCLASS > > > > METHOD Open > > RETURN self > > --- > > > > > > > > > >> - Original Message - > >> From: "Viktor Szakáts" > >> To: "Harbour Project Main Developer List." > >> Subject: Re: [Harbour] How to create a dll using hbmk2? > >> Date: Tue, 29 Sep 2009 08:07:30 +0200 > >> > >> > >> Hi Jerry, > >> > >>> D:\MyProjects\dbfdll>hbmk2 -hbdyn classdbf -L"%lib%" > >> > >> -L"%lib% seems wrong. Try with "-L%lib%" or -L%lib%. > >> > >> Brgds, > >> Viktor > >> > >> ___ > >> Harbour mailing list > >> Harbour@harbour-project.org > >> http://lists.harbour-project.org/mailman/listinfo/harbour > > > >> > > > > > > -- ___ > > Surf the Web in a faster, safer and easier way: > > Download Opera 9 at http://www.opera.com > > > > Powered by Outblaze > > ___ > > Harbour mailing list > > Harbour@harbour-project.org > > http://lists.harbour-project.org/mailman/listinfo/harbour > > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- ___ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to create a dll using hbmk2?
Hi Viktor, Thanks a lot. I go and try now. Regards, Jerry > - Original Message - > From: "Viktor Szakáts" > To: "Harbour Project Main Developer List." > Subject: Re: [Harbour] How to create a dll using hbmk2? > Date: Tue, 29 Sep 2009 09:19:39 +0200 > > > > Hi Viktor, > > > > Still with the same error. Is the program below valid to compile > > to dll using > > MS C++ v2008? > > Yes. Just verified. (at least it should link, I'm not .dll user, > so couldn't test it any further) > > If I'm thinking about it even -L%LIB% is wrong. Since %LIB% > itself is a ';' delimited list and might also contain quotes. > Pass your lib dirs manually one by one. hbmk2 will only accept > one dir per -L switch. libpaths= will accept a list, but the > delimiter is a space. > > Anyhow your switches cause a quote problem in generated command > line (just watch the output) and this is 99.999% caused by this > suspicious switch. > > Brgds, > Viktor > > > > > > TIA, > > Jerry > > > > --- > > #include "hbclass.ch" > > > > CREATE CLASS Dbf > > VAR oDbf > > METHOD Open() > > ENDCLASS > > > > METHOD Open > > RETURN self > > --- > > > > > > > > > >> - Original Message - > >> From: "Viktor Szakáts" > >> To: "Harbour Project Main Developer List." > >> Subject: Re: [Harbour] How to create a dll using hbmk2? > >> Date: Tue, 29 Sep 2009 08:07:30 +0200 > >> > >> > >> Hi Jerry, > >> > >>> D:\MyProjects\dbfdll>hbmk2 -hbdyn classdbf -L"%lib%" > >> > >> -L"%lib% seems wrong. Try with "-L%lib%" or -L%lib%. > >> > >> Brgds, > >> Viktor > >> > >> ___ > >> Harbour mailing list > >> Harbour@harbour-project.org > >> http://lists.harbour-project.org/mailman/listinfo/harbour > > > >> > > > > > > -- ___ > > Surf the Web in a faster, safer and easier way: > > Download Opera 9 at http://www.opera.com > > > > Powered by Outblaze > > ___ > > Harbour mailing list > > Harbour@harbour-project.org > > http://lists.harbour-project.org/mailman/listinfo/harbour > > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- ___ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] How to create a dll using hbmk2?
Hi Viktor, Still with the same error. Is the program below valid to compile to dll using MS C++ v2008? Yes. Just verified. (at least it should link, I'm not .dll user, so couldn't test it any further) If I'm thinking about it even -L%LIB% is wrong. Since %LIB% itself is a ';' delimited list and might also contain quotes. Pass your lib dirs manually one by one. hbmk2 will only accept one dir per -L switch. libpaths= will accept a list, but the delimiter is a space. Anyhow your switches cause a quote problem in generated command line (just watch the output) and this is 99.999% caused by this suspicious switch. Brgds, Viktor TIA, Jerry --- #include "hbclass.ch" CREATE CLASS Dbf VAR oDbf METHOD Open() ENDCLASS METHOD Open RETURN self --- - Original Message - From: "Viktor Szakáts" To: "Harbour Project Main Developer List." > Subject: Re: [Harbour] How to create a dll using hbmk2? Date: Tue, 29 Sep 2009 08:07:30 +0200 Hi Jerry, D:\MyProjects\dbfdll>hbmk2 -hbdyn classdbf -L"%lib%" -L"%lib% seems wrong. Try with "-L%lib%" or -L%lib%. Brgds, Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour -- ___ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour