Error: *.dll | OK: *.dylib

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
mipsk
Posts: 1
Joined: Thu Dec 11, 2014 8:42 am

Error: *.dll | OK: *.dylib

Post by mipsk »

Dear OpenSees community,

I have been working on an element using the dynamic API, building it in MacOS without errors.
Today, trying to check some things in Windows, some errors are given in Visual Studio. No DLL is generated.

The error is created by ---theDomain=OPS_GetDomain()--- placed inside:
OPS_Export void *
OPS_ELEMENT()
{
(...)
Domain *theDomain = 0;
theDomain = OPS_GetDomain();
(...)
}

From elementAPI.h:
extern Domain *OPS_GetDomain(void); //**MRL

The error warning in VS is:
error LNK2019: unresolved external symbol "class Domain * __cdecl OPS_GetDomain(void)" (?OPS_GetDomain@@YAPAVDomain@@XZ)

Thanks in advance!
Post Reply