Project

General

Profile

Bug #1135

Compilaton with --debug configuration option gives errors

Added by John Abbott over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tidying
Target version:
Start date:
05 Dec 2017
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Configuring CoCoALib with the option --debug produces errors when compiling the library, and then later when running the tests.

Rectify!

History

#1 Updated by John Abbott over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 80

In an earlier version of CoCoALib the preprocessor symbol CoCoA_DEBUG contained an integer value: 1 gave standard debugging, >1 produced a log message each time an exception was thrown by ThrowError (effectively, CoCoA_ERROR).

Now CoCoA_DEBUG is simply "undefined" or "defined"; it does not have a value (just empty string, I suppose).
I have updated the following files:
  • utils.H, OrdvArith.H and OrdvArith-OpenMP.H
  • error.C

I have also changed ThrowError so that it uses VerboseLog instead of printing directly to clog
(this was the cause of the problems I had with the tests complaining about wrong output on stderr)

All seems well now.

Should the target version be 0.99560 or 0.99570?

#2 Updated by Anna Maria Bigatti over 6 years ago

  • Assignee set to John Abbott
  • Target version changed from CoCoALib-0.99600 to CoCoALib-0.99560

Should the target version be 0.99560 or 0.99570?

if it's done, 60!

#3 Updated by John Abbott over 6 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 80 to 100

I have also improved the message placed in PREPROCESSOR_DEFNS.H near the definition/undefinition of CoCoA_DEBUG

Also available in: Atom PDF