game nu se compileaza

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
CjMt2
Nivel 2

Nivel 2
Mesaje: 291
Membru din: 20 Sep 2014, 07:01
Server: CjMt2
Regat: Shinsoo
Aprecieri: 18  
Mulţumiri: 22  
Discord: Copiază ID
 Contact:
Medalii

Cod: Selectaţi tot

$ uname -a
FreeBSD localhost 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4
Din pacate game nu se compileaza, sincer nu am timp sa ma ocup dar daca cineva vrea si poate va rog lasati mesaj.

Eroarea: https://photos.app.goo.gl/8zUEPpg9T4emd95b9

In principiu,

Cod: Selectaţi tot

DragonSoul.cpp:385:11: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
Rezolvare:
ee DragonSoul.cpp

Cod: Selectaţi tot

sys_err ("Cannot create DRAGON_HEART(%d).", DRAGON_HEART_VNUM);
return NULL;
devine

Cod: Selectaţi tot

sys_err ("Cannot create DRAGON_HEART(%d).", DRAGON_HEART_VNUM);
return false;
ee utils.cpp

Cod: Selectaţi tot

return thecore_random() / (RAND_MAX + 1.f) * (b - a) + a;
devine

Cod: Selectaţi tot

return thecore_random() / ((double)RAND_MAX + 1.f) * (b - a) + a;
si

Cod: Selectaţi tot

main.cpp:82:10: fatal error: 'gtest/gtest.h' file not found
#include <gtest/gtest.h>
Rezolvare:

Cod: Selectaţi tot

pkg install devel/googletest && cd /usr/home/game/src && ln -s /usr/include/private/gtest gtest
Acum are:

Cod: Selectaţi tot

linking ../game....
ld: error: unable to find library -lanticpxsvr
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Multumesc frumos.
Daca nu era freebsd open source si rain nu ar fi furat filele sursei de la ymir azi nu exista acest forum.
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
240
Răspunsuri
5
Vizualizări
899
Răspunsuri
3
Vizualizări
471
Răspunsuri
11
Vizualizări
644

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot], Semrush [Bot] și 76 vizitatori