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" <harbour...@syenar.hu> > To: "Harbour Project Main Developer List." <harbour@harbour-project.org> > 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" <harbour...@syenar.hu> > >> To: "Harbour Project Main Developer List." <harbour@harbour-project.org > > >> 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