AcademySoftwareFoundation / AcademySoftwareFoundation/Imath
imath_half_to_float_table not properly exported from DLL
- Dominant language
- C++
- Stars
- 488
- Forks
- 161
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 3
Description
I'm building your library to be used as input to `OpenEXR` library, and I get unresolved external symbol `imath_half_to_float_table`
I have defined both `IMATH_DLL` and `IMATH_EXPORTS`
After running **DUMPBIN /EXPORTS Imath.dll**
I get following export and can't figure out why
`58 39 00096000 imath_half_to_float_table = imath_half_to_float_table`
Expected output should be:
`imath_half_to_float_table = imath_half_to_float_table_data`
A workaround was to define `IMATH_HALF_NO_LOOKUP_TABLE` in `OpenEXR` project but I would prefer to use lookup table.
Do you have any idea what's wrong?
**EDIT:**
Btw. I see inconsistence of macro used to export symbol:
**half.h**
`IMATH_EXPORT const imath_half_uif_t* imath_half_to_float_table;`
**half.cpp**
`EXPORT_CONST const imath_half_uif_t *imath_half_to_float_table = imath_half_to_float_table_data;`
Contributor guide
Assessment
This issue has not been assessed yet.