LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   strcat() error with gcc (https://www.linuxquestions.org/questions/programming-9/strcat-error-with-gcc-291787/)

sureshkellemane 02-18-2005 11:53 PM

yes..

thanks a lot..i understood the problem..

but let me clarify one thing ... why Borland or tourbo compilers are not giving error .... only in gcc i find the problem.

exvor 02-19-2005 08:57 AM

I got a simplier way for you to understand

Borland = Dos or windows <-- Dos uses very bad memory or at least a simpler memory management

gcc = linux / unix <-- More structured way of memory management


Your not having a code issue but more of a memory management issue.

This information is based directly on the other posts here and not my personal knowlege they are just trying to show you where the error is.


Your trying to make the compiler worry about memory management instead of directly dealing with it in effect each compiler is doing it the way IT WANTS TO

so in effect seg fault one place and not in another.

sureshkellemane 02-21-2005 12:42 AM

Hey friends..

Thanks everybody for participating with this discussion ....

yes...i agree ...it is with memory mngmt issues .. it depends on how compiler is designed..

any more..pls revert back


All times are GMT -5. The time now is 04:56 PM.