Re: glib\guitls.h, atexit and the windows DDK



You probably should build some helloworld type program that includes
some typical DDK headers without actually using any DDK functionality,
and includes <glib.h>, and just calls g_print("hello, dude\n") and see
what happens...

with some very kind guidance from Tor I was able to compile and run the following program:

#include <stdio.h>
#include <fcntl.h>
#include <glib.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>

int __cdecl
main(int argc, char *argv[]) {
  g_print("hello world\n");
}

so it would _seem_ that the "add the __cdecl to the atexit declaration in gutil.h" change is safe?

rick jones



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]