Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - mudflap and C++: Page 1 of 4 (4 Items)
   
mudflap and C++  
Using 6.4.1 I started playing around with mudflap.

The following C program:

#include <stdio.h>


int main(void)
{
	int a[10];
	
	a[11] = 64;
	printf("this is a atest %d\n", a[11]);
	return 1;
	
}

Does what I expect it to and mudflap report an error.

I compile this in C++, the program will do an Abort !!!  I chase it down to a exception being throw in a new() executed 
before main(), from ios_base::_Init().

Build with qcc -fmudflap -lmudflap -g2 -osize -fexceptions inthemud.cpp.

Suggestions?