News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Conflicting types error when building library

Started by cluelessnoob, July 24, 2022, 11:42:55 PM

Previous topic - Next topic

cluelessnoob

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?

stahta01

#1
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

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

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]