Linker error

Linker error

Anonymous
Not applicable
376 Views
3 Replies
Message 1 of 4

Linker error

Anonymous
Not applicable
Hi all

Can anyone give me a hint on this one. The problem occurs when using

actrTransactionManager->startTransaction();

Resulting in:

error LNK2019: unresolved external symbol "class AcApDocManager * __cdecl acDocManagerPtr(void)" (?acDocManagerPtr@@YAPAVAcApDocManager@@XZ) referenced in function "class AcTransactionManager * __cdecl acTransactionManagerPtr(void)" (?acTransactionManagerPtr@@YAPAVAcTransactionManager@@XZ)


Thanks
Tore
0 Likes
377 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
This is exported from acad.exe and is in acad.lib. So, make sure that
acad.lib is included in your link.

wrote in message news:5029999@discussion.autodesk.com...
Hi all

Can anyone give me a hint on this one. The problem occurs when using

actrTransactionManager->startTransaction();

Resulting in:

error LNK2019: unresolved external symbol "class AcApDocManager * __cdecl
acDocManagerPtr(void)" (?acDocManagerPtr@@YAPAVAcApDocManager@@XZ)
referenced in function "class AcTransactionManager * __cdecl
acTransactionManagerPtr(void)"
(?acTransactionManagerPtr@@YAPAVAcTransactionManager@@XZ)


Thanks
Tore
0 Likes
Message 3 of 4

Anonymous
Not applicable
Tore:

> error LNK2019: unresolved external symbol "class AcApDocManager
> * __cdecl acDocManagerPtr(void)"

Are you getting this error while linking a .dbx module? If so, it would
be expected since this function is in acad.exe, and .dbx modules are not
supposed to be linked to acad.exe. If it's not a .dbx module, you need to
link to acad.lib. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi

Yes, it's from a DBX module.

Thanks. Have to work around it.


Tore
0 Likes