Ticket #1388 (new bug) — at Initial Version

Opened 12 years ago

Last modified 11 years ago

pirc does not build with C++

Reported by: NotFound Owned by: kjs
Priority: normal Milestone:
Component: pirc Version: 1.9.0
Severity: fatal Keywords:
Cc: Language:
Patch status: Platform:

Description

pirc does not build with C++

The problem is that C++ does not allow automatic conversions from int to enums. Some cases can be easily fixed with casting, but there is a lot of places where they are set via macros that hide the target type. Either that macros must be redesigned or the enums must be replaced by ints. Or change the build system to always compile it with C. Or anything that works.

Note: See TracTickets for help on using tickets.