Setup For Visual Studio 2010

support for the powerpc toolchain
Post Reply
laserbeak43
Posts: 10
Joined: Thu Jul 29, 2010 6:42 am

Setup For Visual Studio 2010

Post by laserbeak43 » Thu Jul 29, 2010 6:48 am

Hello,
I've been trying to set devkitPPC up for VS 2010, but I always get a number of errors, starting with:
IntelliSense: cannot open source file "stdbool.h" c:\devkitpro\libogc\include\gctypes.h 9
i've found this thread but i have no idea how to modify the code. I have looked at the file, and it's not as simple as it looks there.
Can someone please help with this?
Thanks
Laserbeak43

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Setup For Visual Studio 2010

Post by WinterMute » Thu Jul 29, 2010 11:34 am

Add c:\devkitpro\devkitPPC\powerpc-eabi\include and c:\devkitpro\devkitPPC\lib\gcc\4.4.3\powerpc-eabi\include to your VS include search paths. That last path will need modified for future devkitPPC updates so make a note.
Help keep devkitPro toolchains free, Donate today

Personal Blog

laserbeak43
Posts: 10
Joined: Thu Jul 29, 2010 6:42 am

Re: Setup For Visual Studio 2010

Post by laserbeak43 » Thu Jul 29, 2010 5:55 pm

i get all kinds of crazy errors now, I've attached images of them.
Attachments
error list.jpg
Error List
(239.15 KiB) Downloaded 1 time
vcppincludes.jpg
VC++ Include directories
(78.18 KiB) Downloaded 1 time
intellisenseincludepath.jpg
intellisense search path
(33.8 KiB) Downloaded 1 time

laserbeak43
Posts: 10
Joined: Thu Jul 29, 2010 6:42 am

Re: Setup For Visual Studio 2010

Post by laserbeak43 » Thu Jul 29, 2010 6:01 pm

also, in C:\devkitPro\devkitPPC\lib\gcc\powerpc-eabi\4.4.3\, there's an include and an include-fixed. which one do i use?

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Setup For Visual Studio 2010

Post by WinterMute » Fri Jul 30, 2010 12:42 am

laserbeak43 wrote:i get all kinds of crazy errors now, I've attached images of them.
Darn, so much for that idea, looks like Intellisense can't parse gcc headers terribly well.
laserbeak43 wrote:also, in C:\devkitPro\devkitPPC\lib\gcc\powerpc-eabi\4.4.3\, there's an include and an include-fixed. which one do i use?
It should be just include, unfortunately it looks like allowing Intellisense to parse the gcc headers is a bad idea.

I've just had a play around with the VS2010 Express edition - I removed the VC search paths to get IntelliSense using the gcc headers instead but that's even worse, it doesn't understand a lot of the newlib headers which results in errors for a lot of standard functions. Things look a lot better if you remove the gcc paths and stick with just adding the libogc include path then right click the error window and untick "Show IntelliSense Errors".

Unfortunately it looks like VS2010 doesn't capture the error and warning output from make so the exercise was a bit pointless :/ You might be better using 2k8, things seem to work a lot better there.
Help keep devkitPro toolchains free, Donate today

Personal Blog

laserbeak43
Posts: 10
Joined: Thu Jul 29, 2010 6:42 am

Re: Setup For Visual Studio 2010

Post by laserbeak43 » Fri Jul 30, 2010 1:19 am

Wow ok then, ill get an express editiom of 2k8. The appeal of 2010 is the better intellisense support for c/c++. Guess ill do without for now, thx for all of the help

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests