Error Sc_start

Résolu/Fermé
joura. Messages postés 214 Date d'inscription samedi 23 janvier 2010 Statut Membre Dernière intervention 15 mai 2013 - 13 févr. 2013 à 11:02
mamiemando Messages postés 33093 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 4 mai 2024 - 15 févr. 2013 à 00:53
Bonjour,
j ai un probleme avec l'utilisation de la bibiotheque Systemc in C++ tjrs j'aurais mm erreur dans compilation "no matching function for call to `sc_start(int)'" pouvez vs m'aider SVP


test_shift.cpp:51:16: error: no matching function for call to `sc_start(int)'
test_shift.cpp:51:16: note: candidates are:
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:106:13: note: void sc_core::sc_start()
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:106:13: note: candidate expects 0 arguments, 1 provided
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:173:17: note: void sc_core::sc_start(const sc_core::sc_time&, sc_core::sc_starvation_policy)
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:173:17: note: no known conversion for argument 1 from `int' to `const sc_core::sc_time&'
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:109:13: note: void sc_core::sc_start(int, sc_core::sc_time_unit, sc_core::sc_starvation_policy)
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:109:13: note: candidate expects 3 arguments, 1 provided
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:115:13: note: void sc_core::sc_start(double, sc_core::sc_time_unit, sc_core::sc_starvation_policy)
/usr/local/systemc/include/sysc/kernel/sc_simcontext.h:115:13: note: candidate expects 3 arguments, 1 provided
make: *** [test_shift.o] Error 1



1 réponse

mamiemando Messages postés 33093 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 4 mai 2024 7 752
14 févr. 2013 à 02:34
Ben vu le message d'erreur, on dirait simplement que c'est parce que tu n'instancie pas sc_start avec les bons paramètres. Tu passes un int en paramètre à cette fonction, et elle ne propose pas de méthode sc_start qui prenne en paramètre un "int".

Bonne chance
0
joura. Messages postés 214 Date d'inscription samedi 23 janvier 2010 Statut Membre Dernière intervention 15 mai 2013 11
14 févr. 2013 à 16:47
merci
oui le probleme etait dans le parametre de la fonction (dans les nouvelles versions sc_start n'accepte pas les int en entrée )
0
mamiemando Messages postés 33093 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 4 mai 2024 7 752
15 févr. 2013 à 00:53
Parfait bonne continuation !
0