Archived

This topic is now archived and is closed to further replies.

Help A newb

This topic is 5742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is sort of wierd: im using a collision detection library called coldet it compiles without any problems and compiles this code without any error EXPORT CollisionModel3D* newCollisionModel3D(bool Static) { return new CollisionModel3DImpl(Static); } i brought all the code into my own project: what i did was i included the codlet.dsp into my workspace and moved all the files from the coldet project into my own project now i keep getting this error: coldet_bld.cpp(30) : error C2491: ''newCollisionModel3D'' : definition of dllimport function not allowed anyone know why?

Share this post


Link to post
Share on other sites
Its a DLL project. Either compile as a dll, or maybe you can try just getting rid of the dllImports (or if you''re fortunate and the programmer used a macro, just redefine it).

==
''The Big Bad''
"No, I''m a rebel. You''re an idiot." -- Spike

Share this post


Link to post
Share on other sites