Hi folks, I'm close to give it up here. Couldn't find relevant docs, and by mere trying, it's close to impossible to find out the right way to pass the various kinds of gcc binary input files (.a, .o, lib prefix, .so/.dylib/.dll, with path or without, with lib prefix or without), (and haven't even reached ordering). Started with the method Przemek told here, went to specify it directly (without -l) to include full path. Still no go. It was even working here.
Any advice / help is welcome. [ The "dirstrip" function is there, I will apply it to more places. ] Brgds, Viktor On Mon, Feb 23, 2009 at 5:26 PM, Przemyslaw Czerpak <[email protected]>wrote: > On Mon, 23 Feb 2009, Guy Roussin wrote: > > Hi, > > > I think there is a typo : > > $ echo "? 'hello'" > tst.prg > > $ hbmk2 tst > > Harbour 1.1.0dev (Rev. 10412) > > Copyright (c) 1999-2009, http://www.harbour-project.org/ > > Compiling 'tst.prg'... > > Lines 1, Functions/Procedures 1 > > Generating C source output to 'tst.c'... Done. > > gcc: usr/lib/harbour/libharbour.so: Aucun fichier ou répertoire de ce > type > > hbmk: Error: Running C compiler. 256: 'gcc tst.c -O3 -otst > > -I/usr/bin/../include/harbour -L/usr/bin/../lib/harbour -L/usr/X11R6/lib > > -Wl,--start-group usr/lib/harbour/libharbour.so -lhbcplr -lhbdebug -lm > -ldl > > -lrt -lncurses -lX11 -Wl,--end-group' > > I guess you are talking about missing / but also passing the full path > with shared library name is not good idea because it's stored inside > final binaries so the destination host will have to handle it in exactly > the same way. -L/usr/lib/harbour is enough to create final binaries. > A small function like hb_dirStrip() which will convert path like > "/usr/bin/../include/harbour" to "/usr/include/harbour" will also make > the whole configuration much more readable for users. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
