Code::Blocks Forums

User forums => Help => Topic started by: cluelessnoob on July 24, 2022, 11:42:55 pm

Title: Conflicting types error when building library
Post by: cluelessnoob on July 24, 2022, 11:42:55 pm
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?
Title: Re: Conflicting types error when building library
Post by: stahta01 on July 25, 2022, 03:39:26 pm
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

https://github.com/lsalzman/enet/issues/90 (https://github.com/lsalzman/enet/issues/90)

Link to rules: https://forums.codeblocks.org/index.php/topic,9996.0.html (https://forums.codeblocks.org/index.php/topic,9996.0.html)

Edit: Add link to CB wiki https://wiki.codeblocks.org/index.php/Main_Page (https://wiki.codeblocks.org/index.php/Main_Page)

Tim S.