Opened 4 years ago

Closed 4 years ago

#160 closed defect (invalid)

Link problem on current trunk

Reported by: ycollet Owned by: tkr
Priority: major Component: Cbc
Version: trunk Keywords:
Cc:

Description

I compile Cbc on fedora 21 64 bits. The revision of Cbc is 2119. When I compile cbc, I meet a link error: ../bin/libCgl.a(CglGMI.cpp.o): dans la fonction « CglGMI::scaleCutIntegral(double*, int*, int, double&) »: CglGMI.cpp:(.text+0xa5e): référence indéfinie vers « CoinRational::nearestRational_(double, double, long) » CglGMI.cpp:(.text+0xae9): référence indéfinie vers « CoinRational::nearestRational_(double, double, long) » collect2: erreur: ld a retourné 1 code d'état d'exécution

Cgl revision is 1247.

YC

Change History (5)

comment:1 Changed 4 years ago by tkr

This should only happen if you don't have an up-to-date version of CoinUtils. What is the revision of CoinUtils? you are working with?

comment:2 Changed 4 years ago by ycollet

The version of CoinUtils? is 1786 (svn revision).

comment:3 Changed 4 years ago by tkr

You shouldn't get that link error with that version of CoinUtils. I'm not sure if you're using the autotools or CMake, but I would suggest building from scratch and making sure that you are linking to the CoinUtils library that is freshly built. The only thing I can think of is that you are linking to an older version of the CoinUtils library that you already have on your system.

comment:4 Changed 4 years ago by ycollet

You're right, when compiled from scratch, everything went fine. Sorry for the noise.

Best regards,

YC

comment:5 Changed 4 years ago by tkr

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.