Re: R2008a x64 use mcc to complier the exe file, but error occurs



On Sun, 15 Mar 2009 03:50:02 -0400, Ken Lin <zhihai_lin1982@xxxxxxx> wrote:

"Bruno Luong" <b.luong@xxxxxxxxxxxxxxxxxxxx> wrote in message <gpiagf$qc3$1@xxxxxxxxxxxxxxxxxx>...
"Ken Lin" <zhihai_lin1982@xxxxxxx> wrote in message <gpi9o2$c1n$1@xxxxxxxxxxxxxxxxxx>...
> I setuped the R2008a x64 on x64 win OS, and I used "mcc" with visual c++ 2008 to build an *.exe, anything was fine except that an error came out when I double-click the exe file, windows showed up with words as ".....not a vaild win32 file". Anyone knows the solution plz helps me...

You have to compile using 64 bit compiler.

Not sure how you can still generate a win32 file. In the normal setup, it cannot happen. Was the win32 is something left off on your computer? You can no longer using it.

Bruno

Thanks for concerning. Here is the step I complier the exe:
1. setup visual c++2008 express edition
2. setup SDK v6.1 with x64 complier
3. setup Matlab r2008a x64
4. mbuild -setup
5.choose 1 for visual c++
6. mcc -m graph.m -o graph, and graph.exe produced successfully

where do probabily the error occur?? could you have any idea??


Ken,

Could you try compiling something simple for us?

Create hello.m which has just one line:

disp('hello')


Replace step 6 with mcc -m hello.m
Then, from within MATLAB, type !hello.exe.
Please tell us what you see.

.



Relevant Pages

  • Re: How to turn off compiler/linker timestamping?
    ... > You can see the time stamp by running dumpbin /all on the executable. ... > "Michael Schwab" wrote in message ... compile. ... >> embedded in the exe file itself. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: building exe from script
    ... from distutils.core import setup ... REM make sure that python is in your system path ... python setup.py py2exe ... Is there any solution for building exe file from python script ...
    (comp.lang.python)
  • Re: Gfortran on Windows (was Re: Fortran Newbie - Where to start?)
    ... After unpacking the .zip file and adding the paths to the root of the ... A minimal test setup to compile 'hello, ... (-s reduces the size of the .exe file, ...
    (comp.lang.fortran)
  • Re: trivial question about building exe
    ... references to external dlls. ... exe file, so that I can send it to another machine and it works. ... If I understand you correctly you want to compile all dlls to one file. ... This is not the way you should use dynamic libraries but if you are sure you know what you are doeing you can theoretically add all the libraries to the resources of your application and get them from the resources and save them to disc before your application will use them. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: linux certifications
    ... If the guy was anywhere near competent he would have the system setup ... All this talk about *having* to compile the kernel and programs and such ... or anything since I first started playing with Linux. ... about Linux make sure the try a distro that has come out since Mandrake ...
    (alt.os.linux)