Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when building the project #2

Open
RichieChilipa opened this issue Jan 6, 2025 · 0 comments
Open

Errors when building the project #2

RichieChilipa opened this issue Jan 6, 2025 · 0 comments

Comments

@RichieChilipa
Copy link

I get the error below when trying to build the project, I am using MacOS Ventura:

[ 5%] Building CXX object CMakeFiles/okec.dir/src/algorithms/classic/cloud_edge_end_default_decision_engine.cc.o
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/src/algorithms/classic/cloud_edge_end_default_decision_engine.cc:4:
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/devices/base_station.h:16:
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/devices/cloud_server.h:16:
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/network/udp_application.h:32:18: error: 'GetInstanceTypeId' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
virtual auto GetInstanceTypeId() const -> ns3::TypeId;
^
/usr/local/include/ns3/object.h:147:12: note: overridden virtual function is here
TypeId GetInstanceTypeId() const override;
^
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/src/algorithms/classic/cloud_edge_end_default_decision_engine.cc:4:
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/devices/base_station.h:18:
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:15:
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/color.h:178:21: error: no member named 'format' in namespace 'std'
return std::format("\033[38;2;{};{};{}m", r, g, b);
~~~~~^
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/src/algorithms/classic/cloud_edge_end_default_decision_engine.cc:4:
In file included from /Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/devices/base_station.h:18:
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:68:48: error: no template named 'format_string' in namespace 'std'
inline auto print(okec::color text_color, std::format_string<Args...>&& fmt, Args&&... args)
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:72:24: error: no member named 'formatted_size' in namespace 'std'
auto indent = std::formatted_size(time_format, okec::now::seconds()) +
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:73:24: error: no member named 'formatted_size' in namespace 'std'
std::formatted_size(solid_square_format);
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:74:35: error: no member named 'format' in namespace 'std'
print(okec::color::gray, std::format(time_format, okec::now::seconds()));
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:77:50: error: no member named 'format_string' in namespace 'std'
auto content = std::format(std::forward<std::format_string<Args...>>(fmt), std::forward(args)...);
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:77:64: error: 'Args' does not refer to a value
auto content = std::format(std::forward<std::format_string<Args...>>(fmt), std::forward(args)...);
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:67:23: note: declared here
template <typename... Args>
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:77:25: error: no member named 'format' in namespace 'std'
auto content = std::format(std::forward<std::format_string<Args...>>(fmt), std::forward(args)...);
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:81:27: error: no member named 'chunk' in namespace 'std::ranges::views'
| std::views::chunk(winsize.col - indent)
~~~~~~~~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:82:27: error: no member named 'join_with' in namespace 'std::ranges::views'
| std::views::join_with(std::format("\n{:{}}", "", indent - 1))
~~~~~~~~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:82:42: error: no member named 'format' in namespace 'std'
| std::views::join_with(std::format("\n{:{}}", "", indent - 1))
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:84:32: error: no member named 'format' in namespace 'std'
print(text_color, std::format("{}\n", std::string(data.begin(), data.end())));
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:93:24: error: no member named 'format_string' in namespace 'std'
inline auto debug(std::format_string<Args...>&& fmt, Args&&... args)
~~~~~^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:93:38: error: 'Args' does not refer to a value
inline auto debug(std::format_string<Args...>&& fmt, Args&&... args)
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:92:23: note: declared here
template <typename... Args>
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:93:54: error: 'Args' does not refer to a value
inline auto debug(std::format_string<Args...>&& fmt, Args&&... args)
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:92:23: note: declared here
template <typename... Args>
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:93:69: error: expected ';' at end of declaration
inline auto debug(std::format_string<Args...>&& fmt, Args&&... args)
^
;
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:94:5: error: cannot use arrow operator on a type
-> void {
^
/Users/richy/Desktop/Softwares/NS3/EdgeSim/ns-3.41/okec/include/okec/utils/log.h:100:23: error: no member named 'format_string' in namespace 'std'
inline auto info(std::format_string<Args...>&& fmt, Args&&... args)
~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/okec.dir/src/algorithms/classic/cloud_edge_end_default_decision_engine.cc.o] Error 1
make[1]: *** [CMakeFiles/okec.dir/all] Error 2

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant