report windows error message

This commit is contained in:
interfiberschool 2023-03-17 12:42:47 +00:00
parent 9798f880f9
commit d0f3f64bf8
4 changed files with 90 additions and 30 deletions

View file

@ -2,11 +2,12 @@
typedef void (*func_handle)();
int main()
{
struct hotwire_dll_t dll = hw_dlopen("./bin/exampleUnixLib.dll", RTLD_NOW);
int main() {
struct hotwire_dll_t dll = hw_dlopen("./bin/exampleUnixLib.dll", RTLD_NOW);
func_handle func = (func_handle)hw_dlsym(dll, "test");
func_handle func = (func_handle)hw_dlsym(dll, "test");
func();
func();
hw_dlclose(dll);
}