Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Cannot have an empty lib prefix in the gcc compiler (and copies)
Jan van den Borst:
LS,
I'm having problems having an empy lib prefix in the gcc compiler (I use a arm realview compiler so I made a copy of the gcc compiler).
When I set the prefix to "aaaa" in the advanced compiler options dialog (others) I see that an entry is created in the default.conf of:
<LIBPREFIX>
<str>
<![CDATA[aaaa]]>
</str>
</LIBPREFIX>
If I modify it to
<LIBPREFIX>
<str>
<![CDATA[]]>
</str>
</LIBPREFIX>
codeblocks seems to remove the entry after a restart and use the default lib prefix "lib".
How can I have an empty libprefix?
Jan
mandrav:
What happens if set a space as prefix? Does it detect that too and removes it?
Jan van den Borst:
No a space is added to the lib name so "lib.ext" --> " lib.ext"
Jan van den Borst:
I see that when I enter a space as libprefix the libprefix key in the default.conf file is preserved and not deleted after a restart:
<LIBPREFIX>
<str>
<![CDATA[ ]]>
</str>
</LIBPREFIX>
Jan van den Borst:
HI all,
I tracked down the problem to sc/sdk/compiler.cpp line 408
In my opinion this line:
cfg->Write(tmp + _T("/switches/libPrefix"), m_Switches.libPrefix, true);
should be changed into
cfg->Write(tmp + _T("/switches/libPrefix"), m_Switches.libPrefix, false);
Jan
Navigation
[0] Message Index
[#] Next page
Go to full version