Author Topic: Bug in MSVC loader  (Read 4912 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Bug in MSVC loader
« on: March 20, 2007, 03:27:37 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Bug in MSVC loader
« Reply #1 on: March 20, 2007, 10:01:23 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Bug in MSVC loader
« Reply #2 on: March 20, 2007, 10:47:17 pm »
Due to the overwhelming feedback I decided to implement it myself... ;-)

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