• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling [Solved] core.h errors. TFS 1.5 Downgrade 8.6.

Erna

Moraliskt Stöd
Joined
Oct 26, 2009
Messages
40
Reaction score
19
Location
Sweden
As the topic says I'm having issues compiling on windows due to core.h errors. Please see the pictures below;bild_2023-11-19_043020502.png

bild_2023-11-19_043107264.png

I've tried several google fixes and non of the ones I could find worked.
My exhausted brain is melting and I've sat with this for too long so I'm asking you guys, that might be able to see what I can't.

Thanks in advance, Erna.
 
Last edited:
Solution
same problem on 7.72 nekiro

edit @Erna watch out!

open src/tools.h

find

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

and paste under this line

Lua:
template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

so finally this will look like this:

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

#endif
same problem on 7.72 nekiro

edit @Erna watch out!

open src/tools.h

find

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

and paste under this line

Lua:
template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

so finally this will look like this:

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

#endif
 
Last edited:
Solution
same problem on 7.72 nekiro

edit @Erna watch out!

open src/tools.h

find

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

and paste under this line

Lua:
template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

so finally this will look like this:

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

#endif
You're a gem bud!
I am pretty sure I've added that line before but together with other edits from other fixes which resulted in alot of errors (since I only had this error I guess building on the other texts it was creating havoc with well over a 100 errors so I guess I never noticed that the particular core.h was fixed.

You saved what's left of this weekend haha. Thanks again!
 
same problem on 7.72 nekiro

edit @Erna watch out!

open src/tools.h

find

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

and paste under this line

Lua:
template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

so finally this will look like this:

Lua:
SpellGroup_t stringToSpellGroup(const std::string& value);

template < typename E >
  auto format_as(E e) {
    return fmt::underlying(e);
  }

#endif
nice bro i you solved me o/ thaaanks
 
This solution is not solved my problem :( If I add you code i get new error:

C++:
Severity    Code    Description    Project    File    Line    Suppression State    Details
Error    C2062    type 'unknown-type' unexpected    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548        
Error    C2144    syntax error: 'unknown-type' should be preceded by '('    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548        
Error    C3615    constexpr function 'fmt::v10::detail::encode_types' cannot result in a constant expression    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1796        
Error    C2039    'value': is not a member of '`global namespace''    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548        
Error    C2672    'fmt::v10::underlying': no matching overloaded function found    Bleach_Legends    B:\vcpkg\Bleach_Legends_Engine_1.5_8.6\src\tools.h    101
before:
C++:
Severity    Code    Description    Project    File    Line    Suppression State    Details
Error    C2338    static_assert failed: 'Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt'    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1580

any sugestion?
 
This solution is not solved my problem :( If I add you code i get new error:

C++:
Severity    Code    Description    Project    File    Line    Suppression State    Details
Error    C2062    type 'unknown-type' unexpected    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548       
Error    C2144    syntax error: 'unknown-type' should be preceded by '('    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548       
Error    C3615    constexpr function 'fmt::v10::detail::encode_types' cannot result in a constant expression    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1796       
Error    C2039    'value': is not a member of '`global namespace''    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1548       
Error    C2672    'fmt::v10::underlying': no matching overloaded function found    Bleach_Legends    B:\vcpkg\Bleach_Legends_Engine_1.5_8.6\src\tools.h    101
before:
C++:
Severity    Code    Description    Project    File    Line    Suppression State    Details
Error    C2338    static_assert failed: 'Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt'    Bleach_Legends    B:\vcpkg\installed\x64-windows\include\fmt\core.h    1580

any sugestion?
Check if you have forgotten any semicolons for example after declaring some function or class in the header file (see this). Check if you have any accidental extra characters after include (see this). Try to revert your code back to when you were getting only the second error and try again, carefully. If none of these work I'm out of ideas, I wish you good luck.
 
Back
Top