Opened 2 years ago

Closed 16 months ago

Last modified 13 months ago

#117 closed defect (fixed)

Rational constructor from 0 is declared but undefined

Reported by: mlbrooks Owned by: pabuhr
Priority: trivial Component: libcfa
Version: 1.0 Keywords:
Cc:

Description

#include "rational.hfa"
int main() {
  Rational(int) x = {5, 5};  // 1
  Rational(int) y = 0;       // 2  
}

With 1 effective and 2 commented out, compiles and links. With 2 effective , compiles and fails to link.

undefined reference to `_X12_constructorQ1_0_0_22__X16_operator_assignFBD0_BD0BD0__X12_constructorFv_BD0__X12_constructorFv_BD0BD0__X11_destructorFv_BD0__X16_operator_lognotFi_BD0__X15_operator_equalFi_BD0BD0__X18_operator_notequalFi_BD0BD0__X14_operator_lessFi_BD0BD0__X19_operator_lessequalFi_BD0BD0__X17_operator_greaterFi_BD0BD0__X22_operator_greaterequalFi_BD0BD0__X12_constructorFv_BD0Z__X12_constructorFv_BD0O__X19_operator_unaryplusFBD0_BD0__X20_operator_unaryminusFBD0_BD0__X13_operator_addFBD0_BD0BD0__X18_operator_subtractFBD0_BD0BD0__X18_operator_multiplyFBD0_BD0BD0__X16_operator_divideFBD0_BD0BD0__X17_operator_modulusFBD0_BD0BD0__X19_operator_divassignFBD0_BD0BD0__X3absFBD0_BD0__Fv_S8Rational_BD0_Z__1'

Change History (4)

comment:1 Changed 16 months ago by Thierry Delisle

Owner: set to pabuhr
Status: newassigned

comment:2 Changed 16 months ago by Peter A. Buhr <pabuhr@…>

Resolution: fixed
Status: assignedclosed

In f00b2c2:

defined rational constructor from 0 [fixes #117]

comment:3 Changed 16 months ago by Peter A. Buhr <pabuhr@…>

In f00b2c2:

defined rational constructor from 0 [fixes #117]

comment:4 Changed 13 months ago by Peter A. Buhr <pabuhr@…>

In f00b2c2:

defined rational constructor from 0 [fixes #117]

Note: See TracTickets for help on using tickets.