473,287 Members | 2,682 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

MM intrinsics not supported in the pure mode!

Sorry, I have a question again:

I am trying to debug/ release a CLR application (that uses the
FrameWork). No when I try to compile it, it stops in this line in

-------mmintrin.h--------

#if defined(_M_CEE_PURE)
#error ERROR: MM intrinsics not supported in the pure mode!
#else

I found out that mmintrin.h comes from

c:\programs\Microsoft Visual Studio 9.0\VC\Include

So at first I wanted to find out if this include in really needed and
removed it from Options->VC++ Directories->Includes
But then a dozen of other errors where thrown, and I thought that these
includes are really needed.

Can somebody tell me what I should do or how to refine my question/
error report to be more concrete?
Thank you!

Anna
Oct 21 '08 #1
15 4594
I checked everything from the start again, and without changing
anything, I get the follow error first:

Error 1 fatal error C1189: #error : Building MFC application with
/MD[d] (CRT dll version) requires MFC shared dll version. Please #define
_AFXDLL or do not use /MD[d] C:\Programs\Microsoft Visual Studio
9.0\VC\atlmfc\include\afx.h 24 VideoASM
Oct 21 '08 #2
<<Please #define _AFXDLL or do not use /MD[d]

Where could I have set /MD[d]? I have looked around in my app like crazy
but couldn't find it...
Oct 21 '08 #3
I have typed

#define _AFXDLL

in stdafx.cpp, but still the same error message.
Oct 21 '08 #4
I have found out that I can go to "project"->"properties" and switch
from "Pure MSIL Common Language Runtime Support (/clr:pure) to "Common
Language Runtime Support (/clr)", but when I do, I get another compiler
error:

Error 10 error C2857: '#include' statement specified with the
/Ycstdafx.h command-line option was not found in the source file
C:\Programs\Microsoft Visual Studio 9.0\VC\include\xlocnum 135 VideoASM

Wow, that's is really nerve-wrecking. I will be happy if I have overcome
these problems.
Oct 21 '08 #5
"Anna Smidt" <a.*****@nospamgmail.comschrieb
<<Please #define _AFXDLL or do not use /MD[d]

Where could I have set /MD[d]? I have looked around in my app like crazy
but couldn't find it...
In the project's properties (C/C++ -code generation -run time library)
Armin

Oct 21 '08 #6
"Anna Smidt" <a.*****@nospamgmail.comschrieb
Sorry, I have a question again:

I am trying to debug/ release a CLR application (that uses the
FrameWork). No when I try to compile it, it stops in this line in

-------mmintrin.h--------

#if defined(_M_CEE_PURE)
#error ERROR: MM intrinsics not supported in the pure mode!
#else

I found out that mmintrin.h comes from

c:\programs\Microsoft Visual Studio 9.0\VC\Include

So at first I wanted to find out if this include in really needed
and removed it from Options->VC++ Directories->Includes
But then a dozen of other errors where thrown, and I thought that
these includes are really needed.

Can somebody tell me what I should do or how to refine my question/
error report to be more concrete?
Thank you!
Look for "_M_CEE_PURE" in the documentation. It says that it is defined if
you use the /clr:pure switch. You can not use the header files - mmintrin.h
is the header files containing the declarations for the MMX intrinsics
(http://msdn.microsoft.com/en-us/library/698bxz2w.aspx) - together with the
clr:pure. You can, if possible, change the latter in the
project's properties ("common language runtime support" under configuration
proprerties->general)
Armin

Oct 21 '08 #7
Instead of removing all MFC things from my project (although I do not
need them anymore), I went to "properties" and said "Use of MFC: Use MFC
in a shared DLL".
Now I have this problem remaining:

Error 10 error C2857: '#include' statement specified with the
/Ycstdafx.h command-line option was not found in the source file
C:\Programs\Microsoft Visual Studio
9.0\VC\atlmfc\include\atlsimpstr.h 287 VideoASM

It's really not very easy today, and I'm about to explode. Microsoft
should have included a messagebox that pops up after the 100th compiler
error and tells "Don't give up. You're almost there."

Anna
Oct 21 '08 #8
"Anna Smidt" <a.*****@nospamgmail.comschrieb
I have found out that I can go to "project"->"properties" and switch
from "Pure MSIL Common Language Runtime Support (/clr:pure) to
"Common Language Runtime Support (/clr)", but when I do, I get
another compiler error:

Error 10 error C2857: '#include' statement specified with the
/Ycstdafx.h command-line option was not found in the source file
C:\Programs\Microsoft Visual Studio 9.0\VC\include\xlocnum 135
VideoASM

Wow, that's is really nerve-wrecking. I will be happy if I have
overcome these problems.
The documentation says:
http://msdn.microsoft.com/en-us/library/zeh74f9z.aspx
Therefore I guess, the file to be compiled does not contain
#include "stdafx.h"
Armin
Oct 21 '08 #9
Anna Smidt wrote:
Sorry, I have a question again:

I am trying to debug/ release a CLR application (that uses the
FrameWork). No when I try to compile it, it stops in this line in

-------mmintrin.h--------

#if defined(_M_CEE_PURE)
#error ERROR: MM intrinsics not supported in the pure mode!
#else

I found out that mmintrin.h comes from

c:\programs\Microsoft Visual Studio 9.0\VC\Include

So at first I wanted to find out if this include in really needed and
removed it from Options->VC++ Directories->Includes
But then a dozen of other errors where thrown, and I thought that
these includes are really needed.

Can somebody tell me what I should do or how to refine my question/
error report to be more concrete?
Well, you wouldn't want to remove the whole include directory, just the one
line in one (or several) of your files that refers to "mmintrin.h". But if
you're using MM instrinsics then there is no equivalent instruction on the
MSIL abstract machine, you'll have to generate native code (which means a
mixed assembly, such will work just fine in .NET applications as long as you
have Full Trust).
Thank you!

Anna

Oct 21 '08 #10
Armin,
thanks for your reply. It arrived at the right time because I'm really
desperate.
The error

Error 10 error C2857: '#include' statement specified with the
/Ycstdafx.h command-line option was not found in the source file
C:\Programs\Microsoft Visual Studio
9.0\VC\atlmfc\include\atlsimpstr.h 288 VideoASM

is thrown in

C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlsimpstr.h

This means it's a MS thing, and I am not sure if I should type #include
"stdafx.h" into it.
Well, I did, and then +100 compiler errors were thrown in

Error 1 error C2504: 'CDialog' : base class undefined
C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxdlgs.h 108
VideoASM

So I guess it's not correct how I did it.
Can you help?

Damn, I'm really desperate. Maybe it's because I worked all done on the
same problem, but I want to get it going.
Anna
Oct 21 '08 #11
"Anna Smidt" <a.*****@nospamgmail.comschrieb
Armin,
thanks for your reply. It arrived at the right time because I'm really
desperate.
The error

Error 10 error C2857: '#include' statement specified with the /Ycstdafx.h
command-line option was not found in the source file C:\Programs\Microsoft
Visual Studio 9.0\VC\atlmfc\include\atlsimpstr.h 288 VideoASM

is thrown in

C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlsimpstr.h

This means it's a MS thing, and I am not sure if I should type #include
"stdafx.h" into it.
Well, I did, and then +100 compiler errors were thrown in

Error 1 error C2504: 'CDialog' : base class undefined
C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxdlgs.h 108
VideoASM

So I guess it's not correct how I did it.
Can you help?

Damn, I'm really desperate. Maybe it's because I worked all done on the
same problem, but I want to get it going.
Anna
I would never change the supplied header files. I'd include stdafx.h in the
cpp file in your own project. To narrow the problem down, you can compile on
a per file basis by pressing Ctrl+F7 (cpp files only! not header files)
Armin

Oct 21 '08 #12
Can we say that the main problem is this compiler error:

Error 1 Command line error D8016 : '/MT' and '/clr' command-line options
are incompatible cl stasm

What I did before the whole mess occured was that I added a WindowsForm.
The IDE asked me if I wanted to convert my project to support CLR
support. I said yes, because I didn't know it would wreck just
everything up.

Can we say that this is a critical thing to do? Critical meaning that
you have to rewrite a lot of code?
Or is the compiler option "MT" a thing that I can remove without
breaking anything?

Anna
Oct 21 '08 #13
Anna Smidt wrote:
Armin,
thanks for your reply. It arrived at the right time because I'm really
desperate.
The error

Error 10 error C2857: '#include' statement specified with the
/Ycstdafx.h command-line option was not found in the source file
C:\Programs\Microsoft Visual Studio
9.0\VC\atlmfc\include\atlsimpstr.h 288 VideoASM

is thrown in

C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlsimpstr.h

This means it's a MS thing, and I am not sure if I should type
#include "stdafx.h" into it.
Well, I did, and then +100 compiler errors were thrown in

Error 1 error C2504: 'CDialog' : base class undefined
C:\Programs\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxdlgs.h
108 VideoASM

So I guess it's not correct how I did it.
Can you help?
Well, atlsimpstr.h is a header file. If the compiler is calling it a source
file then your project compile settings are wrong. There shouldn't be any
Microsoft files listed in your Solution Explorer at all, they get pulled in
with #include statements and never compiled separately.
>
Damn, I'm really desperate. Maybe it's because I worked all done on
the same problem, but I want to get it going.
Anna

Oct 21 '08 #14
Thanks!
Oct 21 '08 #15
"Anna Smidt" <a.*****@nospamgmail.comschrieb
Can we say that the main problem is this compiler error:

Error 1 Command line error D8016 : '/MT' and '/clr' command-line options
are incompatible cl stasm

What I did before the whole mess occured was that I added a WindowsForm.
The IDE asked me if I wanted to convert my project to support CLR
support. I said yes, because I didn't know it would wreck just
everything up.

Can we say that this is a critical thing to do? Critical meaning that
you have to rewrite a lot of code?
Or is the compiler option "MT" a thing that I can remove without
breaking anything?
Maybe this helps:
http://msdn.microsoft.com/en-us/library/x0w2664k.aspx
("How To: Migrate to /clr" etc)
Armin
Oct 21 '08 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
3
by: dfeustel | last post by:
Where can I find info about using intrinsic functions for SSE, SSE2, and SSE3 instructions with gcc? Is there a URL? Thanks, Dave Feustel -- Using OpenBSD with or without X & KDE?
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
1
by: =?iso-8859-1?q?Horacio_Nu=F1ez_Hern=E1ndez?= | last post by:
Hi, I have been writing a wrapper with /clr:pure set, while I using the debug mode it was fine, when turned the mode to release it begins show me the same errors that when we try to use...
3
by: dragonslayer008 | last post by:
I am building a control library in C++/CLI. My project links with a native library and am getting an error that the library cannot work with pure: dxerr.lib(dxerr.obj) : fatal error LNK1313:...
2
by: Charles Zhang | last post by:
For Win32 application, I could use "__asm pause". However, for X64 platform, the inline assembler is not supported. Is there a compiler intrinsics for "__asm pause"? Thanks Charles Zhang
1
by: dcharno | last post by:
Is it possible to use ctypes with a shared library which uses MMX/SSE intrinsics? I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics....
2
by: Robert Kern | last post by:
dcharno wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are passing in arrays from ctypes, *they*...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.