POLINK error when compiling in x64 mode

Started by frktons, July 09, 2010, 09:10:27 PM

Previous topic - Next topic

frktons

I'm trying to compile some C code in X64 mode, but I get
some errors from POLINK:

POLINK: error: Unresolved external symbol '__imp_GetSystemTimeAsFileTime'.
POLINK: error: Unresolved external symbol '__imp_HeapCreate'.
POLINK: error: Unresolved external symbol '__imp_HeapDestroy'.
POLINK: error: Unresolved external symbol '__imp_HeapAlloc'.
POLINK: error: Unresolved external symbol '__imp_HeapReAlloc'.
POLINK: error: Unresolved external symbol '__imp_HeapFree'.
POLINK: error: Unresolved external symbol '__imp_HeapSize'.
POLINK: error: Unresolved external symbol '__imp_HeapValidate'.
POLINK: error: Unresolved external symbol '__imp_ExitProcess'.
POLINK: error: Unresolved external symbol '__imp_GetStartupInfoA'.
POLINK: error: Unresolved external symbol '__imp_GetFileType'.
POLINK: error: Unresolved external symbol '__imp_GetStdHandle'.
POLINK: error: Unresolved external symbol '__imp_GetCurrentProcess'.
POLINK: error: Unresolved external symbol '__imp_DuplicateHandle'.
POLINK: error: Unresolved external symbol '__imp_SetHandleCount'.
POLINK: error: Unresolved external symbol '__imp_GetCommandLineA'.
POLINK: error: Unresolved external symbol '__imp_GetModuleFileNameA'.
POLINK: error: Unresolved external symbol '__imp_GetEnvironmentStrings'.
POLINK: error: Unresolved external symbol '__imp_FreeEnvironmentStringsA'.
POLINK: error: Unresolved external symbol '__imp_UnhandledExceptionFilter'.
POLINK: error: Unresolved external symbol '__imp_RtlUnwindEx'.
POLINK: error: Unresolved external symbol '__imp_ReadFile'.
POLINK: error: Unresolved external symbol '__imp_GetLastError'.
POLINK: error: Unresolved external symbol '__imp_GetConsoleMode'.
POLINK: error: Unresolved external symbol '__imp_GetConsoleCP'.
POLINK: error: Unresolved external symbol '__imp_SetConsoleCtrlHandler'.
POLINK: error: Unresolved external symbol '__imp_GetConsoleOutputCP'.
POLINK: error: Unresolved external symbol '__imp_WriteFile'.
POLINK: error: Unresolved external symbol '__imp_MultiByteToWideChar'.
POLINK: error: Unresolved external symbol '__imp_VirtualAlloc'.
POLINK: error: Unresolved external symbol '__imp_VirtualQuery'.
POLINK: error: Unresolved external symbol '__imp_SetStdHandle'.
POLINK: error: Unresolved external symbol '__imp_SetFilePointer'.
POLINK: error: Unresolved external symbol '__imp_WideCharToMultiByte'.
POLINK: error: Unresolved external symbol '__imp_CloseHandle'.
POLINK: error: Unresolved external symbol '__imp_DeleteFileA'.


What am I missing?
Mind is like a parachute. You know what to do in order to use it :-)

frktons

After some searching I found the solution, I had to create
a 64 bit project before trying to compile it in 64 bit mode.  :red

And the programs compiled in 64 bit mode are about 20% faster than
their equivalent compiled in 32 bit mode.

This depends probably on the fact I'm using a X64 CPU.  :P
Mind is like a parachute. You know what to do in order to use it :-)