AnsweredAssumed Answered

Interesting catch 22 on CCES linker error

Question asked by MikeSmithCanada on Jul 23, 2014
Latest reply on Jul 31, 2014 by CraigG

Q1 -- With this new website -- I don't seem to get any emails when people respond to my posts

Have I missed "ticking" some box when posting -- Thanks

 

Q2 - Related to Re: Valid VDSP link, invalid CCES linkage on Blackfin BF533 and SHARC 21469

 

In above reference -- the error message at "link" time

Typeinfo for std::ios_base [__ZTISt8ios_base]' referenced from XXXXX was resolved by adjustin whether C++ exceptions and rtti are activated during build.

 

I have a project with main.cpp and a.cpp

Calling a library X.dlb with files b.cpp, d.cpp e.cpp

 

If I turn on "exceptions" with a.cpp --  It complains Typeinfo for std::ios_base at link time -- so I turn it off

In the library

e.cpp -- does not care if exceptions turned on or off

d.cpp -- is like a.cpp -- turn on "exceptions"-  It complains Typeinfo for std::ios_base -- so I turn it off

b.cpp is the CATCH22

     If I turn on exceptions -- It complains Typeinfo for std::ios_base -- so I turn it off

     If I turn off exceptions -- compiler complains -- can't handle try-catch

     If I turn off exceptions -- comment out all try catch related statements -- everything compiles and links perfectly -- catch22

          -- so I turn on exception -- uncomment try / catch -- rebuild library

 

I have a major test for the library -- v. large compared to a.cpp -- and includes a.cpp  That links

THis suggests I have missed a I/O setting on the project using the library

 

Any ideas what that might be

Thanks

Outcomes