VS 2008 build problem

Hi folks!

I’ve been having “fun” trying to build my code for Windows, using VS 2008.
I’ve got the Windows SDK 7.1 installed, and configured to be the SDK.

However, I get build errors with just 2 of the Juce files, which seem to be as though the system is picking-up the wrong Windows headers.

pngrutil.c

...
1>...\modules\juce_graphics\image_formats\pnglib/pngrutil.c(459) : error C2065: 'Byte' : undeclared identifier
... etc.

juce_win32_Windowing.cpp

...
1>...\modules\juce_gui_basics\native/juce_win32_Windowing.cpp(599) : error C2065: 'WINDOWINFO' : undeclared identifier
... etc.

Has anybody got any suggestions on what to do to fix this? I’m stumped!!

Best wishes,

Pete

All now sorted - my (rather old!) project was built with WINVER=0x0400 … it should have been with WINVER=0x0500 …!

Best to all,

Pete

Hi Jules!

Just to follow-up on this; I have had to modify pngrutil.c to define Byte as unsigned char, for my Windows builds to complete.

I’m using VS2008 - do you need any more info?! :slight_smile:

Best wishes,

Pete

I don’t think I have VC2008 installed anywhere to try it nowadays… If you can let me know what you had to change, that’d be helpful!

Hi Jules,

It is a really simple fix - simply change the 3 or 4 references in that file to “Byte” to “unsigned char”. Sorted! :slight_smile:

Best wishes,

Pete

ok, ta.