i see there a wrong space/blank after the -o, and extension of the lib should be imho .a, not .lib
so:
hbmk2 -hblib -omylib.a mylib.prg
VERY thanks, Viktor
for clarification to me - it is a great pity that every elch must be instructed again.
But i promise to multiply your advices. I sure hang a bit sticky in non portable settings, but i'm hungry to improve ...
To you, Alejandro: you know what a 'terminal' is ? - this is not this Alt-F2 in Unity mode of Kunterbuntu with no feedback, i mean something like this "cmd.exe" these windows users call.
In Linux it is called console, terminal or i.e. equal.
Start this, type your command and watch for feedback about what is happening.
This magic hbmk2 seem to do all for you, later just referencing to your lib as mylib .
Elch, I love Linux console.
not a must, but then we can go further.
If i overthink you message, that ONLY a mylib.c appears ...
This is the first step of Harbour, after the second step a mylib.o must appear, the compiled .c
This only can mean, you have an error in your .prg
Increase the level of compiler warnings with:
-W
and report us what you see - or even better: all fixed and what was wrong.
Regards
Rolf