Many Thanks! This works fine now with "-cflags". And about my name there are no problems, because here in Brazil is accepted "Vailton" or "Renato" when to refer someone..
Thanks again. =D 2009/3/12 Viktor Szakáts <[email protected]>: > Hi Renato, > (I realized this might not be your first name, sorry and pls correct me) > As for ldflags option, it's meant to pass flags to the linker, but what you > need is to pass a flag to the C compiler, so in your case -cflag: should > be used instead. > Brgds, > Viktor > > On Thu, Mar 12, 2009 at 7:10 PM, Vailton Renato <[email protected]> wrote: >> >> I'm trying to compile the hbpgsql.lib manually with hbmk2 utility. The >> command line used is: >> >> hbmk2 -trace -ldflag:-Ic:\PostgresPlus\8.3\include -hblib pgrdd.prg >> postgres.c tpostgre.prg >> >> And the problem is with "-ldflag" where I try to pass aditional >> parameter to the linker/compiler only he gives me the following error: >> >> hbmk: Processing configuration: C:\hbmsvc\bin\hbmk.cfg >> hbmk: Harbor compiler command: >> C:\hbmsvc\bin\harbour.exe -n1 pgrdd.prg tpostgre.prg -iC:\hbmsvc\include >> hbmk: C compiler command: >> cl.exe -nologo -W3 -c -Fo -IC:\hbmsvc\include pgrdd.c tpostgre.c >> postgres.c /link /libpath:C:\hbmsvc\lib /subsystem: console >> hbcpage.lib hblang.lib hbcommon. lib hbcplr.lib hbdebug.lib hbvm.lib >> hbrdd.lib hbusrrdd.lib hbuddall.lib hbhsx.lib hbsix.lib rddntx.lib >> rddnsx.lib rddcdx.lib rddfpt.lib hbrtl.lib hbpp.lib hbmacro.lib >> hbextern.lib gtcgi . gtpca.lib lib gtstd.lib gtwin.lib gtwvt.lib >> gtgui.lib hbpcre.lib hbzlib.lib >> dflag:-Ic:\PostgresPlus\8.3\include.lib user32.lib wsock32.lib >> advapi32.lib gdi32.lib >> pgrdd.c >> tpostgre.c >> postgres.c >> postgres.c (58): fatal error C1083: Can not open include file: >> 'libpq-fe.h': No such file or directory >> Generating Code ... >> >> Note the string "dflag:-Ic:\PostgresPlus\8.3\include.lib" in the line >> above. I think he is confusing the -ldflag as the name of an >> additional LIB. > > > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > > -- Vailton Renato SQL LIB, MyMake & xDev Developer _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
