Eric Promislow
2013-07-16 17:46:46 UTC
It's been a while since I've been able to build Scite on Windows, but
I'm on a repaved machine,
with fewer versions of VS/VC++ sitting around. Scintilla builds fine
for Komodo, but when I try to
build Scite I get a linker error in scite.mak -- can't resolve _main.
Here's the log:
% cd scintilla-versions\scite333\scintilla\win32
% nmake -f scintilla.mak
<no problems>
% cd ..\..\scite\win32
% nmake -f scite.mak
<no problems until the linking stage:>
link -OPT:REF -LTCG -DEBUG -OUT:..\bin\SciTE.exe SciTEBase.obj \
FileWorker.obj Cookie.obj Credits.obj FilePath.obj JobQueue.obj \
SciTEBuffers.obj SciTEIO.obj Exporters.obj PropSetFile.obj \
StringHelpers.obj StringList.obj SciTEProps.obj Utf8_16.obj \
SciTEWin.obj SciTEWinBar.obj SciTEWinDlg.obj IFaceTable.obj \
DirectorExtension.obj MultiplexExtension.obj StyleWriter.obj \
GUIWin.obj UniqueInstance.obj WinMutex.obj LuaExtension.obj \
lapi.obj lcode.obj ldebug.obj ldo.obj ldump.obj lfunc.obj lgc.obj \
llex.obj lmem.obj lobject.obj lopcodes.obj lparser.obj \
state.obj lstring.obj ltable.obj ltm.obj lundump.obj lvm.obj \
lzio.obj lauxlib.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj \
ltablib.obj lstrlib.obj loadlib.obj loslib.obj linit.obj \
SciTERes.res KERNEL32.lib USER32.lib GDI32.lib MSIMG32.lib \
COMDLG32.lib COMCTL32.lib ADVAPI32.lib IMM32.lib SHELL32.LIB \
OLE32.LIB UXTHEME.LIB
Microsoft (R) Incremental Linker Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
/SUBSYSTEM:CONSOLE,5.01
Creating library ..\bin\SciTE.lib and object ..\bin\SciTE.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
..\bin\SciTE.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
=======================================================
Here are the relevant env vars:
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set inc | tr ; \n
INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Include
C:\Program Files (x86)\Windows Kits\8.0\\include
C:\Program Files (x86)\Windows Kits\8.0\\include\atl
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE
C:\Program Files (x86)\Windows Kits\8.0\include\shared
C:\Program Files (x86)\Windows Kits\8.0\include\um
C:\Program Files (x86)\Windows Kits\8.0\include\winrt
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set lib | tr ; \n
LIB=C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Lib
C:\Program Files (x86)\Windows Kits\8.0\\lib
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB
C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86
LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB
C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLib
s\11.0\References\CommonConfiguration\neutral
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set path | tr ; \n
PATH=
C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Bin
C:\Program Files (x86)\Windows Kits\8.0\\bin
C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\CommonExtension\Microsoft\TestWindow
C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB\Deploy
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCPackages
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
d:\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
d:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn
C:\Program Files\Microsoft\Web Platform Installer\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\
C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
// Eric
I'm on a repaved machine,
with fewer versions of VS/VC++ sitting around. Scintilla builds fine
for Komodo, but when I try to
build Scite I get a linker error in scite.mak -- can't resolve _main.
Here's the log:
% cd scintilla-versions\scite333\scintilla\win32
% nmake -f scintilla.mak
<no problems>
% cd ..\..\scite\win32
% nmake -f scite.mak
<no problems until the linking stage:>
link -OPT:REF -LTCG -DEBUG -OUT:..\bin\SciTE.exe SciTEBase.obj \
FileWorker.obj Cookie.obj Credits.obj FilePath.obj JobQueue.obj \
SciTEBuffers.obj SciTEIO.obj Exporters.obj PropSetFile.obj \
StringHelpers.obj StringList.obj SciTEProps.obj Utf8_16.obj \
SciTEWin.obj SciTEWinBar.obj SciTEWinDlg.obj IFaceTable.obj \
DirectorExtension.obj MultiplexExtension.obj StyleWriter.obj \
GUIWin.obj UniqueInstance.obj WinMutex.obj LuaExtension.obj \
lapi.obj lcode.obj ldebug.obj ldo.obj ldump.obj lfunc.obj lgc.obj \
llex.obj lmem.obj lobject.obj lopcodes.obj lparser.obj \
state.obj lstring.obj ltable.obj ltm.obj lundump.obj lvm.obj \
lzio.obj lauxlib.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj \
ltablib.obj lstrlib.obj loadlib.obj loslib.obj linit.obj \
SciTERes.res KERNEL32.lib USER32.lib GDI32.lib MSIMG32.lib \
COMDLG32.lib COMCTL32.lib ADVAPI32.lib IMM32.lib SHELL32.LIB \
OLE32.LIB UXTHEME.LIB
Microsoft (R) Incremental Linker Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
/SUBSYSTEM:CONSOLE,5.01
Creating library ..\bin\SciTE.lib and object ..\bin\SciTE.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
..\bin\SciTE.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
=======================================================
Here are the relevant env vars:
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set inc | tr ; \n
INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Include
C:\Program Files (x86)\Windows Kits\8.0\\include
C:\Program Files (x86)\Windows Kits\8.0\\include\atl
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE
C:\Program Files (x86)\Windows Kits\8.0\include\shared
C:\Program Files (x86)\Windows Kits\8.0\include\um
C:\Program Files (x86)\Windows Kits\8.0\include\winrt
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set lib | tr ; \n
LIB=C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Lib
C:\Program Files (x86)\Windows Kits\8.0\\lib
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB
C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86
LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB
C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLib
s\11.0\References\CommonConfiguration\neutral
D:\Users\ericp\lab\scintilla-versions\scite333\scite\win32>set path | tr ; \n
PATH=
C:\Program Files (x86)\Microsoft SDKs\Windows\7.1A\Bin
C:\Program Files (x86)\Windows Kits\8.0\\bin
C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\CommonExtension\Microsoft\TestWindow
C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB\Deploy
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\VCPackages
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
d:\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
d:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn
C:\Program Files\Microsoft\Web Platform Installer\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\
C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
// Eric
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.