unresolved-external

template class + operators + friends = unresolved externals

I have a class called fraction, and I'm declaring some operators as friends. I declared the friend operators beforehand, as http://www.parashift.com/c++-faq-lite/templates.html#faq-35.16 told me to do, but it only fixed +, -, *, and /. << and >> still don't work. template <class T> class Fraction; template <class T> Fraction<T> operator...

fatal error LNK1127: library is corrupt --> after adding extern "C" to function prototype

Hi all, I have an external library made using C code. I wish to call a function from the library in my c++ project. The original format of the function prototype was. extern void butterThreeBp(real_T eml_dt, real_T eml_fl, real_T eml_fu, real_T eml_b3[7], real_T eml_a3[7]); And this caused the following linker error in MSVC2008 error...

I have lots of questions about c++ that are really confusing me

I started learning c++ about 3 weeks ago after 2 years of java. It seems so different but im getting there. my lecturer is a lovely guy but any time i ask a question as to why something is that way or this way. he just responds "because it is". Theres lots of comments in the code below with a few random questions, but the main problem ...

AIX5.2, xlC: Getting unresolved symbols when linking a shared library which depends on static library which depends on another static library

This is for AIX5.2, xlC compiler. Lets imagine we have two static libraries: A.a (contains funcA() function definition) B.a (contains funcB() and funcC() functions) Major thing is that funcB() in its body calls funcA() from A.a. But funcC() has independent code from A.a. Needs to create a shared library, libX.so, which calls funcC() fro...