Çözüldü str_to_number hatası

  • Konuyu açan Konuyu açan TheAdmin33
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 4
  • Gösterim Gösterim 235
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

TheAdmin33

Ah, bu şarkıların gözü kör olsun
Geliştirici
Yardımsever Üye
Usta Üye
Editör
Mesaj
1.095
Çözümler
61
Beğeni
2.925
Puan
1.859
Ticaret Puanı
0
@themanji nin paylaştığı filestan( Manji'DeN - Büyük Ders | Hiera 55-120 Server Files Full ) biyolog sistemini söktüm kendi filesıma ekledim ama hata veriyor sebebi ne onuda anlayamadım çözümünü bilen varmı?

hata:
Genişlet Daralt Kopyala
In file included from stdafx.h:12,
                 from char_quickslot.cpp:1:
../../common/utils.h:82:13: note: 'bool str_to_number(float&, const char*)' previously defined here
   82 | inline bool str_to_number (float& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_quickslot.cpp:3:
../../common/utils.h:90:13: error: redefinition of 'bool str_to_number(double&, const char*)'
   90 | inline bool str_to_number (double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_quickslot.cpp:1:
../../common/utils.h:90:13: note: 'bool str_to_number(double&, const char*)' previously defined here
   90 | inline bool str_to_number (double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_quickslot.cpp:3:
../../common/utils.h:99:13: error: redefinition of 'bool str_to_number(long double&, const char*)'
   99 | inline bool str_to_number (long double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_quickslot.cpp:1:
../../common/utils.h:99:13: note: 'bool str_to_number(long double&, const char*)' previously defined here
   99 | inline bool str_to_number (long double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:2:13: error: redefinition of 'bool str_to_number(bool&, const char*)'
    2 | inline bool str_to_number (bool& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:2:13: note: 'bool str_to_number(bool&, const char*)' previously defined here
    2 | inline bool str_to_number (bool& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:10:13: error: redefinition of 'bool str_to_number(char&, const char*)'
   10 | inline bool str_to_number (char& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:10:13: note: 'bool str_to_number(char&, const char*)' previously defined here
   10 | inline bool str_to_number (char& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:18:13: error: redefinition of 'bool str_to_number(unsigned char&, const char*)'
   18 | inline bool str_to_number (unsigned char& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:18:13: note: 'bool str_to_number(unsigned char&, const char*)' previously defined here
   18 | inline bool str_to_number (unsigned char& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:26:13: error: redefinition of 'bool str_to_number(short int&, const char*)'
   26 | inline bool str_to_number (short& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:26:13: note: 'bool str_to_number(short int&, const char*)' previously defined here
   26 | inline bool str_to_number (short& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:34:13: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)'
   34 | inline bool str_to_number (unsigned short& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:34:13: note: 'bool str_to_number(short unsigned int&, const char*)' previously defined here
   34 | inline bool str_to_number (unsigned short& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:42:13: error: redefinition of 'bool str_to_number(int&, const char*)'
   42 | inline bool str_to_number (int& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:42:13: note: 'bool str_to_number(int&, const char*)' previously defined here
   42 | inline bool str_to_number (int& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:50:13: error: redefinition of 'bool str_to_number(unsigned int&, const char*)'
   50 | inline bool str_to_number (unsigned int& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:50:13: note: 'bool str_to_number(unsigned int&, const char*)' previously defined here
   50 | inline bool str_to_number (unsigned int& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:58:13: error: redefinition of 'bool str_to_number(long int&, const char*)'
   58 | inline bool str_to_number (long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:58:13: note: 'bool str_to_number(long int&, const char*)' previously defined here
   58 | inline bool str_to_number (long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:66:13: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)'
   66 | inline bool str_to_number (unsigned long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:66:13: note: 'bool str_to_number(long unsigned int&, const char*)' previously defined here
   66 | inline bool str_to_number (unsigned long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:74:13: error: redefinition of 'bool str_to_number(long long int&, const char*)'
   74 | inline bool str_to_number (long long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:74:13: note: 'bool str_to_number(long long int&, const char*)' previously defined here
   74 | inline bool str_to_number (long long& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:82:13: error: redefinition of 'bool str_to_number(float&, const char*)'
   82 | inline bool str_to_number (float& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:82:13: note: 'bool str_to_number(float&, const char*)' previously defined here
   82 | inline bool str_to_number (float& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:90:13: error: redefinition of 'bool str_to_number(double&, const char*)'
   90 | inline bool str_to_number (double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:90:13: note: 'bool str_to_number(double&, const char*)' previously defined here
   90 | inline bool str_to_number (double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from new_biolog_system.h:2,
                 from char.h:18,
                 from char_resist.cpp:4:
../../common/utils.h:99:13: error: redefinition of 'bool str_to_number(long double&, const char*)'
   99 | inline bool str_to_number (long double& out, const char *in)
      |             ^~~~~~~~~~~~~
In file included from stdafx.h:12,
                 from char_resist.cpp:1:
../../common/utils.h:99:13: note: 'bool str_to_number(long double&, const char*)' previously defined here
   99 | inline bool str_to_number (long double& out, const char *in)
      |             ^~~~~~~~~~~~~
gmake: *** [Makefile:121: OBJDIR/building.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char_quickslot.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char_resist.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char_item.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char_battle.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char.o] Error 1
gmake: *** [Makefile:121: OBJDIR/char_manager.o] Error 1
root@Razuning:/usr/Razuning-V5/Server/game/src #
 
Daha önce var olan
bool str_to_number(float&, const char*)
fonksiyonu yeniden tanımlanmış diyor, yani tekrar eklemişsin.
common/utils.h kontrol et
 
Daha önce var olan
bool str_to_number(float&, const char*)
fonksiyonu yeniden tanımlanmış diyor, yani tekrar eklemişsin.
common/utils.h kontrol et
evet öyle diyorda ben o dosyada düzenleme yapmadım ki
 
#include "stdafx.h"

bu include birden fazla kez kullanılmış ondan hata veriyormuş fazlalık include ları silince düzeldi.
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst