Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: [BC++ CMEX???] Please help,I'm tired.
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Chen YangQuan

Posts: 9
Registered: 12/7/04
[BC++ CMEX???] Please help,I'm tired.
Posted: Jan 15, 1997 7:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Re-posting... Sorry.

Hi-...,

Any expert there? Please share me some of your experience in making
the CMEX in PC/Win31/BC++3.1/MATLAB4.2,2a,2b (I know 2c cannot use BC++3.1).

The problem is:

I must use multiple files, which means, I have to do

cmex file1.c file2.c file3.obj file4.obj ...

and BC++3.1's TLINK ==ALWAYS== tells me the following

Turbo Link Version 5.1 Copyright (c) 1992 Borland International
Warning: Attempt to export non-public symbol MEXFUNCTION

Then, the final '.DLL' cannot be used. It will ALWAYS cause a 'general
protection error'.

I tried demo 'yprime.c', by using

cmex yrpime.c

it's okay. HOWEVER, if I use the BC++3.1's IDE to compile it first in obj,
use the same required options (as CMEX command-line!!), then

cmex yprime.obj

a '.DLL' file is generated but with a TLINK warning :

Warning: Attempt to export non-public symbol MEXFUNCTION

Then, in MATLAB, this DLL can not be used. It causes the 'general
protection error' as described above.

So, after nearly a week trial, I have to say, please help. HELP PLEASE.
I'm tired.

By the way, I tried BC++4.0.2, the same situation.

Best regards,

Chen Yangquan
Learning Iterative Learning Control Iteratively :)
http://www.ee.nus.sg/~yangquan/project.html






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.