Error stray 227 in program

unixforum.org Форум для пользователей UNIX-подобных систем Темы без ответов Активные темы Поиск Статус форума ошибки коплиляции программ Qt4, stray ошибки коплиляции программ Qt4, stray Сообщение chups » 28.05.2008 17:17 всем привет. уважаемые форумчане подскажите в чем проблемма: пишу не очень сложную программку, до поры до времени она собиралась, а потом начались появляться непонятные мне […]

Содержание

  1. unixforum.org
  2. ошибки коплиляции программ Qt4, stray
  3. ошибки коплиляции программ Qt4, stray
  4. unixforum.org
  5. Решено: error: stray ‘4’ in program (не компилятся проги)
  6. Решено: error: stray ‘4’ in program
  7. mirsovetov.net
  8. Андрощук Александр, ИТ решения, советы, заметки…
  9. stray # in program
  10. Arduino.ru
  11. Регистрация новых пользователей и создание новых тем теперь только на новом форуме https://forum.arduino.ru
  12. forum.arduino.ru
  13. Ошибка 40: error: stray ‘’ in program
  14. Stray error in с program files

unixforum.org

Форум для пользователей UNIX-подобных систем

  • Темы без ответов
  • Активные темы
  • Поиск
  • Статус форума

ошибки коплиляции программ Qt4, stray

ошибки коплиляции программ Qt4, stray

Сообщение chups » 28.05.2008 17:17

всем привет. уважаемые форумчане подскажите в чем проблемма: пишу не очень сложную программку, до поры до времени она собиралась, а потом начались появляться непонятные мне ошибки компиляции:

/from PCLinuxOS/Data Base/current work/temp_tableview> make make: Warning: File `ui_dbFile.h’ has modification time 2,2e+04 s in the future g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/QtSql -I/usr/include -I. -I. -I. -o table.o table.cpp table.cpp:10: error: stray ‘321’ in program table.cpp:10: error: stray ‘201’ in program table.cpp:13: error: stray ‘321’ in program table.cpp:13: error: stray ‘201’ in program table.cpp:15: error: stray ‘321’ in program table.cpp:15: error: stray ‘201’ in program make: *** [table.o] Ошибка 1

а вот здесь у меня вообще произошла ломка понятий :

/from PCLinuxOS/Data Base/current work/temp_tableview> make make: Warning: File `ui_dbFile.h’ has modification time 2,2e+04 s in the future g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/QtSql -I/usr/include -I. -I. -I. -o table.o table.cpp g++ -o temp_tableview main.o table.o workWithDb.o moc_workWithDb.o -L/usr/lib -lQtSql -L/usr/lib -lQtGui -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lpthread make: предупреждение: Неправильный ход часов. Сборка может быть неполной.

В чем проблема? из-за чего возникают ошибки. код вроде правильный.
Qt4 изаю последний, пробовал собирать в 2 системах: opensuse и pclinuxos, результат одинаков

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

  • Темы без ответов
  • Активные темы
  • Поиск
  • Статус форума

Решено: error: stray ‘194’ in program (не компилятся проги)

Решено: error: stray ‘194’ in program

Сообщение LLIypynuk » 20.07.2007 07:31

Я новичек в программировании под Линух. Помогите.
Я хотел откомпилить очередную прогу с gcc, а она мне выдала FUCK! потом решил откомпилить свой HelloWorld,
но он тоже отказался компилиться и выкинул мне эт:
hello.c: In function ‘main’:
hello.c:5: error: stray ‘194’ in program
hello.c:5: error: stray ‘168’ in program
hello.c:5: error: ‘Hello’ undeclared (first use in this function)
hello.c:5: error: (Each undeclared identifier is reported only once
hello.c:5: error: for each function it appears in.)
hello.c:5: error: syntax error before ‘World!’
hello.c:5: error: stray ‘’ in program
hello.c:5: error: stray ‘194’ in program
hello.c:5: error: stray ‘168’ in program
hello.c:6:3: warning: no newline at end of file

Толи у мня руки из жопы , что ли чё.

====ну я надеюсь что это не первое! ======

Источник

mirsovetov.net

Андрощук Александр, ИТ решения, советы, заметки…

stray # in program

При компиляции проекта в Android IDE возникла ошибка

LampCore:20: error: stray ‘302’ in program

Код, который вызывал ошибку не был какой то особенный, была объявлена простенькая структура с полями:

В моем случае ошибка возникла из за того, что я случайно в названии структуры Config написал не латинский символ C. Самое интересное что с виду все кажется в порядке, а на самом деле это не так, и возникает ошибка «stray ‘320’ in program».

Так что решение — использовать только латинские символы (это не касается комментариев).

Также могут возникать другие ошибки такого же рода, только с другим кодом

Скорее всего что следующие ошибки:

error stray 2 in program

error stray 200 in program

error stray 201 in program

error stray 213 in program

error stray 223 in program

error stray 226 in program

error stray 227 in program

error stray 240 in program

error stray 253 in program

error stray 273 in program

error stray 302 in program

error stray 320 in program

error stray 321 in program

error stray 340 in program

error stray 342 in program

error stray 357 in program

error stray 361 in program

тоже связанны с этой проблемой, если это не так, пожалуйста отпишитесь в комментариях.

Источник

Arduino.ru

Регистрация новых пользователей и создание новых тем теперь только на новом форуме https://forum.arduino.ru

forum.arduino.ru

Ошибка 40: error: stray ‘’ in program

Добрый день. Написал вот такую программульку:

// константы
const int dw = 12; // датчик уровня воды на 12 пин
const int dg1 = 11; // датчик влажности почвы на 11 пин
const int dg2 = 10; // датчик влажности почвы на 10 пин
const int dg3 = 9; // датчик влажности почвы на 9 пин
const int dg4 = 8; // датчик влажности почвы на 8 пин
const int dg5 = 7; // датчик влажности почвы на 7 пин
const int nasos1 = 2; // управление насосом на 2 пин
const int nasos2 = 3; // управление насосом на 3 пин
const int nasos3 = 4; // управление насосом на 4 пин
const int nasos4 = 5; // управление насосом на 5 пин
const int nasos5 = 6; // управление насосом на 6 пин
const int ledB = 1; // звуковой пъезоэлемент на 1 пин
// переменные
int dwS = 0; // состояние датчика уровня воды
int dgS1 = 0; // состояние датчика уровня влажности почвы Nr1
int dgS2 = 0; // состояние датчика уровня влажности почвы Nr2
int dgS3 = 0; // состояние датчика уровня влажности почвы Nr3
int dgS4 = 0; // состояние датчика уровня влажности почвы Nr4
int dgS5 = 0; // состояние датчика уровня влажности почвы Nr5
//установки
void setup() <
// объявляем пины светодиодов и насоса как выходы:
pinMode(nasos1, OUTPUT);
pinMode(nasos2, OUTPUT);
pinMode(nasos3, OUTPUT);
pinMode(nasos4, OUTPUT);
pinMode(nasos5, OUTPUT);
pinMode(ledB, OUTPUT);
// объявляем пины датчиков и насоса как входы:
pinMode(dw, INPUT);
pinMode(dg1, INPUT);
pinMode(dg2, INPUT);
pinMode(dg3, INPUT);
pinMode(dg4, INPUT);
pinMode(dg5, INPUT);

>
// рабочий цикл
void 1оор() <
// считываем состояния датчика уровня жидкости
dwS = digitalRead(dw);
// если воды мало звуковой пъезоэлемент
if (dwS == LOW)
digitalWrite(ledB, HIGH);
else
digitalWrite(ledB, LOW);
// считываем состояния датчика влажности почвы Nr1
dgS1 = digitalRead(dg1);
// если почва сухая, включаем полив насоса Nr1
if (dgS1 == LOW)
digitalWrite(nasos1, HIGH);
delay(2000);
digitalWrite(nasos1, LOW);
delay(30000);
else
digitalWrite(nasos1, LOW);
// считываем состояния датчика влажности почвы Nr2
dgS2 = digitalRead(dg2);
// если почва сухая, включаем полив насоса Nr2
if (dgS2 == LOW)
digitalWrite(nasos2, HIGH);
delay(2000);
digitalWrite(nasos2, LOW);
delay(30000);
else
digitalWrite(nasos2, LOW);
// считываем состояния датчика влажности почвы Nr3
dgS3 = digitalRead(dg3);
// если почва сухая, включаем полив насоса Nr3
if (dgS3 == LOW)
digitalWrite(nasos3, HIGH);
delay(2000);
digitalWrite(nasos3, LOW);
delay(30000);
else
digitalWrite(nasos3, LOW);
// считываем состояния датчика влажности почвы Nr4
dgS4 = digitalRead(dg4);
// если почва сухая, включаем полив насоса Nr4
if (dgS4 == LOW)
digitalWrite(nasos4, HIGH);
delay(2000);
digitalWrite(nasos4, LOW);
delay(30000);
else
digitalWrite(nasos4, LOW);
// считываем состояния датчика влажности почвы Nr5
dgS5 = digitalRead(dg5);
// если почва сухая, включаем полив насоса Nr5
if (dgS1 == LOW)
digitalWrite(nasos5, HIGH);
delay(2000);
digitalWrite(nasos5, LOW);
delay(30000);
else
digitalWrite(nasos5, LOW);
>

Примитивная до безобразия, но при компиляции выдаёт ошибки:

Arduino: 1.6.5 (Windows 8.1), Board: «Arduino Leonardo»

Cveti_Lacplesa_42_2_5pump:40: error: stray ‘’ in program
Cveti_Lacplesa_42_2_5pump:40: error: stray ‘’ in program
Cveti_Lacplesa_42_2_5pump:40: error: stray ‘’ in program
Cveti_Lacplesa_42_2_5pump:40: error: expected unqualified-id before numeric constant
stray ‘’ in program

This report would have more information with
«Show verbose output during compilation»
enabled in File > Preferences.

Источник

Stray error in с program files

trying a code for a simple game i downloaded. when i run it i get lines and lines of this error:
error stray ‘200’ in program (with different numbers)
— i’m using code::blocks, in case that matters.

what does this mean??
here are the first lines of the code. the first error (one in subject) points to line 36

wow i guess there’s a lot wrong with this code.

I just got the same error doing something different now. In another example, i need to use this line:

#import «C:\Program Files\O2Gfxcore.dll»

does that mean the line is wrong or is the .dll library wrong?

still getting the same error. I even moved the file to c: and used:

and still same error

Switch to forward slash / instead of double-backslashes. It works on Win, and means you don’t have to worry about double-slashes.

Which compiler (and preprocessor) are you using? Does it recognise #import? It’s not part of the C++ standard.

the code (i tried include in place of import, same problem):

warning: #import is a deprecated GCC extension

Um. why are you using #import in that case?

Don’t use import. It seems that your preprocessor doesn’t recognise it.

Don’t a dll file. It’s meaningless. literally copies the entire file you want to include, and puts it into the place where you wrote .

Do not a dll file. I know I already said that, but I get the feeling saying it twice will help.

Why are you trying to a dll file? I think you must have misunderstood what a dll file is.

Источник

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Specialised Support
  • Development & Programming
  • Programming Talk
  • Confusing GCC Problems

  1. Confusing GCC Problems

    I am having some problems with gcc. I am playing with xine-lib, LOVE IT!

    Anyway, this tutorial:

    http://linoleum.leapster.org/archive…ib-Part-1.html

    has a short little c example of how to use the API, but the problem is that a simple copy and paste jacks the thing up. I get a ton of errors that seem to do with the encoding. I would like to post them, but I’m not on a developing machine at the moment.

    Is there a way to remove the encoding while copying/pasting into a text editor? I even tried vim, but it still did wacky things — you should try it

    I know the code works, because I retyped it, and compiled and executed just fine.

    Oh, if you want to compile it, you need libxine-dev from the repositories, and a simple gcc x.c -o x -lxine will compile it.

    We must be the change we wish to see — Gandhi


  2. Re: Confusing GCC Problems

    This seems to work

    Code:

    cat 'x.c'  | tr -dc [\n,[:print:]] > out.c

    wher x.c is the input file
    you can check to see if there are any odd characters in the file with

    Code:

    cat --show-nonprinting out.c

    In /dev/null no one can hear the kernel panic!
    Don’t EVER use sudo rm -rf / . if you don’t understand a command check it out first!
    BACK UP YOUR DATA OR YOU WILL LOSE IT!!
    Supergrub — The best thing since sliced bread www.supergrubdisk.org


  3. Re: Confusing GCC Problems

    Just out of curiosity, do you know what causes it? Just wrong encoding?

    BTW this is the error report using gedit.

    xineex.c:7: error: stray �342� in program
    xineex.c:7: error: stray �210� in program
    xineex.c:7: error: stray �227� in program
    xineex.c:7: error: stray �342� in program
    xineex.c:7: error: stray �210� in program
    xineex.c:7: error: stray �227� in program
    xineex.c: In function �main�:
    xineex.c:9: error: stray �342� in program
    xineex.c:9: error: stray �210� in program
    xineex.c:9: error: stray �227� in program
    xineex.c:9: warning: initialization makes integer from pointer without a cast
    xineex.c:11: error: stray �342� in program
    xineex.c:11: error: stray �210� in program
    xineex.c:11: error: stray �227� in program
    xineex.c:11: error: storage size of �engine� isn�t known
    xineex.c:12: error: stray �342� in program
    xineex.c:12: error: stray �210� in program
    xineex.c:12: error: stray �227� in program
    xineex.c:12: error: storage size of �ap� isn�t known
    xineex.c:13: error: stray �342� in program
    xineex.c:13: error: stray �210� in program
    xineex.c:13: error: stray �227� in program
    xineex.c:13: error: storage size of �vp� isn�t known
    xineex.c:14: error: stray �342� in program
    xineex.c:14: error: stray �210� in program
    xineex.c:14: error: stray �227� in program
    xineex.c:14: error: storage size of �stream� isn�t known
    xineex.c:30: warning: passing argument 2 of �xine_open� makes pointer from integer without a cast
    xineex.c:38: error: stray �342� in program
    xineex.c:38: error: stray �210� in program
    xineex.c:38: error: stray �227� in program
    xineex.c:38: error: expected �)� before numeric constant

    We must be the change we wish to see — Gandhi


  4. Re: Confusing GCC Problems

    I think its just the html tags getting in the way if you look at the page source you will see lots of embedded tags ie

    Code:

    int main(int argc, char &lowast;&lowast;argv)<br />

    Just another badly made web page!

    In /dev/null no one can hear the kernel panic!
    Don’t EVER use sudo rm -rf / . if you don’t understand a command check it out first!
    BACK UP YOUR DATA OR YOU WILL LOSE IT!!
    Supergrub — The best thing since sliced bread www.supergrubdisk.org


Bookmarks

Bookmarks


Posting Permissions

Я пытаюсь создать программу на C, имея матрицу и найти, есть ли число в позиции, но я получаю следующие ошибки:

[решено]

funcao.c:8:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(i=0; i=y; y++){
  ^
funcao.c:9:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   for(j=0;j=k; k++){
   ^
funcao.c:10:4: error: stray ‘342’ in program
    if(∗(∗(m+i)+j)==numero){
    ^
funcao.c:10:4: error: stray ‘210’ in program
funcao.c:10:4: error: stray ‘227’ in program
funcao.c:10:4: error: stray ‘342’ in program
funcao.c:10:4: error: stray ‘210’ in program
funcao.c:10:4: error: stray ‘227’ in program
funcao.c:10:22: warning: comparison between pointer and integer [enabled by default]
    if(∗(∗(m+i)+j)==numero){
                      ^
make: *** [funcao.o] Error 1

И мой код таков:

int find_matriz(int **m, int number, int y, int k){
    int find=0;
    int i,j;
    for(i=0; i<y; y++){
        for(j=0;j<k; k++){
            if(*(*(m+i)+j)==number){
            find=1;
            }
        }
    }
    return find;
}

Я не смог найти ничего в сети или здесь о матрице и этой ошибке. Кто-нибудь может мне помочь?

[не решено]

Я продолжаю получать ошибку после изменения кода:

make: *** [run] Segmentation fault

Основной код:

int main(void) {

    int m[5][2]={{5,2},{2,1},{4,7},{6,7},{43,98}};

    int y=2;

    int k=1;

    int number=2;

    int find=find_matriz(m, number, y, k);

    printf("find %dn",find);

    return 0;

}

2 ответа

Лучший ответ

for(i=0; i=y; y++){
    for(j=0;j=k; k++){

См. Эти рабочие циклы и их условия i=y и j=k. Вы присваиваете им значения, о которых идет речь.

Наверное, сделаю это —

for(i=0; i<y; i++){
    for(j=0;j<k; j++){

И это —

if(∗(∗(m+i)+j)==number){

Это не тот оператор, который используется для разыменования указателя.

Используйте * для разыменования —

if(*(*(m+i)+j)==number){   // or simply write m[i][j]


0

ameyCU
28 Ноя 2015 в 17:08

Две звезды в вашем условии if — это не обычные звездочки, а другой символ, который выглядит похожим. Если присмотреться, они выглядят немного иначе, чем в списке параметров.


0

Thomas Padron-McCarthy
28 Ноя 2015 в 17:06

Понравилась статья? Поделить с друзьями:
  • Error storage class specified for parameter
  • Error stopall is not a member of wifiudp
  • Error stop called because of bltouch error restart with m999
  • Error stop 0x0000007b
  • Error stop 00000