(Continuing with an old thread because of context)

Hi,

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 {
    public:
    int pm() { return 10; }
    virtual int vm();
};

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

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

    TVA a1;
    int rv = a1.pm();
    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?

Thanks,
Avtar



  *[Cegcc-devel] cegcc/mingw32ce with gcc
4.6.3<http://sourceforge.net/mailarchive/message.php?msg_id=28977117>
*
From: Max Kellermann <max@du...> - 2012-03-13 22:13

Hi,

I have updated my cegcc fork to gcc 4.6.3, here's my release
2012-03-13:

 http://max.kellermann.name/projects/cegcc/
 http://max.kellermann.name/download/xcsoar/devel/cegcc/

Max
------------------------------------------------------------------------------
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 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to