I am trying to catch an exception and get the line and source file where the error occurred. I was using __throwLineNumber
and __throwFileName
and it compiles, but I am receiving linker errors:
[ilink32 Error] Error: '__ThrowFileName()' unresolved
[ilink32 Error] Error: '__ThrowLineNumber()' unresolved
__throwLineNumber
, you must compile the module with the-xp
compiler option." Also, C++Builder has several different C++ compilers, which one are you actually using? The__throwFileName
documentation says: "Note: This function is only available for classic Win32 compiler."