in reply to illegal instruction(core dump)

How about you post some code and copy/paste the exact error message you get? It's kinda difficult to figure out what is the problem based on the information you supplied.