Compilation Problems in Win98

From: Don Rozenberg (rozen_at_mcn.org)
Date: 12/09/03


Date: Tue, 09 Dec 2003 11:21:48 -0800

Hi,

I am having considerable difficulty in compiling and linking tk on
Win98. Visual C++ v.6 is on my system, I need to do that since, I need
to have Tix on WIndows and I can't find an up-to-date Windows
Installer.

I have downloaded, Tcl 8.4.5, Tk 8.4.5, and Tix 8.1.4 and put them in
a directory called 'c:\tix-build'. I pointed Visual C++ at a
workspace in c:\tix-build\tcl8.4.5\win and pressed the build button.
Several minutes later, it had built tcl.

Next I went to c:\tix-build\tk8.4.5\win. There is no Visual C++
workspace there. So I took a look at buildall.vc.bat and changed a
couple of lines point to the correct place for vcvars.bat and changed
TCLDIR to point ..\..\Tcl8.4.5
and tried executing it. After increasing my environment space, I was
compiling up a storm. However, link failed. It seems that the make
file was looking for tcl84.lib. Well the tcl build generated a file
tcl84s.lib. Back in the makefile I add the line SUFX = s and off I
went. This time, there are a half a dozen unresolved symbol messages
for things like __imp__Tcl_CreateInterp. The output of the build follows:

C:\tix-build\tk8.4.5\win>call buildall.vc.bat
Sit back and have a cup of coffee while this grinds through ;)
You asked for *everything*, remember?

Bad command or file name
Setting environment for using Microsoft Visual C++ tools.
==============================================================================
*** Compiler has 'Optimizations'
*** Compiler has 'Pentium 0x0f fix'
*** Linker has 'Win98 alignment problem'
*** Intermediate directory will be '.\Release\tk_Dynamic'
*** Output directory will be '.\Release'
*** Suffix for binaries will be ''
*** Optional defines are ''
*** Dependency rules are not being used.

        link -nologo -machine:IX86 -release -opt:ref -opt:icf,3 -opt:nowin98
-
bsystem:windows -out:".\Release\wish84s.exe" kernel32.lib advapi32.lib
user32.
b shell32.lib gdi32.lib comdlg32.lib winspool.lib imm32.lib comctl32.lib ".
\.
tcl8.4.5\win\Release\tcl84s.lib" .\Release\tk_Dynamic\winMain.obj .\Releas
\tk
ynamic\wish.res ".\Release\tk84s.lib"
winMain.obj : error LNK2001: unresolved external symbol
__imp__Tcl_CreateInter
winMain.obj : error LNK2001: unresolved external symbol
__imp__Tcl_SetPanicPro
winMain.obj : error LNK2001: unresolved external symbol
__imp__Tcl_GetStringRe
lt
winMain.obj : error LNK2001: unresolved external symbol __imp__Tcl_SetVar
winMain.obj : error LNK2001: unresolved external symbol
__imp__Tcl_StaticPacka

winMain.obj : error LNK2001: unresolved external symbol __imp__Tcl_Init
winMain.obj : error LNK2001: unresolved external symbol __imp__Tcl_Alloc
.\Release\wish84s.exe : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1\VC98\BIN\link.exe' : return
c
e '0x460'
Stop.
*** BOOM! ***
Bad command or file name
DONE!
Press any key to continue . . .

------------------------------- End of Output

I would appreciate any suggestion that would get me rolling.

Thanks,

-- 
Don Rozenberg
707-882-3601
rozen@mcn.org


Relevant Pages

  • Re: Missing Lib Files
    ... compiling a subproject, smart device application, or OS image? ... Looks like you're missing references to coredll, ... unresolved external symbol DisableThreadLibraryCalls ...
    (microsoft.public.windowsce.platbuilder)
  • Cant resolve __GSHandlerCheck
    ... I'm compiling with "Platform SDK for Windows Server 2003 R2" and I'm linking to a library that someone else (Brian Gladman) built using VC 8, ... And I keep getting this one unresolved external symbol: ... Does anyone know how I might resolve this symbol? ...
    (microsoft.public.vstudio.general)
  • Frustrating LNK2001 issue with VC++ 6.0
    ... error LNK2001: unresolved external symbol __ftol2 ... external symbol, it simply means that I'm missing a .lib from my ... I tried compiling this ... both with and without default libraries with the same result. ...
    (microsoft.public.dotnet.languages.vc)
  • Compq Visual Fortran and MPICH2
    ... I'm trying to compile a Fortran 90 code with Compaq Visual ... when compiling on my PC ... Deleting intermediate files and output files for project 'HELMHOLTZ - ... mod_mpi.obj: error LNK2001: unresolved external symbol ...
    (comp.parallel.mpi)
  • Re: Static vars without using a var? [S~N for all HP48/49/50, variable "hiding"]
    ... and is a command in the built-in "Development Library" ... recognized for proper compiling and progam editing ... before compiling or editing programs. ...
    (comp.sys.hp48)