I have a .nim file containing only: echo "hello nim"
I have TDM-GCC 4.7, nimrod 0.9.6
It will successfully compile with:
c --threads:on
and
cpp --threads:off
But fails with:
cpp --threads:on
Command Prompt:
nimrod.exe cpp --threads:on --deadCodeElim:on small.nim
Error message summary:
system.cpp: In function
'void* nimGetProcAddr(void*, NCSTRING)':
system.cpp:455:47:
error: invalid conversion from 'void*' to 'HINSTANCE'
[-fpermissive]
result = GetProcAddress(((void*) (lib)), name);
oooooooooooooooooooooooooooooooooo^
In file included from tdm\include\windows.h:50:0
from system.cpp:14:
tdm\include\winbase.h:1675:27:
error: initializing argument 1 of:
'int (__attribute__((__stdcall__)) * GetProcAddress(HINSTANCE, LPCSTR))()'
[-fpermissive]
WINBASEAPI FARPROC WINAPI GetProcAddress(HINSTANCE,LPCSTR);
ooooooooooooooooooooooooooo^
system.cpp:455:47: error:
invalid conversion from 'FARPROC {aka int (__attribute__((__stdcall__)) )()}' to 'void'
[-fpermissive]
result = GetProcAddress(((void*) (lib)), name);
oooooooooooooooooooooooooooooooooo^
system.cpp lines 452 to 462:
N_NIMCALL(void*, nimGetProcAddr)(void* lib, NCSTRING name) {
void* result;
result = 0;
result = GetProcAddress(((void*) (lib)), name); // 455
{
if (!(result == NIM_NIL)) goto LA3;
procaddrerror_27615(name);
}
LA3: ;
return result;
}
=================================