473,624 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Mic rosoft 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 4633
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\Mic rosoft Visual Studio
9.0\VC\atlmfc\i nclude\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\Mic rosoft 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.*****@nospam gmail.comschrie b
<<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.*****@nospam gmail.comschrie b
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\Mic rosoft 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_PUR E" 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\Mic rosoft Visual Studio
9.0\VC\atlmfc\i nclude\atlsimps tr.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.*****@nospam gmail.comschrie b
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\Mic rosoft 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\Mic rosoft 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

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

Similar topics

9
2585
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 explain it. I have some questions about the instructions for creating a mixed mode DLL in the MSDN topic "Converting Managed Extensions for C++ Projects from Pure Intermediate Language to Mixed Mode" in the "Managed Extensions for C++ Reference"....
13
5039
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 use that dll from pure unmanaged code (for example inherit from classes in that dll). Is something like that possible. I heared something called ManWarp tried that approach. If it is possible, how can I do that. Maybe there is a small litttle
3
7612
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
7253
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# application. My question is: Does the performance of the unmanaged pure native C++ class described above is the same if it was a in a pure unmanaged native C++ DLL component?
1
1174
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 unmanaged functions whithout specify the input libs to the linker, thanks in advance, regards
3
5380
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: ijw/native module detected; cannot link with pure modules I am fine switching to CLR mode, but I have a question. If I build the control library DLL in CLR mode, will it still integrate seamlessly into C#/VB projects? Or will I have to change...
2
2333
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
1406
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. I'm wondering if there might be some sort of stack alignment problem. I am using gcc version 4.2.3 and Python 2.5.2 on Ubuntu 8.04. Any suggestions would be helpful.
2
1981
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* may also be misaligned. Try to check the addresses of the ctypes values you are passing in. I'm not entirely sure how to do that, though. -- Robert Kern
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.