Jump to content
  • Advertisement
Sign in to follow this  
RidiculousX

Unity Trouble compiling DLL with Dev-C++

This topic is 4611 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

Actually, it compiles just fine, but the problem is that it's missing all the classes and stuff. I don't know what I'm doing wrong. I followed the directions at http://www.gamedev.net/community/forums/topic.asp?topic_id=168347&whichpage=1󳳅, looked at the DLL Template in Dev-C++, and I looked at the Irrliched source code to see what was different about mine. I looked at the .def file and it is empty. It has text in it, but no functions or classes that are in my code. It's probably because I'm not using __declspec(dllexport) or __declspec(dllimport). That's because I have only two classes so far, each it its own namespace. And looking at the Irrlicht code, there is only one function declared as __declspec(dllexport) in the main .cpp file. Nothing else has it. Now when I did put in a test function in the main header file and declared it as __declspec(dllexport) bool test(); and put the code for it in the main .cpp file, it compiled and I saw it in the .def file. But here's what confused me: When I did the same to both of my classes and compiled, but they still didn't show up in the .def file. So, I dunno. If you have any idea what's wrong, please tell.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!