Re: [hatari-users] Hatari goes Sinclair QL

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-users Archives ]


Le 01/04/2016 17:53, Thomas Huth a écrit :
On 01.04.2016 17:35, Laurent Sallafranque wrote:
Hi Thomas,

I have a compilation error :

définitions multiples de = multiple definition of

Linking C executable hatari
CMakeFiles/hatari.dir/rs232.c.o: dans la fonction « QLsetmode »:
rs232.c:(.text+0xc0): définitions multiples de « QLsetmode »

Interesting ... that did not occur with my version of gcc ... anyway,
I've tried to fix it and uploaded a new version in case you want to try
again.


Hi

the ql/ part doesn't build on my pc either :

lots of  warnings :

[ 73%] Building C object src/ql/CMakeFiles/Ql.dir/dummies.c.o
/home/npomarede/hatari-ql/src/ql/dummies.c: Dans la fonction âx_readâ:
/home/npomarede/hatari-ql/src/ql/dummies.c:31:9: attention : implicit declaration of function âreadâ [-Wimplicit-function-declaration]
     res=read(fildes,buf,byt);
         ^
/home/npomarede/hatari-ql/src/ql/dummies.c:32:28: attention : implicit declaration of function âeretryâ [-Wimplicit-function-declaration]
   while(res<=0 && byt>0 && eretry());
                            ^
/home/npomarede/hatari-ql/src/ql/dummies.c: Hors de toute fonction :
/home/npomarede/hatari-ql/src/ql/dummies.c:164:1: attention : return type defaults to âintâ [-Wimplicit-int]
 PauseTimer()
 ^
/home/npomarede/hatari-ql/src/ql/dummies.c:167:1: attention : return type defaults to âintâ [-Wimplicit-int]
 StartTimer()
 ^

[...]

then in the end :

/home/npomarede/hatari-ql/src/ql/QL_files.c: Hors de toute fonction :
/home/npomarede/hatari-ql/src/ql/QL_files.c:1042:6: erreur : conflicting types for âWriteMdvControlâ
 void WriteMdvControl(aw8 d)
      ^
In file included from /home/npomarede/hatari-ql/src/ql/QL_files.c:7:0:
/home/npomarede/hatari-ql/src/ql/QL68000.h:392:6: note : previous declaration of âWriteMdvControlâ was here
 void WriteMdvControl(aw8) REGP1;
      ^
src/ql/CMakeFiles/Ql.dir/build.make:566 : la recette pour la cible « src/ql/CMakeFiles/Ql.dir/QL_files.c.o » a échouée
make[2]: *** [src/ql/CMakeFiles/Ql.dir/QL_files.c.o] Erreur 1
CMakeFiles/Makefile2:261 : la recette pour la cible « src/ql/CMakeFiles/Ql.dir/all » a échouée
make[1]: *** [src/ql/CMakeFiles/Ql.dir/all] Erreur 2

and it fails there.

this is with gcc 5.3.1

Nicolas





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/