[Continued] MATLAB 32-bit 64-bit

Source: Internet
Author: User

Http://www.ilovematlab.cn/thread-23500-1-1.html

Objective: To use MATLAB to read data from the database and draw an image. Compile the M file into a DLL for other software.

Platform: Windows Server 2003 64-bit + Oracle10g Database
Try 1. Maid (64bit) + vs2005
You can access the database and draw images normally. But it cannot be compiled into a DLL. The problem is that the vs2005 compiler cannot be found in MATLAB.
Try 2. Use the following command: Maid (32bit) + vs6.0,
You can compile m Files and generate DLL files normally, but M files cannot be executed. The problem is that 32-bit MATLAB cannot access the database on 64-bit machines,
Neither JDBC nor ODBC is successful. The specified data source and driver cannot be found. At the same time, the data link of VB6.0 cannot find the ODBC data source.
It seems that the 64-bit database cannot be accessed by MATLAB in question 32.
Try 3. perform the following operations on the machine: Maid (64bit) + vs2005 + vs2008 + vs6.0
The result is the same as 2.
Attempt 4. Install the configuration in Attempt 2 on another 32bit computer and connect to the Oracle database above through ODBC. Everything works normally. The M file can be executed, and the DLL compilation is also
Can be called normally.

However, I need to implement this function in the 64-bit computer and ask you how to solve it. Why can't MATLAB find the compiler? Is it an operating system problem? Solution:
Try 1: solution vs2005 live 2008 requires the 64-bit compiler to be installed. This plug-in is not installed by default and needs to be installed manually
Try 2: for 32-bit MATLAB database tool, you can only access the system DNS in ODBC, and the user DNS cannot be seen. In addition, using ole db for Oracle does not solve this problem. 1: win 7 (64 bit) + MATLAB 2011a (64 bit) + vs 2010 can be associated with MATLAB and VS can be generated using Mex. the mexw64 file can only be run in the MATLAB 64bitfile, but cannot generate the. mexw32 file. The file can be generated using mcc.exe (only run in the win 64bit Environment); can be generated using MCC. DLL file, which may be the cause of my configuration failure to run successfully in vs 2010. Practice 2: Win 7 (32 bit) + MATLAB 2011a (32 bit) + VC 6.0mex failed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.