LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2005, 11:53 PM   #16
sureshkellemane
Member
 
Registered: Jan 2005
Posts: 53

Original Poster
Rep: Reputation: 15

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.
 
Old 02-19-2005, 08:57 AM   #17
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 02-21-2005, 12:42 AM   #18
sureshkellemane
Member
 
Registered: Jan 2005
Posts: 53

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strcat Core Dump monil Programming 4 03-08-2005 11:20 AM
Why are some elements missing after using strcat() monil Programming 4 03-08-2005 07:40 AM
best way to avoid buffer overflow... with strcpy and strcat os2 Programming 4 03-02-2005 02:24 PM
Segmentation fault on strcat() Ephracis Programming 8 12-17-2004 01:28 AM
RH 8.0 strcat problem shibdas Programming 1 07-02-2003 01:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration