Opened 15 years ago

Closed 15 years ago

#867 closed bug (fixed)

Calculator build fails under GCC4

Reported by: engima Owned by: axeld
Priority: normal Milestone: R1
Component: Applications Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


When building the target Calculator under GCC4 with command jam -q Calculator the compilation fails with references to undefined function 'strlen'. If the string header is included in the relevant file explicitly the compilation succeeds.

Additionally link errors are encountered accessing libstdc++. This can be rectified by adding additional link libraries as with #862.

Created patch for GCC4 and attached. Unverified under GCC2.x however should be fine. Note, as it's not in the haiku-image target it's not a huge priority.

Attachments (1)

calculator.diff (1.8 KB ) - added by engima 15 years ago.
Compilation and link fixes for GCC4

Download all attachments as: .zip

Change History (3)

by engima, 15 years ago

Attachment: calculator.diff added

Compilation and link fixes for GCC4

comment:1 by axeld, 15 years ago

I think that the Calculator will be removed from the repository anyway. I'll wait with applying your patch until this is cleared.

comment:2 by axeld, 15 years ago

Resolution: fixed
Status: newclosed

I've removed the app, and thus fixed this bug, in hrev19019. Thanks for your patch, anyway, and sorry that it wasn't necessary!

Note: See TracTickets for help on using tickets.