I am trying to integrate ANT into a desktop application using Qt 4.7. Another programmer was able to successfully integrate the ANT demo into the application and get it to run on his machine. I am using the exact same code but every time the application fails to load the ANT_DLL.dll file. The program runs to line 100 in libant.cpp :
hANTdll = DYNAMIC_LIB_LOAD(DYNAMIC_LIB_FILENAME);
if (hANTdll == NULL)
return FALSE;
however the hANTdll is always NULL. The program crashes immediately after this giving me an error of:
"(Internal error: pc 0x0 in read in psymtab, but not in symtab.)".
I have verified that the ANT_DLL.dll file is in the same directory as the executable. I am using a 64-bit machine running Windows 7.
To add an extra twist I can get the code to run on a different machine that is 32-bit and running Windows 7.
I have run out of ideas so any insight would be greatly appreciated.
Thanks.