NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
pitchonel
Joined: 13 Apr 2012 Posts: 6
|
Posted: Sat Apr 14, 2012 12:19 am Post subject: Linker Toolchain doesn't use the correct library_search flag, bug? |
|
|
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 |
|
 |
|
|
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
|
|