cannot compile an unmanaged function with /clr:pure or /clr:

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Nova
Competition winner
Posts: 99
Joined: Mon May 09, 2005 10:32 am

cannot compile an unmanaged function with /clr:pure or /clr:

Post by Nova »

Hi everyone,

i am trying to develop an application using Windows Forms from Visual C++ Express with an Irrlicht scene. I have read some posts of people successfully doing this

Here and here

They seem to have different problems (and solved them) but I can't even get Irrlicht to work with the managed application. Can anyone follow and help me?

my build log is as follows

Code: Select all

------ Build started: Project: irrAnim, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
Compiling...
irrAnim.cpp
d:\irrlicht\irrlicht-1.4beta\include\IReferenceCounted.h(112) : error C3862: 'irr::IReferenceCounted::drop': cannot compile an unmanaged function with /clr:pure or /clr:safe
        Inline native assembly not supported in managed code
d:\irrlicht\irrlicht-1.4beta\include\IReferenceCounted.h(119) : error C3821: 'irr::IReferenceCounted::~IReferenceCounted': managed type or function cannot be used in an unmanaged function
        Inline native assembly not supported in managed code
d:\irrlicht\irrlicht-1.4beta\include\IReferenceCounted.h(119) : error C3642: 'void *irr::IReferenceCounted::__delDtor(unsigned int)' : cannot call a function with __clrcall calling convention from native code
d:\irrlicht\irrlicht-1.4beta\include\IReferenceCounted.h(112) : error C3645: 'irr::IReferenceCounted::drop' : __clrcall cannot be used on functions compiled to native code
AssemblyInfo.cpp
Generating Code...
Build log was saved at "file://d:\Irrlicht\irrlicht-1.4beta\Projects\irrAnim\Debug\BuildLog.htm"
irrAnim - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks in advance :)

Nova
Boca
Posts: 12
Joined: Tue Mar 04, 2008 4:35 pm
Location: Spain

Post by Boca »

I have that problem. Irrlicht is done to native compiler. No?
Post Reply