Re: cegcc/mingw32ce with gcc 4.6.3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: cegcc/mingw32ce with gcc 4.6.3

Avtar Singh
(Continuing with an old thread because of context)


I have downloaded Max's cegcc fork (mail below), and built the mingw32ce toolchain. Build has been successful on 32-bit Ubuntu 12.04 LTS. Simple programs work fine. However, if I have a simple program with a "virtual" function, it throws a Data Abort. The program that I am trying to run is reproduced below:

/* tv1.cpp */
#include <iostream>

using namespace std;

class TVA {
    int pm() { return 10; }
    virtual int vm();

int TVA::vm() { return 20; }

int main() {
    cout << "tv1-begin";

    TVA a1;
    int rv =;
    cout << rv;

    cout << "tv1-end";
    return 0;

Command line: arm-mingw32ce-g++ tv1.cpp -o tv1.exe
Note: Result is same whether enable-auto-import is used or not used

Is the support for "virtual" broken in this toolchain too?


From: Max Kellermann <max@du...> - 2012-03-13 22:13

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
Cegcc-devel mailing list
[hidden email]