Eclipse errors seen in Ubuntu but not in MAC [message #1136857] |
Mon, 14 October 2013 01:34  |
Eclipse User |
|
|
|
Hi,
I ran my C project in my eclipse in Ubuntu. I faced no compilation errors, but I am not receiving the intended result. The weird part is, the program stops in the middle of the printf statement. I suspected a seg fault in some earlier part of the program.
However when I ran the same C project in eclipse in my team mate's Laptop(MAC), it works fine with the exact intended result.
The code worked fine in both our laptops till about 2 days back and I dint freshly install anything in my laptop or changed any of the properties in my eclipse. To check this, I ran the same project in my friend's laptop(Ubuntu), and it dint run in that either.
My question here is,
Is this due to some seg fault occurring in my project. If that is the case, how is it working in eclipse in MAC ?
Is there any solution I can follow to set it right in Ubuntu ? maybe like installing some plugin specific to MAC OS's eclipse so that I can use that in my eclipse(in Ubuntu). Will that solve the purpose ?
Thanks in advance.
Regards,
Mani
|
|
|
|
Re: Eclipse errors seen in Ubuntu but not in MAC [message #1138196 is a reply to message #1137428] |
Mon, 14 October 2013 21:23  |
Eclipse User |
|
|
|
Thanks for the response..
I checked my code based on your feedback. I use character buffer(with pointers) for all my strings.. and I am trying to print with the character buffer. I use strncpy and memcpy to all my strings/character pointers and I am still getting the same error..
Other weird part I observed now is I am getting errors in a normal printf statements with only one argument as in I just put it as printf("This is a abc function"); , I am receiving error in the middle of such statements.
Thanks in advance.
Regards,
Mani
|
|
|
Powered by
FUDForum. Page generated in 0.05138 seconds