Monday, May 24, 2010

Hi,this is about segmentation fault.I have a cpp program that works really well in windows but ,fails in unix?

i have a perfectly working program..but it works only in windows(done with visual studio 6,c++).when i put it in unix platform and run i get segmentation fault.this prog. is to convert regular expressions to nfa.it has a stack.the segmentation fault occurs only when i have pushed '*'.And about the unix platform...we have a seperate unix server residing at our college computer centre..everyone has been given an account to access it (must have fixed memory allocation for each person).it is in this server i tried to run my program.check this out........

Hi,this is about segmentation fault.I have a cpp program that works really well in windows but ,fails in unix?
We don't see the code so we can't help at this point; but seg fault usually is memory leak in more specific name; but anyway, UNIX systems have more strict checks, so development in Windows usually won't give you bugs until codes actually hit a UNIX system.





Usually you should code all the way on a UNIX, not done half way in Windows and move to UNIX, because bugs are harder to track from square one.
Reply:no one can see your code. please put it on the internet.


No comments:

Post a Comment