C++ prelinker error
<p>Could you please tell me what to do with the following 2 errors I see during linkage ? </p>

<p>Thanx in advance.</p>

<pre><code>C++ prelinker: error: std::basic_ostream&lt;T1, T2&gt; &amp;std::basic_ostream&lt;T1, T2&gt;::flush() [with T1=char, T2=std::char_traits&lt;char&gt;] assigned to work\KernelAppComponent_kernel.o and work\KernelAppComponent_kernel.o

C++ prelinker: error: bad instantiation request file -- instantiation assigned to more than one file

ccintppc: Error: C++ prelink operation failed.
Error: build failed
</code></pre>

<p>The compiler is GreenHills' Multi Compiler for PowerPC architecture and Integrity OS.</p>

<p>Well, after cleaning and rebuilding components within the project, those prelinker errors are somehow removed ( really dont know what happens ) but the following unresolved symbol errors are introduced.  It is just a hello world program. Somebody can tell me what is wrong ? </p>

<pre><code>Cleaning KernelAppComponent.mod
Building KernelAppComponent.mod
Compiling MainKernelAppComponent.cpp because MainKernelAppComponent.o does not exist
Compiling KernelApp.cpp because KernelApp.o does not exist
Linking KernelAppComponent because it does not exist
Compiling KernelAppComponent_kernel.cc because KernelAppComponent_kernel.o does not exist
Compiling global_table.c because global_table.o does not exist
Linking KernelAppComponent_kernel because it does not exist
C++ prelinker: std::basic_ostream&lt;T1, T2&gt; &amp;std::basic_ostream&lt;T1, T2&gt;::put(T1) [with T1=char, T2=std::char_traits&lt;char&gt;] assigned to file work\KernelAppComponent_kernel.o
C++ prelinker: std::basic_ostream&lt;T1, T2&gt; &amp;std::basic_ostream&lt;T1, T2&gt;::flush() [with T1=char, T2=std::char_traits&lt;char&gt;] assigned to file work\KernelAppComponent_kernel.o
Compiling KernelAppComponent_kernel.cc because reg.h has changed
Compiling global_table.c because reg.h has changed
Linking KernelAppComponent_kernel because KernelAppComponent_kernel.o has changed

[elxr] (error) unresolved symbols: 20
 _main         from KernelAppComponent_kernel.o
 clear__Q2_3std8ios_baseFQ3_3std14_Iosb__tm__2_i8_Iostateb         from KernelAppComponent_kernel.o
 __ghsLockCpp         from KernelAppComponent_kernel.o
 _Id_cnt__Q3_3std6locale2id         from KernelAppComponent_kernel.o
 __ghsUnlockCpp         from KernelAppComponent_kernel.o
 __vtbl__Q2_3std9type_info         from KernelAppComponent_kernel.o
 _Getctyptab         from KernelAppComponent_kernel.o
 _Psave__Q2_3std41_Facetptr__tm__24_Q2_3std14ctype__tm__2_c         from KernelAppComponent_kernel.o
 id__Q2_3std17ctype__tm__2_c__S         from KernelAppComponent_kernel.o
 _Getfacet__Q2_3std6localeCFUi         from KernelAppComponent_kernel.o
 __nw__FUi         from KernelAppComponent_kernel.o
 __ct__Q2_3std8_LocinfoFPCc         from KernelAppComponent_kernel.o
 __dt__Q2_3std8_LocinfoFv         from KernelAppComponent_kernel.o
 _Register__Q3_3std6locale5facetFv         from KernelAppComponent_kernel.o
 cout__3std         from KernelAppComponent_kernel.o
 __dl__FPv         from KernelAppComponent_kernel.o
 __dla__FPv         from KernelAppComponent_kernel.o
 __ct__Q3_3std8ios_base4InitFv         from KernelAppComponent_kernel.o
 __record_needed_destruction         from KernelAppComponent_kernel.o
 __dt__Q3_3std8ios_base4InitFv         from KernelAppComponent_kernel.o

[elxr] (error) errors during processing
Error: build failed
Build failed (Tue Jul 01 10:48:23 2008)
</code></pre>
