#1 Failure to compile atomic integer handling on Ubuntu 64

1.8
closed-out-of-date
Matt Wilson
None
5
2010-04-28
2008-06-08
mis232
No

g++ -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror -D_DEBUG -UNDEBUG -Dunix -DRECLS_NO_IMPLICIT_LINK -I../../include -I~/3pty/stlsoft-1.9.45/include -o recls.api.debug.o ../../src/recls_api.cpp
~/3pty/stlsoft-1.9.45/include/platformstl/synch/atomic_functions.h:274: error: ‘stlsoft::platformstl_project::implementation::platform_stl_::atomic_int_t’ has not been declared
../../src/recls_atomic.h:65: error: ‘atomic_int_t’ in namespace ‘platformstl’ does not name a type
cc1plus: warnings being treated as errors
../../src/recls_atomic.h:73: warning: ‘RC_Increment’ initialised and declared ‘extern’
../../src/recls_atomic.h:73: error: variable or field ‘RC_Increment’ declared void
../../src/recls_atomic.h:73: error: ‘rc_atomic_t’ was not declared in this scope
../../src/recls_atomic.h:74: error: ‘rc_atomic_t’ does not name a type
../../src/recls_atomic.h:75: error: ‘rc_atomic_t’ does not name a type
../../src/EntryFunctions.h:79: warning: ‘Entry_BlockCount’ initialised and declared ‘extern’
../../src/EntryFunctions.h:79: error: variable or field ‘Entry_BlockCount’ declared void
../../src/EntryFunctions.h:79: error: ‘rc_atomic_t’ was not declared in this scope
../../src/EntryFunctions.h:79: error: ‘pcCreated’ was not declared in this scope
../../src/EntryFunctions.h:79: error: ‘rc_atomic_t’ was not declared in this scope
../../src/EntryFunctions.h:79: error: ‘pcShared’ was not declared in this scope
../../src/EntryFunctions.h:79: error: initializer expression list treated as compound expression
../../src/recls_api.cpp: In function ‘recls::recls_rc_t recls::Recls_OutstandingDetails(const recls::hrecls_t_*, recls::recls_uint32_t*)’:
../../src/recls_api.cpp:741: error: ‘rc_atomic_t’ was not declared in this scope
../../src/recls_api.cpp:741: error: expected `;' before ‘cCreated’
../../src/recls_api.cpp:742: error: expected `;' before ‘cShared’
../../src/recls_api.cpp:744: error: ‘cCreated’ was not declared in this scope
../../src/recls_api.cpp:744: error: ‘cShared’ was not declared in this scope
../../src/recls_api.cpp:744: error: ‘recls::Entry_BlockCount’ cannot be used as a function
make: *** [recls.api.debug.o] Error 1

Discussion

  • mis232
    mis232
    2008-06-08

    Logged In: YES
    user_id=1681126
    Originator: YES

    The attached rewritten recls_atomic.h enables compilation to proceed to build the core library and the example programs

     
  • mis232
    mis232
    2008-06-08

     
    Attachments
  • mis232
    mis232
    2008-06-08

    Logged In: YES
    user_id=1681126
    Originator: YES

    File Added: recls_atomic.h

     
  • Matt Wilson
    Matt Wilson
    2010-04-28

    • milestone: --> 1.8
    • assigned_to: nobody --> matsys
    • status: open --> closed-out-of-date