Overview
| Artifact ID: | 979dcbb375f1898ec7a2aa3d84ed316cdd31b5d6 |
|---|---|
| Ticket: | 1031781fffffffffffffffffffffffffffffffff
Problems building on Windows 2k with VS.NET |
| User & Date: | nobody on 2004-09-21 09:50:47 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
I opened the tcl.dsw file, doing the conversion required, and built the static release. It built fine, but I could not link to it - when compiling my app_init.c file (pinched from the one for tclsh) the linker reported missing symbols. The usual cause of this problem is that the library cannot be found by the linker, but that is definitely not the case here. I had seen this problem when building zlib once, and the answer then was to create a brand new fresh project from scratch, making sure I included all the correct source files and did the settings. After some effort I got that to build, only to find exactly the same problem. I had changed the settings to compile as C code, so I figured that the way I was compiling my program (which is the same mechanism as we use to build our product, and cannot be changed) was using C++ name mangling, and thus the linker was having problems as the symbols in the library were mangled in the C style. When I changed my project settings to compile the Tcl static library as C++ code, it failed to build quite horrendously, and for a quite obvious reason: int TclpGetTimeZone (currentTime) unsigned long currentTime; { Hmm - what an antiquated function declaration style. I haven't seen that used since I was at University around 1995 or so. I am sure you have your reasons for declaring functions like this rather than like: int TclpGetTimeZone (unsigned long currentTime) { However this is stopping me from compiling Tcl. Have you any ideas how I can set myself up so I can build the Tcl static library for Windows using VS.NET? I suspect that for ease of development in the future I will need to integrate the Tcl source code into our build system. I am not sure it will be possible at the moment. I will be eternally grateful for any help you can give me. Alastair Growcott [email protected] - foundin changed to: "obsolete: 8.4.7"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "Problems building on Windows 2k with VS.NET"
- type changed to: "Bug"