Pope Stewart
04-17-2005, 11:13 PM
While making a C program, I ran into some problems. I used the MallocDebug tool to help see if I did memory stuff correctly. I was running into some errors that was driving me crazy.
I brought the program over to linux gcc version 2.96. When trying to compile with that, it noticed that I made a stupid mistake where I started doing some code before declaring all my variables. Once I fixed that, I didn't get an MallocDebug problems.
My question is how can I make apple's gcc behave more strictly so that stuff like that doesn't happen because I get more warnings and errors. I tried using -ansi and all of my // codes got in the way while that didn't happen on the linux gcc 2.96
I brought the program over to linux gcc version 2.96. When trying to compile with that, it noticed that I made a stupid mistake where I started doing some code before declaring all my variables. Once I fixed that, I didn't get an MallocDebug problems.
My question is how can I make apple's gcc behave more strictly so that stuff like that doesn't happen because I get more warnings and errors. I tried using -ansi and all of my // codes got in the way while that didn't happen on the linux gcc 2.96