[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem in Loading library using g++
From: |
Paul Pluzhnikov |
Subject: |
Re: Problem in Loading library using g++ |
Date: |
Tue, 06 Feb 2007 06:53:31 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"Hunk" <santosh.udyavara@gmail.com> writes:
> On Feb 6, 9:35 am, "Hunk" <santosh.udyav...@gmail.com> wrote:
>> Thanks a zillion. Tried with the first option and it did work
>> Gr888
>> On Feb 5, 7:27 pm, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
>> >
>> > 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.