Menu

Unresolved external 'owl::__OwlDiagGroupDef'

2023-12-13
2023-12-13
  • Andrew Bond

    Andrew Bond - 2023-12-13

    I have recently updated OWLNext to v7.0.7 and I am now getting the the following linker error:

    Error: Unresolved external 'owl::__OwlDiagGroupDef' referenced from C:\SOFTWARE DEVELOPMENT X.7\CB11.0 ALEXANDRIA\WIN32\OBJ\DEBUG\REWARD2.EXE\EARTHPRESSURES2.OBJ

    I have looked in the referenced file 'EarthPressures2.cpp' (and its header) but can find no mention of OwlDiagGroupDef or anything that refers to it (like the macro CHECK).

    Can anyone suhgest how I could be triggering this error and - better still - any way of resolving it.

    I am at a los to know where to look.

    Thanks is advacne for any help you can give.

    Andrew

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2023-12-13

    Hi Andrew,

    Symbol owl::__OwlDiagGroupDef refers to the default diagnostics group in OWLNext, which means that some of your code activates OWLNext diagnostics (see "owl/private/checks.h").

    OWLNext diagnostics is automatically activated if you build in debug mode (by defining _DEBUG or __DEBUG). However, it may also be explicitly enabled by __TRACE or __WARN.

    I guess your code is trying to use OWLNext diagnostics outside of debug mode. OWLMaker doesn't have a build mode for that. The debug build mode will include diagnostics; the release build will not.

    PS. Link errors like this may also occur if you explicitly link to the wrong OWLNext library. Note that OWLNext uses auto-linking (see pragma in "owl/private/defs.h"), so you should not explicitly specify the library file to link.

     

    Last edit: Vidar Hasfjord 2023-12-13

Anonymous
Anonymous

Add attachments
Cancel