I am trying to compile a library that is used to interact with custom hardware and its drivers.
When i compile the objects for the library i get the following errors.
"Exception.cpp", line 11: Error: The name ostream is ambiguous, ostream and std::ostream.
"Exception.cpp", line 13: Error: The type "ostream" is incomplete.
"av_tds.cpp", line 39: Error: The operation "std::ostream<<tds_Exception" is illegal.
These errors are repeated through the output.
I did try to use the flag -library=iostream which removes the above errors.
However when i run a program that links and uses functions from my library the program it crashes on iostream_init.
current thread: t@1
=> Iostream_init::Iostream_init(0xdfa8e73c), at 0xdfa5302a
 __SLIP.INIT_A(), at 0xdfa525ec
 __STATIC_CONSTRUCTOR(), at 0xdfa532a8
 __cplus_fini_at_exit(0xdfb4a154, 0x1), at 0xdfa74d28
 setup(0x8047bfc, 0x8047c6c, 0x0, 0x8047fd0, 0x1000, 0xdfbce7af, 0xdfbfdf60, 0xdfbcd000, 0xdfbcd000, 0xffffffff, 0x8048034, 0x8047fd6, 0x8047bf4, 0xffffffff, 0x64, 0x64, 0xfa, 0xfa, 0x0), at 0xdfbd77a4
 _setup(), at 0xdfbe10ba
 _rt_boot(), at 0xdfbd019a
any help with this error wil be great!
Thanks in advance,