реклама на сайте
подробности

 
 
> line 1: error: expected a declaration, CCS 3.1
yell
сообщение Jul 6 2007, 20:37
Сообщение #1


Частый гость
**

Группа: Участник
Сообщений: 121
Регистрация: 16-02-07
Пользователь №: 25 423



компилю вот такой файл "initmem.a" в CCS3.1

Код
.sect    ".mydata"
.short    0
.short    7
.short    10
.short    7
.short    0
.short    -7
.short    -10
.short    -7
.short    0
.short    7


------------------------------  lab1.pjt - Debug  ------------------------------
[initmem.a] "E:\program files\ccs31\C6000\cgtools\bin\cl6x" -g -al
-fr"E:/program files/ccs31/MyProjects/lab1/Debug" -d"_DEBUG" -mv6400 -@"Debug.lkf" "initmem.a"
"initmem.a", line 1: error: expected a declaration
At end of source: warning: parsing restarts here after previous syntax error
1 error detected in the compilation of "initmem.a".

>> Compilation failure


"initmem.a", line 1: error: expected a declaration

rtfm результатов не дал
подскажите пожалуйста
чего он хочет

а ещё если добавить где-нибудь комментарий,
то появляются ещё ошибки
Код
.sect    ".mydata"
.short    0
.short    7      ;ffgfg
.short    10
.short    7

------------------------------  lab1.pjt - Debug  ------------------------------
[initmem.a] "E:\program files\ccs31\C6000\cgtools\bin\cl6x" -g -al -fr"E:/program files/ccs31/MyProjects/lab1/Debug" -d"_DEBUG" -mv6400 -@"Debug.lkf" "initmem.a"
"initmem.a", line 1: error: expected a declaration
"initmem.a", line 3: error: this declaration has no storage class or type specifier
"initmem.a", line 4: error: expected a ";"
At end of source: warning: parsing restarts here after previous syntax error
3 errors detected in the compilation of "initmem.a".

>> Compilation failure
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 20th July 2025 - 20:42
Рейтинг@Mail.ru


Страница сгенерированна за 0.01357 секунд с 7
ELECTRONIX ©2004-2016