[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41720] very first compilation of a c-file wit
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #41720] very first compilation of a c-file with mex - successfull, after using the build function the c-file cannot be recompile |
Date: |
Thu, 27 Feb 2014 13:09:38 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?41720>
Summary: very first compilation of a c-file with mex -
successfull, after using the build function the c-file cannot be recompile
Project: GNU Octave
Submitted by: None
Submitted on: Do 27 Feb 2014 13:09:36 UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: Grigorij
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
example of a c-file:
#include "mex.h"
void
mexFunction (int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
mexPrintf ("Hello, World!\n");
mexPrintf ("I have %d inputs and %d outputs\n", nrhs, nlhs);
}
commands in octave:
>> mex hello.c %Compilation is successful
>> hello(1,2) %Out is right
Then, in the c-file, a minor change is performed.
command in octave:
>> mex hello.c
The output is as follows:
C:\Program Files (x86)\octave-3.8.0-5-portable\octave-3.8.0\bin/ld.exe: cannot
open output file hello.mex: Permission denied
collect2.exe: error: ld returned 1 exit status
warning: mkoctfile exited with failure status
Indeed, the hello.mex cannot be deleted, neither from explorer nor from octave
command prompt ("delete hello.mex" ends up in "warning: delete: hello.mex:
Permission denied").
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41720>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41720] very first compilation of a c-file with mex - successfull, after using the build function the c-file cannot be recompile,
anonymous <=