• lcc64 kernel32.lib

    From stevecor24@gmail.com@21:1/5 to All on Thu Jan 7 11:50:57 2016
    I do not see the kernel32.lib in the lib64 directory. Am I missing something?

    I need to link with a function from kernel32.lib. Consider this program:

    #include <windows.h>
    int main()
    {
    long value = 1;
    InterlockedExchange(&value, 0);
    return 0;
    }

    When I compile with "lc", all is fine:

    lc t.c


    But with lc64, this error:

    lc64 t.c
    t.obj .text: undefined reference to '_InterlockedExchange'
    linker returned 1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)