Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Cannot have an empty lib prefix in the gcc compiler (and copies)

<< < (2/2)

mandrav:

--- Quote ---I tracked down the problem to sc/sdk/compiler.cpp line 408
--- End quote ---

Yes, the problem is not that I don't know where it skips saving empty values :), but rather how to handle this situation.

The problem here is that an empty lib prefix means "use default lib prefix for platform". So it's not a matter of saving it as empty or not but how to correctly distinguish between the "use default" value and a string set as empty on purpose.

Jan van den Borst:
Hi mandrav
When you change the code as I proposed there is no change in functional behavior of the compiler.

I think if you allow the prefix to be changed (in the advance option dialog) it must be possible to change it basically to anything including leaving it empty.

Changing an empty string back to "lib" is confusing. I think if the config file contains a field libprefix codeblocks should take this value.

Kind regards
Jan

Navigation

[0] Message Index

[*] Previous page

Go to full version