[En-Nut-Discussion] C++ compiling problem with virtual methods (aligment of 'x' is greater than maximum object file aligment)

Matthias Wilde ethernut at stockelache.de
Thu Feb 22 21:10:27 CET 2007


Hi Gervasio,

welcome to the club of C++ programmers on Ethernut.
Since I do not have v1 Charon board I can not say what is going wrong.
However regarding Ethernut 3 (arm) I did some adaptation and so far as I
know PURE virtual functions are not supported in current version. However
I remember I had some problems also with virtual functions, but when I
remember right that was during linking.
I guess with some modifications in the makefiles (compiler / linker flags)
it should be possible.

OK - not at all very helpful my words - just a comment.


Best regards


Matthias



> Hello,
>
> I'm evaluating the option of using C++ in a program for an Ethernut v1
> (Charon 2) and I having problems with the definition of virtual methods.
> When I compile any class that has a virtual method, I get a warning of the
> type "aligment of 'x' is greater than maximum object file aligment"
>
> What is this?
>
> The problem is that this warning stops the compilation process and I can't
> get an hex file (I'm interested in known the size of the final
> executable).
>
> Some ideas?
>
> Thanks in advance.
>
> PDT: Sorry for my english.
>
> --
> ###################################
> #    Gervasio Varela                               #
> #    gervarela at picandocodigo.com         #
> #    http://www.picandocodigo.com          #
> ###################################
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>


-- 




More information about the En-Nut-Discussion mailing list