Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,First of all sorry for my English.
I have e method (SomeMethod() ) in dll which is called ILogger.dll. I need to invoke this method from another dll which is called IModel.dll.
I'm using MinGW and I can create an ILogger.dll (which consist ILogger.h and ILogger.cpp). I need to build a IModel.dll (which consist IModel.h and IModel.cpp) and IModel.cpp need to use method which describe in ILogger.cpp. How can I compile and build IModel.dll if I only have IModel.h, IModel.cpp and ILogger.dll (no have file ILogger.cpp and ILogget.h after the compiled)

What I have tried:

I have tried this action:
use the command g++ -c -DEXPORTS IModel.cpp -L. -lLogger.dll
it doesn't work (can't understand what is ILogger in the code).
Note - EXPORTS is a tag from this code in IModel.h
#ifdef EXPORTS
    #define SMPInfrastructure_API __declspec(dllexport)
    #define SMPInfrastructure_API __declspec(dllimport)
Updated 14-Mar-17 23:35pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900