This email addresses a problem that is unique to a particular Windows
XP installation. If you have no interest in this, then stop reading now.
I normally don't submit this kind of stuff, but I am stuck and need some ideas.
My hope is that someone who understands Windows compilation and
shared library loading better than I do can give me an idea or two that will help me
work through this. If you have any suggestions, links to articles, or whatever, you will have my undying gratitude.
I recently had to switch computers and haven't gotten chicken to build
properly since. Whether I use the build script or the makefile the
result is the same. The build appears to complete normally, but when I
run anything I end up with a windows dialog box (details at bottom) unless
I have a few very odd directories in my path.
My suspicion is that one of my library files (with a mingw or vc environment)
is incompatible with a dll in the system32 directory on this machine.
My reason for that suspicion is that I can make things run if I add
certain directories to the path when running. I have had scenarios
where the app would run until I eliminated a certain Java bin directory -- oracle 1.8 java if you have to know --
from the path. When I would look in the directory there would be an
msvcrt.dll in there. Unfortunately, dropping the mscvrt.dll in the chicken's dir doesn't fix anything.
If I run chicken.exe with PATH1 I get the error listed at the bottom even though this is how it was compiled.
So my theory is that the import libraries being picked during the
compilation do not match the dlls being loaded at runtime. I just don't
know if there is a quick way to work through the problem.
If I run it with PATH2 it runs fine.
PATH1
set
PATH=C:\working\cmake\chicken-2.216;C:\programs\darcs-w32;C:\Programs\CMake_2.2\bin;C:\ProgramFiles\Microsoft
Visual C++ Toolkit
2003\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\SYSTEM32\;C:\Program
Files\Microsoft Platform SDK\Bin;C:\Program Files\Microsoft Platform
SDK\Bin\WinNT;C:\Program Files\Microsoft Platform SDK\Bin\win64