User forums > Help

Conflicting types error when building library


OS: Fedora 36
Code::Blocks version: 20.03
GCC version: gcc version 12.1.1 20220507 (Red Hat 12.1.1-1) (GCC)
Software: Enet-1.3.17
Error: conflicting types for `socklen_t`; have `int`

I downloaded enet previously and was able to build enet but my harddrive crashed. I am rebuilding the libraries using a cpb project included but am getting the previously mentioned error. I remember reading somewhere there may be a conflict either with the compiler or c standard it follows but cannot find a link. Attached is a copy of the build log. Anyone have any ideas?

1. Read the rules for this website.
2. Find a website that supports your compiler; this website does not support any compilers.
3. Find a website that supports your programming questions.
4. Find out how to use version control system like git; and, find a free version control service website
5. Learn how to use search engines
6. Learn how to search open and closed issues on software you use

Link to rules:,9996.0.html

Edit: Add link to CB wiki

Tim S.


[0] Message Index

Go to full version