[LLVMdev] Link error with TOOLLINKOPTS=-ldbghelp on MinGW

Reid Spencer reid at x10sys.com
Mon Oct 25 12:31:14 PDT 2004


John Criswell wrote:
> 
> It seems that the -L path options are specified before the LLVM 
> libraries (libSystem and libsupport) are linked in.  I think g++ may 
> only search linker paths that are specified before a library is specified.
> 
> Perhaps you need to make sure that all library paths are specified 
> before listing the libraries to link in.
> 
> In other words,
> 
> g++ -Lpath1 -Lpath2 -ldbghelp -lSystem
> 
> ...instead of...
> 
> g++ -ldbghelp -lSystem -Lpath1 -Lpath2
> 
> Just a guess; can anyone verify this?
> 

That's my understanding too.

REid.




More information about the llvm-dev mailing list