Re: error: stray '\xyz' in program

Gregor Schatz <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Philipp Thomas schrieb:
> Wie rufst du den Compiler auf?
>
via make
if g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT pointer.o -MD -MP -MF 
".deps/pointer.Tpo" \
  -c -o pointer.o `test -f 'pointer.cpp' || echo './'`pointer.cpp; \
then mv -f ".deps/pointer.Tpo" ".deps/pointer.Po"; \
else rm -f ".deps/pointer.Tpo"; exit 1; \
fi

Jetzt weiß ich auch selbst wo das Problem liegt. ;)
g++ -DHAVE_CONFIG_H -I. -I. -I.   
und eine Datei im Verzeichnis die "list" heißt.
Muss noch mehr über make, automake und autoconf lernen.
>
> > int main(int, char**) {
> >     std::cout << sizeof(Sprite);
> >     list<Sprite> sprList;
>
>       ^^^^ Da muss ein std:: davor, sonst meckert der Compiler.
Stimmt das tut er.

Besten dank für alle Hilfe und Anregungen

Gruß
Gregor


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.