azbycxdw909 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Compile errors under Linux (cgstream.c) #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Compiling under Linux produces the following output:

Cc build/linux.release/garglk/cgstream.o
garglk/cgstream.c: In function ‘gli_put_char’:
garglk/cgstream.c:488: erreur: lvalue required as increment operand
garglk/cgstream.c:491: erreur: lvalue required as increment operand
garglk/cgstream.c: In function ‘gli_put_char_uni’:
garglk/cgstream.c:530: erreur: lvalue required as increment operand
garglk/cgstream.c:533: erreur: lvalue required as increment operand
garglk/cgstream.c: In function ‘gli_get_char’:
garglk/cgstream.c:862: erreur: lvalue required as increment operand
garglk/cgstream.c:868: erreur: lvalue required as increment operand
garglk/cgstream.c: In function ‘gli_get_char_uni’:
garglk/cgstream.c:911: erreur: lvalue required as increment operand
garglk/cgstream.c:917: erreur: lvalue required as increment operand
garglk/cgstream.c: In function ‘gli_get_line’:
garglk/cgstream.c:1168: erreur: lvalue required as left operand of
assignment
garglk/cgstream.c:1193: erreur: lvalue required as left operand of
assignment
garglk/cgstream.c: In function ‘gli_get_line_uni’:
garglk/cgstream.c:1278: erreur: lvalue required as left operand of
assignment
garglk/cgstream.c:1301: erreur: lvalue required as left operand of
assignment

gcc -c -o build/linux.release/garglk/cgstream.o `pkg-config freetype2
gtk+ --cflags` -fPIC -I/usr/include/SDL -O  -Igarglk -Igarglk
garglk/cgstream.c

...failed Cc build/linux.release/garglk/cgstream.o ...
...skipped libgarglk.so for lack of <garglk>cgstream.o... 

Original issue reported on code.google.com by bcressey@gmail.com on 25 Oct 2008 at 5:55

GoogleCodeExporter commented 8 years ago
Under Windows, the build process warns:
garglk\cgstream.c: In function `gli_put_char':
garglk\cgstream.c:488: warning: use of cast expressions as lvalues is deprecated

Seems like the newer gcc under Linux has removed support for the offending call.

Original comment by bcressey@gmail.com on 25 Oct 2008 at 5:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 26 Oct 2008 at 5:24