Extern, how to import a function and rename it ?

BlitzMax Forums/BlitzMax Programming/Extern, how to import a function and rename it ?

What would I put instead of "win32" .. ?

I have tried "", or just extern. Both give errors when trying to makemods. If I put an import "win32" and then extern (with nothing else) after, it has the same errors. If I import the individual library files using import "-luser32.a" and then a blank extern, yes thats right, same errors.

[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(kernel32.bmx.o)(code+0x48): undefined reference to `_GetModuleHandleA@4'
[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(kernel32.bmx.o)(code+0x5c): undefined reference to `_GetModuleHandleA@4'
[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(user32.bmx.o)(code+0xda): undefined reference to `_GetClassInfoExA@12'
[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(user32.bmx.o)(code+0x164): undefined reference to `_RegisterClassExA@4'
[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(user32.bmx.o)(code+0x185): undefined reference to `_UnregisterClassA@8'
[ERROR]: e:/creation/tools/blitzmax/mod/skn3.mod/win32.mod/win32.a(user32.bmx.o)(code+0x1dc): undefined reference to `_CreateWindowExA@48'



This is really frustrating me now, and I have run out of ideas.