Pages: [1]   Go Down
Author Topic: Webserver Error Compil  (Read 753 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
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:
error: 'etherShield' was not declared in this scope

et pour finir par etherShield es=etherShield();
erreur :
Code:
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 smiley-sad

Un petit coup de main ?
« Last Edit: August 22, 2010, 04:48:12 pm by lastiko » Logged

Sophia-Antipolis (06)
Offline Offline
God Member
*****
Karma: 4
Posts: 618
Rejoignez le club !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/ ????

Logged

France
Offline Offline
Faraday Member
**
Karma: 38
Posts: 3547
There is an Arduino for that
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: August 23, 2010, 06:01:12 am by fdufnews » Logged

Pages: [1]   Go Up
Jump to: