Portál AbcLinuxu, 14. července 2025 20:50


Dotaz: GCC v Mandrivě

19.3.2006 21:29 Kodein | skóre: 4 | blog: kodblog
GCC v Mandrivě
Přečteno: 119×
Odpovědět | Admin
GCC v Mandrivě 2006 mi nepřeloží ani hello world aniž by to nehodilo alespoň Warning a s většíma prográmkam si neporadí už vůbec, nevite co s tim ?
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

19.3.2006 21:30 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Odpovědět | | Sbalit | Link | Blokovat | Admin
Jak vypadá ten váš hello world? Jak vypadá ten warning?
19.3.2006 21:35 alium | skóre: 38 | blog: Category 1100
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Vidím, že sis asi ztratil věšteckou kouli ? :-) :-)
19.3.2006 21:43 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Kdybych chtěl věštit, odpověděl bych, že je to nejspíš tím, že novější distribuce obsahují většinou čtyřkovou verzi GCC, která je podstatně méně tolerantní k čuňácky napsaným programům (což jsou bohužel skoro všechny). Ono to tak nejspíš bude, ale nechtěl jsem to napsat takhle natvrdo hned v první reakci, co kdyby to bylo něčím jiným… :-)
19.3.2006 22:12 alium | skóre: 38 | blog: Category 1100
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Mam pocit ze Mandriva ma 4.0.1cvs :)
19.3.2006 22:25 zabza | skóre: 52 | blog: Nad_sklenkou_cerveneho
Rozbalit Rozbalit vše Re: GCC v Mandrivě
[root@zero ~]# cat /etc/release 
Mandriva Linux release 2006.0 (Community) for i586
[root@zero ~]# rpm -q gcc
gcc-4.0.1-5mdk
[root@zero ~]# rpm -q gcc3.3
gcc3.3-3.3.6-2mdk
NbS avatar 19.3.2006 22:38 NbS | skóre: 26 | blog: Linux jako Linux ... vsude je neco jako /etc | Prague
Rozbalit Rozbalit vše Re: GCC v Mandrivě
No nevim :)
gcc --version
gcc (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Pan Bily byli bily strop, aby byl bily ... (Opravdu si myslite, ze je to spravne) ?
19.3.2006 22:20 alium | skóre: 38 | blog: Category 1100
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nejlepsi bude, kdyz sem hodis vypis z konzoly, co to dela/nedela, at je ceho se chytnout...
20.3.2006 20:28 Kodein | skóre: 4 | blog: kodblog
Rozbalit Rozbalit vše Re: GCC v Mandrivě
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>


int main(void){

struct dirent **namelist;
int n,i;

n = scandir(".", &namelist, 0, alphasort);
if (n < 0)
          perror("scandir");
          else {
        
              for(i = 1; i < n; i++ ) {
                  printf("%s\n", namelist[i]->d_name);
                  free(namelist[i]);
              }
              free(namelist);
          }

exit(EXIT_SUCCESS);
      }

Tohle je ten dalsi programek co jsem skousel. a hodi to :

prog.c: In function 'main':
prog.c:13: error: stray '\194' in program
prog.c:13: error: stray '\160' in program
prog.c:13: error: stray '\194' in program
prog.c:13: error: stray '\160' in program
prog.c:13: error: stray '\194' in program
prog.c:13: error: stray '\160' in program
prog.c:13: error: stray '\194' in program
prog.c:13: error: stray '\160' in program
prog.c:13: error: stray '\194' in program
prog.c:13: error: stray '\160' in program
prog.c:14: error: stray '\194' in program
prog.c:14: error: stray '\160' in program
prog.c:14: error: stray '\194' in program
prog.c:14: error: stray '\160' in program
prog.c:14: error: stray '\194' in program
prog.c:14: error: stray '\160' in program
prog.c:14: error: stray '\194' in program
prog.c:14: error: stray '\160' in program
prog.c:14: error: stray '\194' in program
prog.c:14: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:15: error: stray '\194' in program
prog.c:15: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:16: error: stray '\194' in program
prog.c:16: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:17: error: stray '\194' in program
prog.c:17: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:18: error: stray '\194' in program
prog.c:18: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:19: error: stray '\194' in program
prog.c:19: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:20: error: stray '\194' in program
prog.c:20: error: stray '\160' in program
prog.c:21: error: stray '\194' in program
prog.c:21: error: stray '\160' in program
prog.c:21: error: stray '\194' in program
prog.c:21: error: stray '\160' in program
prog.c:21: error: stray '\194' in program
prog.c:21: error: stray '\160' in program
prog.c:21: error: stray '\194' in program
prog.c:21: error: stray '\160' in program
prog.c:21: error: stray '\194' in program
prog.c:21: error: stray '\160' in program
prog.c:24: error: stray '\194' in program
prog.c:24: error: stray '\160' in program
prog.c:24: error: stray '\194' in program
prog.c:24: error: stray '\160' in program
prog.c:24: error: stray '\194' in program
prog.c:24: error: stray '\160' in program
prog.c:24:11: warning: no newline at end of file
20.3.2006 20:53 Sinuhet | skóre: 31
Rozbalit Rozbalit vše Re: GCC v Mandrivě
20.3.2006 21:12 Kodein | skóre: 4 | blog: kodblog
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Bez urážky. Kdybych se chtěl měsíc po večerech hrabat v googlu s anglickym slovníkem v ruce tak se neptam na českejch stránkách ... :)
20.3.2006 21:23 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Nějaké zabespečení SELINUX a podobně ?

Nevím co je v mandrivě.
20.3.2006 21:24 Sinuhet | skóre: 31
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Jakej mesic? Do vyhledavace vlozim hlasku z konzole a ve druhem odkazu mam odpoved. Ale jestli si to neumite prelouskat... ja vam to prekladat nebudu.
20.3.2006 21:44 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Já jsem se tam schválně díval a stejně sem to nepochopil - nějaké řešení jsem tam nenašel a fakt i já to se slovníkem překládat nebudu. :-(
20.3.2006 21:40 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Bez urážky, pokud nehodláte obětovat pět minut svého drahocenného času na použití vyhledávače a přečtení dvou až tří stránek, odpověď si nezasloužíte. Mohu vás ujistit, že kdybych tuto vaši reakci viděl dříve, než jsem vám odpověděl, rozhodně bych se s nějakou odpovědí nezdržoval.
20.3.2006 21:17 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Mě to funguje OK.

gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)

Bez jediné chybové hlášky.
20.3.2006 21:38 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Kombinace znaků '\194' a '\160' odpovídá UTF-8 zápisu znaku U+00A0, což je nedělitelná mezera. Nepoužíváte nějaký obskurní editor, který má svou hlavu a svévolně vám nahrazuje normální mezery nedělitelnými?
20.3.2006 21:55 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Jedině že by to psal v nějakém EXCELu pod windows a pod....

Nenarazil jsem zatím na žádný editor který by to dělal sám od sebe. Jediné na co sem narazil špatné konce řádků mezi editory v win a linuxu, což je tím že se v obou OS používají jinačí a některé editory to neumí převést.
20.3.2006 21:58 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Kdysi jsem pracoval s editorem (jméno už si nepamatuji), který při stisku Ctrl-space vkládal do textu nedělitelné mezery místo normálních. Při editaci HTML to bylo velmi praktické, ale kdybych v tom měl editovat céčkové zdrojáky, asi bych z toho radost neměl…
NbS avatar 20.3.2006 22:41 NbS | skóre: 26 | blog: Linux jako Linux ... vsude je neco jako /etc | Prague
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Ja nevim jak vam ale me to vypise pouze jednu chybovku : text.c:24:8: warning: no newline at end of file a a.out se v pohode vytvori ...
Pan Bily byli bily strop, aby byl bily ... (Opravdu si myslite, ze je to spravne) ?
24.7.2006 20:30 Tomáš Crhonek | skóre: 12
Rozbalit Rozbalit vše Re: GCC v Mandrivě
Odpovědět | | Sbalit | Link | Blokovat | Admin
Mam ubuntu 6.06 dapper drake a dela mi to uplne stejne chyby, chyba je v tom, ze vas editor uklada zdroj v utf-8... ja jsem nastavil iso-8859-2 a je po vsech problemech (pouzivam kwrite).

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.