View previous topic :: View next topic |
Author |
Message |
krt.ecek
Joined: 19 Jan 2009 Posts: 28
|
Posted: Sat Feb 14, 2009 10:33 pm Post subject: Programovani |
|
|
Code: | avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declaration -Os -fno-builtin -save-temps -I/usr/local/turbo-devel/include -I. autoalarm.c -o autoalarm.o
autoalarm.c: In function `actualizePositionGps':
autoalarm.c:1157: warning: assignment from incompatible pointer type
autoalarm.c:1158: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c:1158: error: (Each undeclared identifier is reported only once
autoalarm.c:1158: error: for each function it appears in.)
autoalarm.c: In function `start_ucs2':
autoalarm.c:1219: warning: implicit declaration of function `sprintucs2_start'
autoalarm.c:1219: warning: assignment makes pointer from integer without a cast
autoalarm.c: In function `end_ucs2':
autoalarm.c:1227: warning: implicit declaration of function `sprintucs2_end'
autoalarm.c: In function `accels_measure':
autoalarm.c:1389: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c:1398: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `init_alarm_pins':
autoalarm.c:1636: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c:1662: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `reset_vals':
autoalarm.c:1777: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `setmenu':
autoalarm.c:1880: warning: implicit declaration of function `set_alarm_off'
autoalarm.c: In function `yesno_val':
autoalarm.c:1959: warning: passing arg 2 of `select_item' from incompatible pointer type
autoalarm.c:1961: warning: passing arg 2 of `select_item' from incompatible pointer type
autoalarm.c: In function `alarm_numbers':
autoalarm.c:2001: warning: assignment makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_aircon':
autoalarm.c:2070: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2071: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_alarm_1':
autoalarm.c:2092: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2093: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_alarm_2':
autoalarm.c:2113: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2114: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_central_lock':
autoalarm.c:2134: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2135: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_block':
autoalarm.c:2156: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2157: warning: initialization makes pointer from integer without a cast
autoalarm.c: At top level:
autoalarm.c:2285: warning: initialization from incompatible pointer type
autoalarm.c:2306: warning: initialization from incompatible pointer type
autoalarm.c: In function `alarm_set_gps':
autoalarm.c:2320: warning: passing arg 2 of `select_item' from incompatible pointer type
autoalarm.c: In function `alarm_measure_show':
autoalarm.c:2551: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `alarm_number_call_confirm':
autoalarm.c:2653: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2654: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_call_onoff':
autoalarm.c:2674: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2675: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_fax_sms_ctx':
autoalarm.c:2695: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:2696: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c: In function `alarm_number_sms_onoff':
autoalarm.c:2712: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2713: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_fax_sms':
autoalarm.c:2732: warning: initialization makes pointer from integer without a cast
autoalarm.c:2733: warning: initialization makes pointer from integer without a cast
autoalarm.c:2756: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:2761: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c: In function `alarm_number_status':
autoalarm.c:2846: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2847: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_send_alarm':
autoalarm.c:2867: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2868: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_call_alarm':
autoalarm.c:2915: warning: passing arg 1 of `locale' makes pointer from integer without a cast
autoalarm.c:2916: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_delete':
autoalarm.c:2945: warning: assignment makes pointer from integer without a cast
autoalarm.c:2946: warning: comparison between pointer and integer
autoalarm.c:2949: warning: assignment makes pointer from integer without a cast
autoalarm.c:2959: warning: assignment makes pointer from integer without a cast
autoalarm.c:2960: warning: passing arg 1 of `efree' makes pointer from integer without a cast
autoalarm.c:2961: warning: passing arg 1 of `efree' makes pointer from integer without a cast
autoalarm.c:2963: warning: passing arg 1 of `efree' makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_view':
autoalarm.c:2980: warning: initialization makes pointer from integer without a cast
autoalarm.c:2981: warning: passing arg 1 of `msisdn2str' makes pointer from integer without a cast
autoalarm.c: In function `alarm_number_show':
autoalarm.c:3010: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3012: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3016: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3021: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3022: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3024: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3025: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3027: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3028: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c:3029: warning: passing arg 2 of `spider_append_r' from incompatible pointer type
autoalarm.c: In function `alarm_lang':
autoalarm.c:3157: warning: passing arg 2 of `select_item' discards qualifiers from pointer target type
autoalarm.c: At top level:
autoalarm.c:3290: warning: initialization from incompatible pointer type
autoalarm.c:3291: warning: initialization from incompatible pointer type
autoalarm.c:3292: warning: initialization from incompatible pointer type
autoalarm.c:3293: warning: initialization from incompatible pointer type
autoalarm.c:3294: warning: initialization from incompatible pointer type
autoalarm.c:3295: warning: initialization from incompatible pointer type
autoalarm.c:3296: warning: initialization from incompatible pointer type
autoalarm.c: In function `alarm_sens':
autoalarm.c:3312: warning: passing arg 2 of `select_item' from incompatible pointer type
autoalarm.c: In function `alarm_version':
autoalarm.c:3599: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `alarm_new_number':
autoalarm.c:3668: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3685: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3686: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3687: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3690: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3691: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:3693: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c: In function `opto_out_1_on':
autoalarm.c:3741: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `opto_out_1_off':
autoalarm.c:3757: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `set_ac_on':
autoalarm.c:3783: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `set_ac_off':
autoalarm.c:3810: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: At top level:
autoalarm.c:3839: warning: type mismatch with previous implicit declaration
autoalarm.c:1880: warning: previous implicit declaration of `set_alarm_off'
autoalarm.c:3839: warning: `set_alarm_off' was previously implicitly declared to return `int'
autoalarm.c: In function `set_block_on':
autoalarm.c:3941: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `set_block_off':
autoalarm.c:3964: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `get_central_lock':
autoalarm.c:3986: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `get_alarm_1':
autoalarm.c:4005: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c: In function `manual_lock':
autoalarm.c:4068: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: At top level:
autoalarm.c:4099: warning: initialization makes pointer from integer without a cast
autoalarm.c:4102: warning: initialization makes pointer from integer without a cast
autoalarm.c:4142: warning: initialization makes pointer from integer without a cast
autoalarm.c:4143: warning: initialization makes pointer from integer without a cast
autoalarm.c:4158: warning: initialization makes pointer from integer without a cast
autoalarm.c: In function `send_status':
autoalarm.c:4450: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c: In function `rec_sms':
autoalarm.c:4691: warning: initialization makes pointer from integer without a cast
autoalarm.c:4781: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4787: warning: assignment makes pointer from integer without a cast
autoalarm.c:4788: warning: assignment makes pointer from integer without a cast
autoalarm.c:4790: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4800: warning: assignment makes pointer from integer without a cast
autoalarm.c:4808: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4814: warning: assignment makes pointer from integer without a cast
autoalarm.c:4815: warning: assignment makes pointer from integer without a cast
autoalarm.c:4817: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4827: warning: assignment makes pointer from integer without a cast
autoalarm.c:4837: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4843: warning: assignment makes pointer from integer without a cast
autoalarm.c:4844: warning: assignment makes pointer from integer without a cast
autoalarm.c:4846: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4856: warning: assignment makes pointer from integer without a cast
autoalarm.c:4864: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4870: warning: assignment makes pointer from integer without a cast
autoalarm.c:4871: warning: assignment makes pointer from integer without a cast
autoalarm.c:4873: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4883: warning: assignment makes pointer from integer without a cast
autoalarm.c:4892: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4898: warning: assignment makes pointer from integer without a cast
autoalarm.c:4899: warning: assignment makes pointer from integer without a cast
autoalarm.c:4901: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4920: warning: assignment makes pointer from integer without a cast
autoalarm.c:4928: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4934: warning: assignment makes pointer from integer without a cast
autoalarm.c:4935: warning: assignment makes pointer from integer without a cast
autoalarm.c:4937: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4945: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c:4957: warning: assignment makes pointer from integer without a cast
autoalarm.c:4965: warning: passing arg 2 of `cmp_msg' discards qualifiers from pointer target type
autoalarm.c:4971: warning: assignment makes pointer from integer without a cast
autoalarm.c:4972: warning: assignment makes pointer from integer without a cast
autoalarm.c:4974: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:4988: warning: assignment makes pointer from integer without a cast
autoalarm.c:5000: warning: assignment makes pointer from integer without a cast
autoalarm.c:5001: warning: assignment makes pointer from integer without a cast
autoalarm.c:5003: warning: passing arg 1 of `msisdncmp' makes pointer from integer without a cast
autoalarm.c:5012: warning: assignment makes pointer from integer without a cast
autoalarm.c: In function `mt_call':
autoalarm.c:5083: warning: initialization makes pointer from integer without a cast
autoalarm.c:5138: warning: assignment makes pointer from integer without a cast
autoalarm.c:5139: warning: assignment makes pointer from integer without a cast
autoalarm.c:5140: warning: passing arg 1 of `msisdn2str' makes pointer from integer without a cast
autoalarm.c:5155: warning: assignment makes pointer from integer without a cast
autoalarm.c:5175: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c:5211: warning: passing arg 1 of `msisdncpy' makes pointer from integer without a cast
autoalarm.c: In function `report_alarm':
autoalarm.c:5223: warning: initialization makes pointer from integer without a cast
autoalarm.c:5244: warning: assignment makes pointer from integer without a cast
autoalarm.c:5245: warning: assignment makes pointer from integer without a cast
autoalarm.c:5248: warning: assignment makes pointer from integer without a cast
autoalarm.c:5249: warning: passing arg 1 of `msisdncpy' makes pointer from integer without a cast
autoalarm.c:5300: warning: assignment makes pointer from integer without a cast
autoalarm.c: In function `action_menu':
autoalarm.c:5440: warning: assignment from incompatible pointer type
autoalarm.c:5443: error: `SPIDER_STYLE_UCS2' undeclared (first use in this function)
autoalarm.c:5446: warning: assignment from incompatible pointer type
autoalarm.c:5448: warning: assignment from incompatible pointer type
autoalarm.c: In function `turbo_handler':
autoalarm.c:5468: warning: passing arg 2 of `ww' makes integer from pointer without a cast
autoalarm.c:5488: error: `PROC_8_CONFIG_SETUP' undeclared (first use in this function)
autoalarm.c:5490: error: `PROC_8_CONFIG_SIM_FIRST' undeclared (first use in this function)
autoalarm.c:5501: warning: assignment makes pointer from integer without a cast
autoalarm.c:5504: warning: assignment makes pointer from integer without a cast
autoalarm.c:5505: warning: assignment makes pointer from integer without a cast
autoalarm.c:5507: warning: assignment makes pointer from integer without a cast
autoalarm.c:5508: warning: passing arg 1 of `efree' makes pointer from integer without a cast
autoalarm.c:5509: warning: assignment makes pointer from integer without a cast
autoalarm.c:5513: warning: assignment makes pointer from integer without a cast
autoalarm.c:5522: error: `ACTION_FIRST_STK' undeclared (first use in this function)
autoalarm.c:5526: warning: passing arg 1 of `stk_thread' from incompatible pointer type
autoalarm.c:5529: warning: passing arg 1 of `stk_thread' from incompatible pointer type
autoalarm.c:5569: error: `TURBO_SIM_TOOLKIT_ADAPTER' undeclared (first use in this function)
autoalarm.c:5574: error: `TURBO_SIM_TOOLKIT_ADAPTER_EVO' undeclared (first use in this function)
autoalarm.c:5622: warning: initialization discards qualifiers from pointer target type
autoalarm.c:5638: warning: implicit declaration of function `set_menu_alpha'
autoalarm.c:5643: warning: passing arg 1 of `stk_thread' from incompatible pointer type
make: *** [autoalarm.o] Error 1 |
Pri snaze prelozit program autoalarm (stazen z vasich stranek zatim neupraven) mi pokus o preklad pise toto, nemohu s tim hnout prosim o pomoc (Delam to v travixu z vasich stranek a myslim ze makefile je upraven dobre) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
krt.ecek
Joined: 19 Jan 2009 Posts: 28
|
Posted: Sun Feb 15, 2009 11:26 am Post subject: |
|
|
Už jsem to asi vyřešil, jen nechápu proč se to tak chová
Když mám makefile takto:
Code: |
ifndef TURBO_DIR
TURBO_DIR = ../../turbo-devel-060822
endif
TURBO_TAG = --turbo-manifest "Version: 1.9.26 Vendor: BLADOX" #--turbo-verbose
INCDIR = -I$(TURBO_DIR)/include -I.
LIBDIR = $(TURBO_DIR)/lib
|
tak to nefugnuje, ale když ty definice přepíšu napevno takto
Code: |
ifndef TURBO_DIR
TURBO_DIR = ../../turbo-devel-060822
endif
TURBO_TAG = --turbo-manifest "Version: 1.9.26 Vendor: BLADOX" #--turbo-verbose
INCDIR = -I ../../turbo-devel-060822/include -I.
LIBDIR = ../../turbo-devel-060822/lib
|
tak je vše funkční, netuší někdo proč to tak je? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|