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

Henrik Bach henrik_bach_llvm at hotmail.com
Mon Oct 25 12:50:53 PDT 2004


Yes, that's my understanding, too. But I'm not controlling where my library 
-ldbghelp is put when g++ is called. I just put it in the TOOLLINKOPTS 
variable in Makefile.config.

Henrik

>From: Reid Spencer <reid at x10sys.com>
>
>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.
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_________________________________________________________________
Opret en gratis Hotmail-konto  http://www.hotmail.com med udsigt til 250 MB 
lagerkapacitet




More information about the llvm-dev mailing list