News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Bug in MSVC loader

Started by MortenMacFly, March 20, 2007, 03:27:37 PM

Previous topic - Next topic

MortenMacFly

Dear all,
I realised a (bad) bug in the msvc loader leading to corrupted compiler/linker options:
In ProcessCompilerOptions *and* ProcessLinkerOptions the line of the file is split into an array of strings using array = GetArrayFromString(opts, _T(" "));, thus split by spaces. Now this is bad if it contains something like: /libpath:"C:\My Folder With Spaces\Libs" because obviously what happens is that the options is first truncated to /libpath:"C:\My and later (by the RemoveQuotes method) to C:\My. This is obviously false. We need a better splitting of the options string therefore. Anyone willing (my time is unfortunately very limited currently...)?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Due to the overwhelming feedback I decided to implement it myself... ;-)
Fixed in revision 3733.
With regards, Morten.
Ps.: Sorry for the monologue...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

Quote from: MortenMacFly on March 20, 2007, 10:01:23 PM
Due to the overwhelming feedback I decided to implement it myself... ;-)

:lol:
Be patient!
This bug will be fixed soon...