Hi,
I have a function defined in a namespace in one DLL (DLL 1), and try to call it from another DLL (DLL 2). In Linux, it works fine. But in Window it can't find that function. The program is written using Qt, which is intended for cross platform application.
The import and export are properly defined, as below:
In DLL 1
namespace MyDLL1 {
MY_DLL1_EXPORT float getGlobalPoint();
}
Where MY_DLL1_EXPORT is defined properly as Q_DECL_EXPORT when building the library, or Q_DECL_IMPORT when linking to the library.
However, it complains MyDLL1::getGlobalPoint is undefined when building DLL 2.
Can anyone help please?
Thanks
Bookmarks