Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: can't fopen????
Date: Wed, 23 Jul 2008 10:17:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 54
Message-ID: <g670et$6ki$1@fred.mathworks.com>
References: <g63ifm$rug$1@fred.mathworks.com> <g652no$elr$1@canopus.cc.umanitoba.ca>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216808221 6802 172.30.248.35 (23 Jul 2008 10:17:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Jul 2008 10:17:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1446367
Xref: news.mathworks.com comp.soft-sys.matlab:481186



roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in 
message <g652no$elr$1@canopus.cc.umanitoba.ca>...
> In article <g63ifm$rug$1@fred.mathworks.com>,
> liu I-YIN <iliu@atheros.com> wrote:
> 
> >   I used matlab 14.4 to transfer M-file to c code.
> 
> I'm not sure what you mean by that. Do you mean that you
> used the Matlab Compiler ? If so, then which release of 
the Matlab
> Compiler?
  I change it to matlab 2006b, glibc 2.3.3.
  but it still doesn't work.
  the way I transfre the M-file is like
  mcc -I /code
      -I /matlab/2006b/toolbox
      -I /matlab/2006b/extern/include
      -W lib:libmatlab -T link:lib /code/top.m
      -f my_mbuildopt.sh 
   

> >The original M-file is             
> >fid = fopen('tx_para.txt','r')  &#61671; It works 
> >   But after it transfer to c code, it shows error:
> >??? Undefined function or method 'deploywhich' for 
input 
> >argument of type 'char'.
> >Error in = = > fopen at 16
> >Error in = = > get_tdv_params at 230
> >Error in = = > tdv at 61
> >Error in = = > top at 12
> 
> Please use
> 
> which fopen
> 
> to be sure that you are getting the built-in fopen and 
not 
> a user-defined function that happens to be named fopen.
> fopen line 16 is normally a comment line, part of 
the 'help' description
> of fopen.

  chceked.
  
  the fopen is bulit-in function /__\

> 
> -- 
>   "I like to build things, I like to do things. I am 
having
>   a lot of fun."                              -- Walter 
Chrysler