C++ templates

Frank Mehnert fm3 at os.inf.tu-dresden.de
Tue Mar 15 14:02:30 CET 2005


On Tuesday 15 March 2005 13:34, Tiago Jorge wrote:
> I already compile with those flags. My problem is the following:

Are you _sure_ that your _whole_ C++ code is compiled with -fno-exceptions?

> because i'm using the dielibc i can't use STL, because it launches
> exceptions. So, i've made my own templates of vector and map without
> exceptions and i'm trying to use them. the error is the following:
>
> FailureDetector.o(.eh_frame+0x11): In function `map<int,
> heartbeat>::del(int)':
> /home/tiago/l4/pkg/failuredetector/server/src/WOO_map.h: undefined
> reference to `__gxx_personality_v0'
> main.o(.eh_frame+0x11): In function `main':
> /home/tiago/l4/pkg/failuredetector/server/src/WOO_vector.h:20: undefined
> reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status

This function is called when unwinding the stack due to an exception.

> by the way, line 20 is the constructor and it doesn't throws exceptions.
> So here i am stuck at this point :(

We are using templates in the Fiasco microkernel -- without any problems
(and without exceptions).

Frank
-- 
## Dept. of Computer Science, Dresden University of Technology, Germany ##
## http://os.inf.tu-dresden.de/~fm3                                     ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20050315/f17c0a56/attachment.sig>


More information about the l4-hackers mailing list