Skip to content

Error occurred when make #6

@xiangpdu

Description

@xiangpdu

$ make
g++ -DPOSIX -std=c++14 -c -Wall -O2 src/socket/Socket.cpp -o build/obj/socket/Socket.o
In file included from /usr/include/x86_64-linux-gnu/bits/byteswap.h:35:0,
from /usr/include/endian.h:60,
from /usr/include/x86_64-linux-gnu/sys/types.h:216,
from src/socket/../system/System.h:30,
from src/socket/Socket.h:3,
from src/socket/Socket.cpp:2:
src/socket/Socket.cpp: In member function ‘bool Socket::Socket::bind(int) const’:
src/socket/Socket.cpp:108:6: error: expected id-expression before ‘(’ token
::htons(port),
^
make: *** [build/obj/socket/Socket.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions