Go Down

Topic: Webserver Error Compil (Read 812 times) previous topic - next topic

lastiko

Aug 22, 2010, 11:47 pm Last Edit: Aug 22, 2010, 11:48 pm by lastiko Reason: 1
Bonsoir
j'ai télécharger le projet http://www.nuelectronics.com/download/projects/etherShield.zip

mais quand je compile j'ai beaucoup d'erreur

Code: [Select]
o: In function `__static_initialization_and_destruction_0':
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:26: undefined reference to `EtherShield::EtherShield()'

o: In function `print_webpage(unsigned char*)':
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:184: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:185: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:186: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:187: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:188: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

o:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:189: more undefined references to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)' follow
o: In function `loop':
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:76: undefined reference to `EtherShield::ES_enc28j60PacketReceive(unsigned int, unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:82: undefined reference to `EtherShield::ES_eth_type_is_arp_and_my_ip(unsigned char*, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:83: undefined reference to `EtherShield::ES_make_arp_answer_from_request(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:88: undefined reference to `EtherShield::ES_eth_type_is_ip_and_my_ip(unsigned char*, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:93: undefined reference to `EtherShield::ES_make_echo_reply_from_request(unsigned char*, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:100: undefined reference to `EtherShield::ES_make_tcp_synack_from_syn(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:104: undefined reference to `EtherShield::ES_init_len_info(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:105: undefined reference to `EtherShield::ES_get_tcp_data_pointer()'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:108: undefined reference to `EtherShield::ES_make_tcp_ack_from_any(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:115: undefined reference to `EtherShield::ES_fill_tcp_data_p(unsigned char*, unsigned int, char const*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:126: undefined reference to `EtherShield::ES_make_tcp_ack_from_any(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:127: undefined reference to `EtherShield::ES_make_tcp_ack_with_data(unsigned char*, unsigned int)'

o: In function `setup':
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:34: undefined reference to `EtherShield::ES_enc28j60Init(unsigned char*)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:35: undefined reference to `EtherShield::ES_enc28j60clkout(unsigned char)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:43: undefined reference to `EtherShield::ES_enc28j60PhyWrite(unsigned char, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:48: undefined reference to `EtherShield::ES_enc28j60PhyWrite(unsigned char, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:53: undefined reference to `EtherShield::ES_enc28j60PhyWrite(unsigned char, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:58: undefined reference to `EtherShield::ES_enc28j60PhyWrite(unsigned char, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:63: undefined reference to `EtherShield::ES_enc28j60PhyWrite(unsigned char, unsigned int)'

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build529687818464336400.tmp/etherShield_webserver.cpp:67: undefined reference to `EtherShield::ES_init_ip_arp_udp_tcp(unsigned char*, unsigned char*, unsigned char)'



si je modifie la ligne

EtherShield es=EtherShield();

par etherShield es=EtherShield();
j'ai juste une erreur :
Code: [Select]
error: 'etherShield' does not name a type In function 'void setup()':
In function 'void loop()':
In function 'uint16_t print_webpage(uint8_t*)':


si je modifie par EtherShield es=etherShield();
j'ai :
Code: [Select]
error: 'etherShield' was not declared in this scope

et pour finir par etherShield es=etherShield();
erreur :
Code: [Select]
error: 'etherShield' does not name a type In function 'void setup()':
In function 'void loop()':
In function 'uint16_t print_webpage(uint8_t*)':


la je comprends pas pourquoi cela ne veut pas compiler :(

Un petit coup de main ?

Luj06

Où as-tu mis les fichiers .h et .cpp contenu dans l'archive ? Directement avec le .pde ou bien dans une librairie ?

lastiko

j'ai mis ca dans la librairie ( mais j'ai un doute du coup )
le dossier avec l'application Arduino est sur mon bureau et j'ai mis les fichiers dans la librairie dans ce meme dossier
c'est bon ? ou il faut les mettre dans mes documents/..../arduino/Librairies/ ????


fdufnews

#3
Aug 23, 2010, 12:58 pm Last Edit: Aug 23, 2010, 01:01 pm by fdufnews Reason: 1
Cela dépend de la version de l'IDE.
Dans la 018 les librairies doivent être ajoutées dans le répertoire sketchbook/librairies .
Comme ça elles sont conservées même si on change de version de l'IDE.

Dans les précédentes versions les librairies étaient dans arduino-xx/librairies

Un moyen simple de voir si une librairie est au bon endroit c'est d'aller dans le menu "Sketch/Import library". Son nom doit apparaitre dans le menu

Go Up