age...@andrewpetermarlow.co.uk
unread,Jan 7, 2013, 4:54:23 AM1/7/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-...@list.isis.vanderbilt.edu
Subject: [linking errors for IDL-associated app lib]: [Missing inlined string function symbols from ACE_OS]
ACE VERSION: 6.1.6
HOST MACHINE and OPERATING SYSTEM:
MS-Windows version 7, 64 bit.
Version of Winsock is unknown.
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
Compiler is Visual Studio 10 version 10.0.30319.1
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
#include "ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
include $(ACE_ROOT)/include/makeinclude/platform_win32_msvc.GNU
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
I am not using MPC, I am using the Visual Studio 10 solution provided,
TAO_ACE_vc10.sln
AREA/CLASS/EXAMPLE AFFECTED:
My application library fails to link when building in debug mode.
The library just contains the code emitted by the TAO IDL compiler
for the IDL files I have in my application.
DOES THE PROBLEM AFFECT:
COMPILATION? No
LINKING? Yes
EXECUTION? No
OTHER (please specify)?
[Please indicate whether ACE, your application, or both are affected.]
ACE and TAO are fine, but my application library fails to link.
SYNOPSIS:
I have an application library which just consists of the code generated
by the TAO IDL compiler for the IDL that I have. This library builds fine
in release mode but it fails in debug mode with missing symbols.
All the missing symbols are from ACE_OS and look like string and memory
functions like strcmp, memset etc.
DESCRIPTION:
I get the link error LNK2019 from Visual Studio 10 when trying to link
my application library in debug mode. The library just contains the code
emitted by the TAO IDL compiler for my application.
Output from the linker is shown below.
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl ACE_OS::memset(void *,int,unsigned int)" (__imp_?memset@ACE_OS@@YAPAXPAXHI@Z) referenced in function "public: __thiscall CsMyLibrary::CalculationResult::CalculationResult(void)" (??0CalculationResult@CsMyLibrary@@QAE@XZ)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * __cdecl ACE_OS::memset(void *,int,unsigned int)" (__imp_?memset@ACE_OS@@YAPAXPAXHI@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsMyLibraryS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z) referenced in function "public: virtual bool __thiscall CsMyLibrary::Manager::_is_a(char const *)" (?_is_a@Manager@CsMyLibrary@@UAE_NPBD@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsMyLibraryLogS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strcmp(char const *,char const *)" (__imp_?strcmp@ACE_OS@@YAHPBD0@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned short)" (__imp_??6@YA_NAAVTAO_OutputCDR@@G@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::Date const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUDate@CsMyLibrary@@@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned short &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAG@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::Date &)" (??5@YA_NAAVTAO_InputCDR@@AAUDate@CsMyLibrary@@@Z)
1>CsMyLibraryS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::Time const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUTime@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,unsigned int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@I@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::Time &)" (??5@YA_NAAVTAO_InputCDR@@AAUTime@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,unsigned int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAI@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,double)" (__imp_??6@YA_NAAVTAO_OutputCDR@@N@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::DateValuePair const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUDateValuePair@CsMyLibrary@@@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,double)" (__imp_??6@YA_NAAVTAO_OutputCDR@@N@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,double)" (__imp_??6@YA_NAAVTAO_OutputCDR@@N@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,double &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAN@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::DateValuePair &)" (??5@YA_NAAVTAO_InputCDR@@AAUDateValuePair@CsMyLibrary@@@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,double &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAN@Z)
1>CsMyLibraryS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::InterestingObjectAttribute const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUInterestingObjectAttribute@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,char const *)" (__imp_??6@YA_NAAVTAO_OutputCDR@@PBD@Z)
1>CsMyLibraryS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::InterestingObjectAttribute &)" (??5@YA_NAAVTAO_InputCDR@@AAUInterestingObjectAttribute@CsMyLibrary@@@Z)
1>CsMyLibraryLogS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,char * &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAPAD@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,short)" (__imp_??6@YA_NAAVTAO_OutputCDR@@F@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::RepriceSensitivityData const &)" (??6@YA_NAAVTAO_OutputCDR@@ABURepriceSensitivityData@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,short)" (__imp_??6@YA_NAAVTAO_OutputCDR@@F@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,short)" (__imp_??6@YA_NAAVTAO_OutputCDR@@F@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,short &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAF@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::RepriceSensitivityData &)" (??5@YA_NAAVTAO_InputCDR@@AAURepriceSensitivityData@CsMyLibrary@@@Z)
1>CsMyLibraryLogS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,short &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAF@Z)
1>ErrorC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,short &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAF@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class ACE_OutputCDR &,struct ACE_OutputCDR::from_boolean)" (__imp_??6@YA_NAAVACE_OutputCDR@@Ufrom_boolean@0@@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::PLStripData const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUPLStripData@CsMyLibrary@@@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class ACE_OutputCDR &,struct ACE_OutputCDR::from_boolean)" (__imp_??6@YA_NAAVACE_OutputCDR@@Ufrom_boolean@0@@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class ACE_OutputCDR &,struct ACE_OutputCDR::from_boolean)" (__imp_??6@YA_NAAVACE_OutputCDR@@Ufrom_boolean@0@@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class ACE_OutputCDR &,struct ACE_OutputCDR::from_boolean)" (__imp_??6@YA_NAAVACE_OutputCDR@@Ufrom_boolean@0@@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class ACE_InputCDR &,struct ACE_InputCDR::to_boolean)" (__imp_??5@YA_NAAVACE_InputCDR@@Uto_boolean@0@@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::PLStripData &)" (??5@YA_NAAVTAO_InputCDR@@AAUPLStripData@CsMyLibrary@@@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class ACE_InputCDR &,struct ACE_InputCDR::to_boolean)" (__imp_??5@YA_NAAVACE_InputCDR@@Uto_boolean@0@@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class ACE_InputCDR &,struct ACE_InputCDR::to_boolean)" (__imp_??5@YA_NAAVACE_InputCDR@@Uto_boolean@0@@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class ACE_InputCDR &,struct ACE_InputCDR::to_boolean)" (__imp_??5@YA_NAAVACE_InputCDR@@Uto_boolean@0@@Z)
1>CsSomethingBlahServerC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@H@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@H@Z) referenced in function "bool __cdecl operator<<(class TAO_OutputCDR &,struct CsMyLibrary::HierarchyQuery::Hierarchy const &)" (??6@YA_NAAVTAO_OutputCDR@@ABUHierarchy@HierarchyQuery@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@H@Z)
1>CsMyLibraryLogS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@H@Z)
1>CsMyLibraryReportC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator<<(class TAO_OutputCDR &,int)" (__imp_??6@YA_NAAVTAO_OutputCDR@@H@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAH@Z)
1>CsMyLibraryC.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAH@Z) referenced in function "bool __cdecl operator>>(class TAO_InputCDR &,struct CsMyLibrary::HierarchyQuery::Hierarchy &)" (??5@YA_NAAVTAO_InputCDR@@AAUHierarchy@HierarchyQuery@CsMyLibrary@@@Z)
1>CsMyLibraryLogC.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAH@Z)
1>CsMyLibraryLogS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAH@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl operator>>(class TAO_InputCDR &,int &)" (__imp_??5@YA_NAAVTAO_InputCDR@@AAH@Z)
1>CsMyLibraryLogS.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strncmp(char const *,char const *,unsigned int)" (__imp_?strncmp@ACE_OS@@YAHPBD0I@Z) referenced in function "public: virtual struct TAO_operation_db_entry const * __thiscall TAO_CsMyLibraryLog_Session_Perfect_Hash_OpTable::lookup(char const *,unsigned int)" (?lookup@TAO_CsMyLibraryLog_Session_Perfect_Hash_OpTable@@UAEPBUTAO_operation_db_entry@@PBDI@Z)
1>CsMyLibraryReportS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strncmp(char const *,char const *,unsigned int)" (__imp_?strncmp@ACE_OS@@YAHPBD0I@Z)
1>CsMyLibraryS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strncmp(char const *,char const *,unsigned int)" (__imp_?strncmp@ACE_OS@@YAHPBD0I@Z)
1>CsSomethingBlahServerS.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ACE_OS::strncmp(char const *,char const *,unsigned int)" (__imp_?strncmp@ACE_OS@@YAHPBD0I@Z)
1>.\MyLibraryd.dll : fatal error LNK1120: 17 unresolved externals
1>
1>Build FAILED.
I have seen other people report similar problems to this over the years.
Responses have suggested that it might be some sort of problem with the way
inlining is done. Unfortunately, that is not much to go on.
REPEAT BY:
I created the VS solution using an MPC file, as below:-
project(MyLibrary) {
staticname =
sharedname = MyLibrary
includes += $(BLD)
includes += $(ACE_ROOT)
includes += $(ACE_ROOT)/TAO
libpaths += $(ACE_ROOT)/lib
lit_libs += TAO_CosNaming TAO_PortableServer TAO_AnyTypeCode TAO ACE
Source_files {
*.cpp
}
Note that the MPC above does not containing anything telling it how to
compile the IDL. I do that by hand and then run MPC. The IDL compile
line I use is:
tao_idl -I . -hc C.h -hs S.h -cs C.cpp -ss S.cpp -aw -o . <filename>
SAMPLE FIX/WORKAROUND:
None that I am aware of.