Bloc de code:
/* ERROR
MyDriver.cpp:1074: error: no matching function for call to
->
MyDriver::freePacket(__mbuf*&, long unsigned int)'
IOKit/network/IONetworkController.h:827: error: candidates are:
->
virtual void[B][COLOR=Red] IONetworkController[/COLOR][/B][COLOR=Black]::[/COLOR][COLOR=Red][COLOR=Black]freePacket[/COLOR][/COLOR][COLOR=Black]([/COLOR]mbuf*, long unsigned int = 0)
*/
/*
myDriver est dérivée de IOEthernetController
*/
[B][COLOR=Blue]class[/COLOR][/B] MyDriver : [B][COLOR=Blue]public[/COLOR][/B] [B][COLOR=Green]IOEthernetController[/COLOR][/B]
{
OSDeclareDefaultStructors(MyDriver);
....
};
[B]IOEthernetController.h
[COLOR=Blue]class[/COLOR] [COLOR=DarkGreen]IOEthernetController[/COLOR] : [COLOR=Blue]public[/COLOR] [COLOR=Red]IONetworkController[/COLOR]
[/B]{ OSDeclareAbstractStructors( IOEthernetController )
....
};
et là j'essaye de porter pour darwin 7 avec gcc 3.3 ça ne passe pas ?
alors qu'avec 3.5 et plus c'est ok ?
qu'elle syntaxe attend t-il ? un flag ? un appel direct ?
j'hérite pourtant des méthodes j'ai d'autres appels similaires ? pourquoi celui là ?
je n'arrive pas à comprendre
:zen: