"Hunk" <[EMAIL PROTECTED]> writes:

> On Feb 6, 9:35 am, "Hunk" <[EMAIL PROTECTED]> wrote:
>> Thanks a zillion. Tried with the first option and it did work
>> Gr888
>> On Feb 5, 7:27 pm, Paul Pluzhnikov <[EMAIL PROTECTED]>
>> >
>> >   g++ -o Concurrency.exe nothread.o 
>> > "D:\RoseTests\Myzthread\Debug\libMyzthread.a"
>
> Reading thru the info on g++ it says
> "Search the library named library when linking.  (The second alter-
>  native with the library as a separate argument is only for POSIX
> compliance and is not recommended.)"
> So does this mean what you have specified above is not generally used?

What I specified above -- full pathname to the archive -- has
nothing to do with the portion you quote, which deals with '-lLIB'
and '-l LIB' options.

I've seen full pathname is used quite often.

> Also at the end in the manual it says
> "The only difference between using an -l option and specifying
>      a file name is that -l surrounds library with lib and .a and
>      searches several directories."
> So if we do want to give somethin with -l option should it be
> specified without a lib prefix and .a suffix? somethin that you have
> mentioned below

Correct.

>> >   g++ -o Concurrency.exe nothread.o -L"D:\RoseTests\Myzthread\Debug" 
>> > -lMyzthread

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to