NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Linker Toolchain doesn't use the correct library_search flag, bug?

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
pitchonel



Joined: 13 Apr 2012
Posts: 6

PostPosted: Sat Apr 14, 2012 12:19 am    Post subject: Linker Toolchain doesn't use the correct library_search flag, bug? Reply with quote

Hello,

I am currently working on a Visual C++ toolchain (should get an alpha version soon), but I have an issue with the "library_search" flag, it seems not to be used by the make file writer.

Here is my XML linker definition:
Code:
<toolchaindefinition xmlns="http://www.netbeans.org/ns/cnd-toolchain-definition/1">
    <linker>
        <library_prefix stringvalue=""/>
        <library_search flags="-LIBPATH:"/>
        <dynamic_library_search flags="-LIBPATH:"/>
        <library_flag flags="-DEFAULTLIB:"/>
        <PIC flags=""/>
        <static_library flags=""/>
        <dynamic_library flags="-DLL "/>
        <dynamic_library_basic flags="-DLL "/>
        <output_file flags="-OUT:"/>
        <strip_flag flags=""/>
    </linker>
</toolchaindefinition>


The generated makefile contains:
Code:
LDLIBSOPTIONS=-LIBPATH:/D/Software/Development/GL -LIBPATH:/D/Software/Development/SOIL_lib/SimpleOpenGLImageLibrary/lib -lSOIL -lopengl32 -lglu32 -lglut32

so others flags work (even "-OUT:" and "-DLL"), but it uses a "-l" option for libraries, which is the one used by GNU_linker, instead of using "-DEFAULTLIB:".

For me it looks like a bug on MakeFile generation but I can't find where.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo