Author Topic: MSVC 9 profile  (Read 4149 times)

Offline theultramage

  • Multiple posting newcomer
  • *
  • Posts: 13
MSVC 9 profile
« on: August 04, 2007, 11:59:21 pm »
Would it be possible to add a VS9 compiler/debugger profile?
I don't use the old 2005 MSVC version and therefore can't use C::B at the moment...

Offline theultramage

  • Multiple posting newcomer
  • *
  • Posts: 13

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: MSVC 9 profile
« Reply #2 on: September 03, 2007, 04:39:56 pm »
Let it be officially released first. We'll add it then.

In the meantime, you can add a compiler to support MSVC9.
1) Settings > Compiler and debugger and then select MSVC 2005.
2) Now click Copy button and rename the new compiler as MSVC 9.
3) Now change the values in Search directories and Toolchain executable tab to reflect the new compiler.

Now you'll be able to use MSVC 9 from C::B.
Be a part of the solution, not a part of the problem.

Offline theultramage

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: MSVC 9 profile
« Reply #3 on: September 19, 2007, 11:25:05 am »
You were right, it works when I adjust all relevant paths. Tried that before but must have messed up something.
One problem was that I don't have the env vars integrated into the system, and C::B doesn't execute vcvars32.bat automatically. Codeblocks-defined environment vars don't work because they're probably not passed to the spawned processes (link.exe).
My main problem was 'cdb.exe' not found, but now I realized it's an external tool. Now the only problem is, it won't debug...
Code
Microsoft (R) Windows Debugger  Version 6.7.0005.1
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: ./qwerty.exe
Symbol search path is: D:/testik/qwerty/
Executable search path is:
ModLoad: 00000000`00400000 00000000`00409000   qwerty.exe
ModLoad: 00000000`76e30000 00000000`76faa000   ntdll.dll
ModLoad: 00000000`76fe0000 00000000`77130000   ntdll32.dll
ModLoad: 00000000`75150000 00000000`75195000   C:\Windows\system32\wow64.dll
ModLoad: 00000000`75060000 00000000`750aa000   C:\Windows\system32\wow64win.dll
ModLoad: 00000000`751b0000 00000000`751b9000   C:\Windows\system32\wow64cpu.dll
(1bc.22c): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -
ntdll!DbgBreakPoint:
00000000`76e7fdf0 cc              int     3
*** WARNING: Unable to verify checksum for qwerty.exe
Which I'm trying to resolve right now by searching these forums.
EDIT: this thing has been mentioned like 10 times, but noone ever answered :X
« Last Edit: September 19, 2007, 12:21:42 pm by theultramage »

Offline kelo81

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: MSVC 9 profile
« Reply #4 on: September 19, 2007, 01:06:58 pm »
Would it be possible to add a VS9 compiler/debugger profile?
I don't use the old 2005 MSVC version and therefore can't use C::B at the moment...

Do you think MSVC 2005 is old?...  :shock:
Ezequiel Ruiz
Tango/04 consultant
www.tango04.com