-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I had to make some tweaks to compile this with newer msvc - maybe helpful to anyone looking to build from source
- adding legacy_stdio_definitions.lib in cmakelists, fixed unresolved externals for printf etc
target_link_libraries(
${PROJECT_NAME}
PRIVATE
${HavokLibs}
${NifLibLibPath}/niflib_static.lib
"legacy_stdio_definitions.lib"
)
- in main.cpp or similar, solves unresolved external __iob__ whatever
// Fix iob change in newer msvc
FILE _iob[] = {*stdin, *stdout, *stderr};
extern "C" FILE * __cdecl __iob_func(void)
{
return _iob;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels