[Scilab-Dev] How to used Input/Output functions in new module (external module)

Allan CORNET allan.cornet at scilab.org
Fri Jun 8 13:58:01 CEST 2012


Hi,

It seems that you mix C code and Scilab script code in your example.
In an C block, you can NOT put Scilab script. You must use a C block or/and
a Scilab block.

Allan

-----Message d'origine-----
De : hehiha [mailto:dungnguyenbk at gmail.com] 
Envoyé : vendredi 8 juin 2012 13:36
À : dev at lists.scilab.org
Objet : [Scilab-Dev] How to used Input/Output functions in new module
(external module)

Dear all!
I try to development new block for my module.
My module use files and input/output functions.
in my Computational function file(write by c language).
I have code below

char* filen = "test.bin";
mopen(filen,'wb');
mput(1996,'l');
mclose();
mopen(filen,'rb');
mclose();

But have error when linking.

TOTAL.obj : error LNK2019: unresolved external symbol _mclose referenced in
function _TOTAL                        !
!

!
!TOTAL.obj : error LNK2019: unresolved external symbol _mput referenced in
function _TOTAL                          !
!

!
!TOTAL.obj : error LNK2019: unresolved external symbol _mopen referenced in
function _TOTAL                         !
!

!
!libXCPL_tbx.dll : fatal error LNK1120: 3 unresolved externals

!

Do you have solution for this. Could you help me ?
Thank you!


--
View this message in context:
http://mailinglists.scilab.org/How-to-used-Input-Output-functions-in-new-mod
ule-external-module-tp4024319.html
Sent from the Scilab developers - Mailing Lists Archives mailing list
archive at Nabble.com.

--
To unsubscribe from this mailing-list, please send an empty mail to
dev-unsubscribe at lists.scilab.org To check the archives of this mailing list,
see http://mailinglists.scilab.org/





More information about the dev mailing list