Question
Issues with linking and running a 64 bit Pro/TOOLKIT DLL
Hi All,
I am working with some code that we purchased from PTC. I am compiling and
linking in Wildfire 4.0 M130 in the MSVS 2005 IDE on a Win XP 32 bit
laptop. My targets are Windows XP, 32 and 64 bit platforms.
The DLL compiles, links and runs fine for 32 bit XP. When I initially
tried linking for 64 bit I got linker errors indicating that the module
target of x86 was incompatible with the target machine x64. Investigating,
I found that the 64 bit Properties included paths with "(x86)". I assumed
that it had been built on a 64 bit machine. The odd part was that the
paths had been set in the Additional Libraries section of the properties
dialog for the project. I ended up having to adjust the path to point to
the amd64 library folder under the VC 8 SDK. The code now compiles and
links fine, but when I attempt to start it on a Win 64 box, I get the
failed to start dialog. No error messages in either the message log, trail
file, or std.out. I have an old version of the DLL that starts fine in the
same set up, so I know that part is OK.
I ended up adding dependencies to msvcrtd.lib and msvcprtd.lib and using
the /NODEFAULTLIB linker option.
Anybody ever seen this sort of thing before?
Thanks,
Ben
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

