Здравствуйте, гость ( Вход | Регистрация )
Алексей1153 | Дата 22.8.2011, 11:41 |
пытаешься код C скомпилить как C++ Так читай предупреждения и ошибки, да исправляй. Но жесть начинается здесь: # define char *fname = argv[1] /* Archive file name */ # define char *sname = argv[2] /* Specimen's name */ # define char *tmp_f = argv[3] /* Temporary file name */ ты три раза переопределяешь символ char . Зачем ? |
|
kuzulis | Дата 22.8.2011, 10:54 |
Цитата никак ни разберусь что не правильно Всё! Цитата подскажите, будь те так любезны Не не не, копай сам. ЗЫ: Ай, молодца! ![]() |
|
TiiL | Дата 22.8.2011, 10:44 |
выдаёт вот такие ошибки : In file included from TPP_PR.c:19: ..\samum\trunk\include/dos_samumg.h:79: warning: 'struct calc_GGC' declared inside parameter list ..\samum\trunk\include/dos_samumg.h:79: warning: its scope is only this definition or declaration, which is probably not what you want ..\samum\trunk\include/dos_samumg.h:79: warning: 'struct item_GGC' declared inside parameter list TPP_PR.c:39:1: warning: "char" redefined TPP_PR.c:38:1: warning: this is the location of the previous definition TPP_PR.c:40:1: warning: "char" redefined TPP_PR.c:39:1: warning: this is the location of the previous definition TPP_PR.c:55: warning: data definition has no type or storage class TPP_PR.c:55: warning: type defaults to 'int' in declaration of 'tmp_f' TPP_PR.c:55: error: 'argv' undeclared here (not in a function) TPP_PR.c:55: error: 'fail_name' undeclared here (not in a function) TPP_PR.c:56: warning: type defaults to 'int' in declaration of 'rain_name' TPP_PR.c:56: error: array of inappropriate type initialized from string constant TPP_PR.c:57: warning: type defaults to 'int' in declaration of 'tpp_name' TPP_PR.c:57: error: array of inappropriate type initialized from string constant TPP_PR.c:59: error: expected declaration specifiers or '...' before '*' token подскажите, будь те так любезны |
|
Просмотр темы полностью (откроется в новом окне) | |
![]() |
Текстовая версия | Сейчас: 16.2.2025, 2:09 |