Re: Re: Help getting linking to work and ...

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
On Wednesday 29 October 2003 17:39, Wink Saville wrote:
> the $?LIBS worked except the linker doesn't want the "-l", appended to the
> front of the library name. From the docs it implies it should be there, but

AAP is supposed to strip them as needed; it's like with includes, where you're 
supposed to use -I and AAP translates that to whatever your compiler / 
toolset needs. So that translation needs work.

> Of course after that the next problem is the program needs to be compiled &
> linked with the multi-threaded is there a "portable" variable like for
> enabling multi-threading?

Not that I know of right now. I'd suggest using "PTHREAD" as the variable 
name, or PTHREAD_LIBS, which you would set to the multi-threading library (if 
any). The name may be a bit exotic for non-BSD users, but it means everything 
there :) [it could be set to -pthread [fbsd 4-stable], -lpthread [solaris], 
-lkse [fbsd 5-current], ... ]



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.