Thread Subject: Compiling a Mex file the /fp:fast option in visual studio

Subject: Compiling a Mex file the /fp:fast option in visual studio

From: Luigi Giaccari

Date: 31 Mar, 2010 15:29:04

Message: 1 of 3

I have been googling for hours but no success. What I need should be very simple for a programmer:
I just need an option file for the mex compiler with the option: /fp:fast

I never used an option file with the mex command so I got pretty confused, which format?, how to call form the command line with mex command? is there a standard to respect?

After hours of random trials now the mex -setup command can not locate visual C++.
That was the time I thought maybe some help was needed.... :-(

Everything that can help compiling with that option is greatly appriecieted.

Thanks in advance

Luigi

Subject: Compiling a Mex file the /fp:fast option in visual studio

From: James Tursa

Date: 31 Mar, 2010 15:50:22

Message: 2 of 3

"Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <hovpo0$csi$1@fred.mathworks.com>...
> I have been googling for hours but no success. What I need should be very simple for a programmer:
> I just need an option file for the mex compiler with the option: /fp:fast
>
> I never used an option file with the mex command so I got pretty confused, which format?, how to call form the command line with mex command? is there a standard to respect?
>
> After hours of random trials now the mex -setup command can not locate visual C++.
> That was the time I thought maybe some help was needed.... :-(
>
> Everything that can help compiling with that option is greatly appriecieted.
>
> Thanks in advance
>
> Luigi

The options files are in the appropriate mexopts directory. e.g.,

[matlabroot '\bin\win32\mexopts']

The filename for MSVC will depend on the version, but an example is:

msvc80opts.bat

Add your /fp:fast option to the COMPFLAGS line.

Did mex -setup used to be able to see your compiler, but after some changes you made now it doesn't?

James Tursa

Subject: Compiling a Mex file the /fp:fast option in visual studio

From: Luigi Giaccari

Date: 31 Mar, 2010 17:33:20

Message: 3 of 3

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hovqvu$4gk$1@fred.mathworks.com>...
> "Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <hovpo0$csi$1@fred.mathworks.com>...
> > I have been googling for hours but no success. What I need should be very simple for a programmer:
> > I just need an option file for the mex compiler with the option: /fp:fast
> >
> > I never used an option file with the mex command so I got pretty confused, which format?, how to call form the command line with mex command? is there a standard to respect?
> >
> > After hours of random trials now the mex -setup command can not locate visual C++.
> > That was the time I thought maybe some help was needed.... :-(
> >
> > Everything that can help compiling with that option is greatly appriecieted.
> >
> > Thanks in advance
> >
> > Luigi



>
> The options files are in the appropriate mexopts directory. e.g.,
>
> [matlabroot '\bin\win32\mexopts']
>
> The filename for MSVC will depend on the version, but an example is:
>
> msvc80opts.bat
>
> Add your /fp:fast option to the COMPFLAGS line.
>
> Did mex -setup used to be able to see your compiler, but after some changes you made now it doesn't?
>
> James Tursa


Thanks for the tip. It is true: mex -setup used to be able to see my compiler, but after some changes I made (have non idea) now it doesn't?

Do you know something about the disappear?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mex Luigi Giaccari 31 Mar, 2010 11:34:05
compiler Luigi Giaccari 31 Mar, 2010 11:34:05
c Luigi Giaccari 31 Mar, 2010 11:34:05
compiler option Luigi Giaccari 31 Mar, 2010 11:34:05
rssFeed for this Thread

Contact us at files@mathworks.com