Re: unresolved external error



Hi Doug,
i solved the error. The /Zc:wchar_t option setting in release mode is the
problem.Thanks a lot. Thanks to all.
-karimulla.

"karim" wrote:

Hi Doug,

"Doug Harrison [MVP]" wrote:

On Mon, 18 Jun 2007 21:45:01 -0700, karim <karim@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

I understood that the above case is my actual probelm,but i didn't get how
to resolve in your explanation. can you please elobrate the solution for this.

So I would make sure I've deleted
everything and rebuild totally from scratch.

Did you try that?
yes, i tried.
If so, and you're still having the problem, look at all
your BuildLog.htm files and see if there is inconsistent /Zc:wchar_t option
usage.
yes,it seems that there is an inconsistency in the above option. Actually i
have 3 projects in my workspace, those are SimAPI,SimWFP, and Simcdm. i am
tring to compile Simcdm and this is dependent on remaining two projects.i
have checked all of the three project properties->configuration
properties->c/c++->Language->Treat wchar_t as built in type and it is set as
"yes" for all three projects.But still i didn't get how to solve this issue
as i am new to vc++:-). i am posting snapsnots of Debug and release build
logs of all 3 projects and the option /Zc:wchar_t is there in SimWFP release
build but not in any other builts.
*********************************************************
Build Log Rebuild started: Project: SimAPI, Configuration: Debug|Win32
Command Lines Creating temporary file
"c:\TestSandBox\SimAPI\Debug\RSP0000012283004.rsp" with contents
[
/Od /I "." /I ".\res" /I ".\include" /I "C:\Program Files\NCR APTRA\Problem
Determination Collection" /D "SIMAPI_LIB" /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_MBCS" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE" /Gm /EHsc /RTC1 /MDd /Zp1
/Yc"stdafx.h" /Fp".\Debug/SimAPI.pch" /Fo".\Debug/" /Fd".\Debug/"
/FR".\Debug\\" /W3 /c /Zi /Gz /TP .\StdAfx.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimAPI\Debug\RSP0000012283004.rsp /nologo /errorReport:prompt"
Creating temporary file "c:\TestSandBox\SimAPI\Debug\RSP0000022283004.rsp"
with contents
[
/Od /I "." /I ".\res" /I ".\include" /I "C:\Program Files\NCR APTRA\Problem
Determination Collection" /D "SIMAPI_LIB" /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_MBCS" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE" /Gm /EHsc /RTC1 /MDd /Zp1
/Yu"stdafx.h" /Fp".\Debug/SimAPI.pch" /Fo".\Debug/" /Fd".\Debug/"
/FR".\Debug\\" /W3 /c /Zi /Gz /TP .\source\SimXFSVersion.cpp

.\source\SimTrace.cpp
.................
]
Creating command line "cl.exe
@c:\TestSandBox\SimAPI\Debug\RSP0000022283004.rsp /nologo /errorReport:prompt"
Creating command line "rc.exe /d "_DEBUG" /d "_VC80_UPGRADE=0x0600" /d
"_AFXDLL" /d "_UNICODE" /d "UNICODE" /l 0x809 /I "res"
/fo".\Debug/SimAPI.res" .\res\SimAPI.rc"
Creating temporary file "c:\TestSandBox\SimAPI\Debug\RSP0000032283004.rsp"
with contents
[
/OUT:".\Debug\SimAPI.lib" .\Debug\DBCompacter.obj
.........................
.\Debug\StdAfx.obj
]
Creating command line "lib.exe
@c:\TestSandBox\SimAPI\Debug\RSP0000032283004.rsp /NOLOGO"
Creating temporary file "c:\TestSandBox\SimAPI\Debug\RSP0000042283004.rsp"
with contents
[
/o ".\Debug/SimAPI.bsc"
...............................
.\Debug\StdAfx.sbr
]
Creating command line "bscmake.exe
@c:\TestSandBox\SimAPI\Debug\RSP0000042283004.rsp /nologo"
****************************************************
Build Log Rebuild started: Project: SimAPI, Configuration: Release|Win32
Command Lines Creating temporary file
"c:\TestSandBox\SimAPI\Release\RSP0000052283424.rsp" with contents
[
/Od /I "." /I ".\res" /I ".\include" /I "C:\Program Files\NCR APTRA\Problem
Determination Collection" /I "..\..\XFS 2 SDK" /D "SIMAPI_LIB" /D "WIN32" /D
"NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE" /FD /EHsc /MD /Zp1
/Yc"stdafx.h" /Fp".\Release/SimAPI.pch" /Fo".\Release/" /Fd".\Release/" /W3
/c /Gz /TP .\StdAfx.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimAPI\Release\RSP0000052283424.rsp /nologo
/errorReport:prompt"
Creating temporary file "c:\TestSandBox\SimAPI\Release\RSP0000062283424.rsp"
with contents
[
/Od /I "." /I ".\res" /I ".\include" /I "C:\Program Files\NCR APTRA\Problem
Determination Collection" /I "..\..\XFS 2 SDK" /D "SIMAPI_LIB" /D "WIN32" /D
"NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE" /FD /EHsc /MD /Zp1
/Yu"stdafx.h" /Fp".\Release/SimAPI.pch" /Fo".\Release/" /Fd".\Release/" /W3
/c /Gz /TP .\source\SimXFSVersion.cpp

.\source\SimTrace.cpp
.......................................................
.\source\DBCompacter.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimAPI\Release\RSP0000062283424.rsp /nologo
/errorReport:prompt"
Creating command line "rc.exe /d "NDEBUG" /d "_VC80_UPGRADE=0x0600" /d
"_AFXDLL" /d "_UNICODE" /d "UNICODE" /l 0x809 /I "res"
/fo".\Release/SimAPI.res" .\res\SimAPI.rc"
Creating temporary file "c:\TestSandBox\SimAPI\Release\RSP0000072283424.rsp"
with contents
[
/OUT:".\Release\SimAPI.lib" .\Release\DBCompacter.obj

.\Release\picture.obj
..................................................
.\Release\StdAfx.obj
]
Creating command line "lib.exe
@c:\TestSandBox\SimAPI\Release\RSP0000072283424.rsp /NOLOGO"
*******************************************************
Build Log Rebuild started: Project: SimWFP, Configuration: Debug|Win32
Command Lines Creating temporary file
"c:\TestSandBox\SimWFP\Debug\RSP0000082283308.rsp" with contents
[
/Od /I "..\help" /I "..\SimAPI\include" /I ".\include" /I "C:\Program
Files\NCR APTRA\Problem Determination Collection" /D "SIMAPI_INTERNALS" /D
"WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D
"_WIN32_WINNT=0x0400" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE"
/Gm /EHsc /RTC1 /MDd /Zp1 /Yc"stdafx.h" /Fp".\Debug/SimWFP.pch" /Fo".\Debug/"
/Fd".\Debug/" /FR".\Debug\\" /W3 /c /Zi /Gz /TP .\StdAfx.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimWFP\Debug\RSP0000082283308.rsp /nologo /errorReport:prompt"
Creating temporary file "c:\TestSandBox\SimWFP\Debug\RSP0000092283308.rsp"
with contents
[
/Od /I "..\help" /I "..\SimAPI\include" /I ".\include" /I "C:\Program
Files\NCR APTRA\Problem Determination Collection" /D "SIMAPI_INTERNALS" /D
"WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D
"_WIN32_WINNT=0x0400" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE"
/Gm /EHsc /RTC1 /MDd /Zp1 /Yu"stdafx.h" /Fp".\Debug/SimWFP.pch" /Fo".\Debug/"
/Fd".\Debug/" /FR".\Debug\\" /W3 /c /Zi /Gz /TP .\source\SimWFPTracer.cpp

.\source\SimWFPConst.cpp
........................................
.\source\simblankview.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimWFP\Debug\RSP0000092283308.rsp /nologo /errorReport:prompt"
Creating command line "rc.exe /d "_DEBUG" /d "_VC80_UPGRADE=0x0600" /d
"_AFXDLL" /d "_UNICODE" /d "UNICODE" /l 0x809 /I "temp_res"
/fo".\Debug/SimWFP.res" .\temp_res\SimWFP.rc"
Creating temporary file "c:\TestSandBox\SimWFP\Debug\RSP00000A2283308.rsp"
with contents
[
/OUT:".\Debug\SimWFP.lib" .\Debug\simblankview.obj

.\Debug\simcommandconfig.obj
................................
.\Debug\StdAfx.obj
]
Creating command line "lib.exe
@c:\TestSandBox\SimWFP\Debug\RSP00000A2283308.rsp /NOLOGO"
Creating temporary file "c:\TestSandBox\SimWFP\Debug\RSP00000B2283308.rsp"
with contents
[
/o ".\Debug/SimWFP.bsc"

.\Debug\simblankview.sbr
................................................
.\Debug\StdAfx.sbr
]
Creating command line "bscmake.exe
@c:\TestSandBox\SimWFP\Debug\RSP00000B2283308.rsp /nologo"
*********************************************************
Build Log Rebuild started: Project: SimWFP, Configuration: Release|Win32
Command Lines Creating temporary file
"c:\TestSandBox\SimWFP\Release\RSP00000C2282708.rsp" with contents
[
/Od /I "..\help" /I "..\SimAPI\include" /I ".\include" /I "C:\Program
Files\NCR APTRA\Problem Determination Collection" /D "SIMAPI_INTERNALS" /D
"WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D
"_WIN32_WINNT=0x0400" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE"
/FD /EHsc /MD /Zp1 /Zc:wchar_t- /Yc"stdafx.h" /Fp".\Release/SimWFP.pch"
/Fo".\Release/" /Fd".\Release/" /W3 /c /Gz /TP .\StdAfx.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimWFP\Release\RSP00000C2282708.rsp /nologo
/errorReport:prompt"
Creating temporary file "c:\TestSandBox\SimWFP\Release\RSP00000D2282708.rsp"
with contents
[
/Od /I "..\help" /I "..\SimAPI\include" /I ".\include" /I "C:\Program
Files\NCR APTRA\Problem Determination Collection" /D "SIMAPI_INTERNALS" /D
"WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D
"_WIN32_WINNT=0x0400" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_UNICODE"
/FD /EHsc /MD /Zp1 /Zc:wchar_t- /Yu"stdafx.h" /Fp".\Release/SimWFP.pch"
/Fo".\Release/" /Fd".\Release/" /W3 /c /Gz /TP .\source\SimWFPTracer.cpp

.\source\SimWFPConst.cpp
..................................................
.\source\simblankview.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\SimWFP\Release\RSP00000D2282708.rsp /nologo
/errorReport:prompt"
Creating command line "rc.exe /d "NDEBUG" /d "_VC80_UPGRADE=0x0600" /d
"_AFXDLL" /d "_UNICODE" /d "UNICODE" /l 0x809 /I "temp_res"
/fo".\Release/SimWFP.res" .\temp_res\SimWFP.rc"
Creating temporary file "c:\TestSandBox\SimWFP\Release\RSP00000E2282708.rsp"
with contents
[
/OUT:".\Release\SimWFP.lib" .\Release\simblankview.obj

.\Release\simcommandconfig.obj
................................................
.\Release\StdAfx.obj
]
Creating command line "lib.exe
@c:\TestSandBox\SimWFP\Release\RSP00000E2282708.rsp /NOLOGO"
**********************************************************
Build Log Rebuild started: Project: simcdm, Configuration: Release|Win32
Command Lines Creating temporary file
"c:\TestSandBox\simcdm\Release\RSP00000F2282152.rsp" with contents
[
/Od /I ".." /I "..\SimWFP\include" /I ".\Generic\Include" /I ".\cdm00000" /I
".\ULTLBX\include" /I "." /I ".\help" /I "..\SimAPI\include" /I ".\include"
/I ".\res" /I "C:\Program Files\NCR APTRA\Problem Determination Collection"
/D "NDEBUG" /D "_WIN32_IE=0x0500" /D "_MBCS" /D "CDM_INCLUDES" /D "WIN32" /D
"_WINDOWS" /D "_USRDLL" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_AFX_NO_DAO_SUPPORT" /D "_AFX_NO_DB_SUPPORT" /D "_VC80_UPGRADE=0x0600" /D
"_WINDLL" /D "_AFXDLL" /D "_UNICODE" /FD /EHsc /MD /Zp1 /Yc"stdafx.h"
/Fp".\Release/simcdm.pch" /Fo".\Release/" /Fd".\Release/" /FR".\Release/" /W3
/c /Gz /TP .\StdAfx.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\simcdm\Release\RSP00000F2282152.rsp /nologo
/errorReport:prompt"
Creating temporary file "c:\TestSandBox\simcdm\Release\RSP0000102282152.rsp"
with contents
[
/Od /I ".." /I "..\SimWFP\include" /I ".\Generic\Include" /I ".\cdm00000" /I
".\ULTLBX\include" /I "." /I ".\help" /I "..\SimAPI\include" /I ".\include"
/I ".\res" /I "C:\Program Files\NCR APTRA\Problem Determination Collection"
/D "NDEBUG" /D "_WIN32_IE=0x0500" /D "_MBCS" /D "CDM_INCLUDES" /D "WIN32" /D
"_WINDOWS" /D "_USRDLL" /D "UNICODE" /D "_WIN32_WINNT=0x0400" /D
"_AFX_NO_DAO_SUPPORT" /D "_AFX_NO_DB_SUPPORT" /D "_VC80_UPGRADE=0x0600" /D
"_WINDLL" /D "_AFXDLL" /D "_UNICODE" /FD /EHsc /MD /Zp1 /Yu"stdafx.h"
/Fp".\Release/simcdm.pch" /Fo".\Release/" /Fd".\Release/" /FR".\Release/" /W3
/c /Gz /TP .\Generic\Source\Xstatus4.cpp

.\Generic\Source\OXMaskedEdit.cpp
..........................................
.\Generic\Source\ReadMixTables.cpp
]
Creating command line "cl.exe
@c:\TestSandBox\simcdm\Release\RSP0000102282152.rsp /nologo
/errorReport:prompt"
Creating temporary file "c:\TestSandBox\simcdm\Release\RSP0000112282152.rsp"
with contents
[
/Od /I "..\Res" /I ".." /I "..\SimWFP\include" /I ".\Generic\Include" /I
".\cdm00000" /I ".\ULTLBX\include" /I "." /I ".\help" /I "..\SimAPI\include"
/I ".\include" /I ".\res" /I "C:\Program Files\NCR APTRA\Problem
Determination Collection" /D "NDEBUG" /D "_WIN32_IE=0x0500" /D "_MBCS" /D
"CDM_INCLUDES" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "UNICODE" /D
"_WIN32_WINNT=0x0400" /D "_AFX_NO_DAO_SUPPORT" /D "_AFX_NO_DB_SUPPORT" /D
"_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_UNICODE" /FD /EHsc /MD
/Zp1 /Yu"stdafx.h" /Fp".\Release/simcdm.pch" /Fo".\Release/" /Fd".\Release/"
/FR".\Release/" /W3 /c /Gz /TP .\source\simcdmlcupage.cpp

.\source\SimCDMDispenseCP.cpp

......................................
".\Release\Xstatus4.obj"
]
Creating command line "link.exe
@c:\TestSandBox\simcdm\Release\RSP0000122282152.rsp /NOLOGO
/ERRORREPORT:PROMPT"
Creating temporary file "c:\TestSandBox\simcdm\Release\RSP0000132282152.rsp"
with contents
[
/o ".\Release/simcdm.bsc"
.......................................
.\Release\ReadMixTables.sbr
]
Creating command line "bscmake.exe
@c:\TestSandBox\simcdm\Release\RSP0000132282152.rsp /nologo"
***************************************************
Build Log Rebuild started: Project: simcdm, Configuration: Debug|Win32
Command Lines Creating temporary file
"c:\TestSandBox\simcdm\Debug\RSP0000142283548.rsp" with contents
[
/Od /I ".\Generic\Include" /I ".\cdm00000" /I ".\ULTLBX\include" /I "." /I
".\help" /I "..\SimAPI\include" /I ".\include" /I ".\res" /I "C:\Program
Files\NCR APTRA\Problem Determination Collection" /D "CDM_INCLUDES" /D
.



Relevant Pages

  • Re: Question on using /tmp
    ... >temporary file and my code is going to read something out of it. ... Only when I call the command in the form ... But I have to use tmpnam since ... It depends on what kind of security you are trying to implement, ...
    (comp.os.linux.development.apps)
  • Re: unresolved external error
    ... Command Lines Creating temporary file ... Build Log Rebuild started: Project: SimAPI, Configuration: Release|Win32 ...
    (microsoft.public.vc.mfc)
  • Re: IPC::Open2::open2() -- How to pass strings stdin, stdout?
    ... That's what I'm doing now -- writing my stdin to a ... temporary file and getting stdout using backticks. ... Execute a given external program (command). ... print TEMP $stdin; ...
    (comp.lang.perl.misc)
  • Re: Visual Studio 2003 MFC wizard code fails to run
    ... Did you look at your Resource View? ... The phrase "specified image file" implies to me that an image file is ... Creating temporary file "d:\Profiles\shbridges.REST\My Documents ...
    (microsoft.public.vc.mfc)
  • Re: show / copy pre-shared key in plaintext
    ... configured an appropriate tftp-server command. ... When you hard set that within a configuration ... pix uses that to get it's config at every boot. ...
    (comp.dcom.sys.cisco)