Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!o13g2000vbl.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mex compiling error
Date: Wed, 23 Sep 2009 06:38:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 61
Message-ID: <f09dd58b-0fa9-43d5-a59f-a6b0f8bcfbde@o13g2000vbl.googlegroups.com>
References: <h97rq1$3nc$1@fred.mathworks.com> <d102bc34-8206-4f28-b692-281de004e561@f33g2000vbm.googlegroups.com> 
	<bb8c0f11-0b2c-4316-ad05-f7a3bfa809a8@r36g2000vbn.googlegroups.com> 
	<h98reg$lf$1@fred.mathworks.com>
NNTP-Posting-Host: 77.16.176.110
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253713128 29915 127.0.0.1 (23 Sep 2009 13:38:48 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 23 Sep 2009 13:38:48 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000vbl.googlegroups.com; posting-host=77.16.176.110; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; 
	.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:572327


On 21 Sep, 23:33, "Jan Simon" <matlab.THIS_Y...@nMINUSsimon.de> wrote:
> Dear Stephan, dear Rune!
>
> > >  I did C-Courses during my education, but it's been a while.
> > If you ever had a C course, you would know about memory allocation.
> > > If you are a C-pro and my posts are annoying to you, just ignore them! You really don't have to answer them, but I think those user-communities are exactly to ask questions like that. So if any polite people want to answer my questions, feel free...
>
> > If you don't have the time to look up your own old class notes,
> > pain and misery will follow. This is not the place to get free
> > C education or to have C programs debugged.
>
> > If you are in such a hurry to get a result, code matlab.
>
> If Stephan states, that he did his C-courses, then he did his C-courses.
> Here is not the place for inpolite allegations, Rune.

If somebody claims they took a class on the C programming
language and still make the kinds of errors as the OP here,
which happens to be at the core of the C programming technique,
there are only a limited number of options:

1) The claim is false - no course was ever taken.

> This is a forum for Matlab related problems. Stephan's problem appears at compiling a MEX source,

The problem stems from a total lack of understanding of the
C programming language.

> therefore he is absolutely welcome to ask and he has no reason to legitimate, why he dared to make a mistake with the fiddly C-memory-handling.
>
> Rune: Three days ago you told us, that we should use C++ to get the results fast and peoples are working to death caused by Matlab (http://www.mathworks.com/matlabcentral/newsreader/view_thread/261124). Now you recommend using Matlab, if we are in a hurry. What's up?

Interestingly, you wrote in the same thread

"Program time = programing time + debug time + run time."

But since you asked, I will give spoon-feed an answer:
There is a difference between

1) The time spent on producing working code
2) The time spent waiting for working code to execute.

The OP claims he is in too much of a hurry to learn hor to
use the C programming language. He is trying to produce a
program. The case I was talking about related to people
using programs that took far too long to execute.

Just out of curiosity, what inferences should I make about
your intellectual abilities that you seem unable to project
the same argument you yourself presented in some other
context, to the present case?

Rune