This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi folks, in our actual work we have to link some librarys which were compiled with the native sun forte compiler and librarys have were build with the gcc. The problem of calling methods of Objects which have compiled with the other compiler we solved with the help of c-interface wich is automaticly generated witch an extention of swig. The real problem during this task was that there are 4 objects defined in the forte librarys and the gnu stdlibio.a. What I did was renaming (see diff file) the defines cout, cerr, cin and clog to gcout, gcerr, gcin and gclog. In the c++-application nothing have to be changed! Now it is possible to use shared librarys wich were compiled and linked with the gcc and librarys and main programs build with the native compiler. It is important that the gcc librarys were shared librarys, caused by the static objects, which have to be initialized! So is it possible to rename those symbols in future releases of the libio! Regards Stefan Vogel Lead Developer Clarity AG Niederlassung Frankfurt Daimlerstr. 32 D-60314 Frankfurt Tel.: +49 69 / 41 67 4580 Fax: +49 69 / 41 67 4582 Mobil: +49 172 / 21 69 531
Attachment:
gcc_diffs
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |