I’ve just updated my checkout and I’m getting the following error, which is strange, since looking at the git log this portion of the code has not changed recently:
I’m also getting (dozens of) the following warnings, that make me wonder if the function works as intended:
juce_PixelFormats.h(530) : warning C4100: "b": parametro formale senza riferimenti
juce_PixelFormats.h(530) : warning C4100: "g": parametro formale senza riferimenti
juce_PixelFormats.h(530) : warning C4100: "r": parametro formale senza riferimenti
Regards
Amedeo
Hmm - I’ve been using VC8 which works fine - I guess the VC7 compiler is a bit more fussy. It seems to be complaining because there was an old C-style struct used there, so changing it to a c++ one should sort it out, in juce_win32_Network, line 304:
I must add that also (presumably) all the PropertyComponent classes fail to compile, this is TextPropertyComponent:
[code]c:…\juce_TextPropertyComponent.h(95) : warning C4511: “juce::TextPropertyComponent”: impossibile generare un costruttore di copia
c:…\juce_TextPropertyComponent.h(39): vedere la dichiarazione di “juce::TextPropertyComponent”
c:…\juce_TextPropertyComponent.h(95) : warning C4512: “juce::TextPropertyComponent”: impossibile generare un operatore di assegnazione
c:…\juce_TextPropertyComponent.h(39): vedere la dichiarazione di “juce::TextPropertyComponent”[/code]
Jules, you’re too fast to answer!
Of course your suggestion regarding the ASTAT struct solved the problem.
Concerning the juce_PixelFormats.h(530) warnings, yes, it’s saying that the parameters are unreferenced.
Done, many thanks. Maybe you forgot to declare the copy constructor and the assignment operator for the ButtonPropertyComponent.
I see there’s a handful other similar situations spread throughout the library, let me know if you need a list.
Thanks, a list would be handy - as I don’t use VC7 any more, I’ve not got a compiler that warns about missing copy constructors, so they’re easy to miss.