• RELEVANCY SCORE 3.50

    DB:3.50:Std. Code Direct Deployment ? fp





    Hi,

    We are in NW2004S SP11, JDI is SP11, NWDS IDE 7.0.0.6 or NWDS IDE 7.0.0.11

    We want to Hide a small button or edit a label (minor label Edit) on a Std. Webdynpro code. Unfortunately from JDI it is not working so we decided to do Direct Deployment and Import the Code in to our local NWDS IDE.

    After we imported the code to NWDS and edited the label and clicked on Implemetation various Class path Error's are seen. Even if i dnt do any changes in the code still inconsistensies are seen. So ii cant deploy this code.

    PLease help how do i get rid of these errors and use direct deployment of my webdynpro code.

    DB:3.50:Std. Code Direct Deployment ? fp


    If you cannot see which JAR files are missing from the errors, then you need to download and install JAR Class Finder. More info here a href="http://www.alphaworks.ibm.com/tech/jarclassfinder"http://www.alphaworks.ibm.com/tech/jarclassfinder/a

    Once you know which JARs are missing you can add them by right clicking your project Properties Java Build Path. And then adding the missing JARs. Don't forget to also remove the paths to the missing files.

    Anton

  • RELEVANCY SCORE 3.09

    DB:3.09:Hdtv Elevation Azimuths xp




    Thinking about changing from Std Direct TV to Direct HDTV.Need to know elevation azimuths for HDTV at zip code 98607 to see if I have clearnace with trees. thanks

    DB:3.09:Hdtv Elevation Azimuths xp

    Thinking about changing from Std Direct TV to Direct HDTV.Need to know elevation azimuths for HDTV at zip code 98607 to see if I have clearnace with trees. thanks

  • RELEVANCY SCORE 2.97

    DB:2.97:Studio 12.4 Beta, No Line Number In Error Message 7x




    HiI just tried to build cppcheck-1.64, and I got the following error.gmake CXX=CC CXXFLAGS="-O2 -DNDEBUG +w"CC -Ilib -Iexternals -Iexternals/tinyxml -O2 -DNDEBUG +w -std=c++0x -c -o lib/checkbufferoverrun.o lib/checkbufferoverrun.cpp"lib/checkbufferoverrun.cpp", Error: Constexpr function's return type 'std::pairstd::string, unsigned' is not a literal type."/opt/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/bits/stl_map.h", line 472: Where: While instantiating "std::make_pairstd::string, unsigned(std::string , unsigned)"."/opt/SolarisStudio12.4-beta_mar14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.7.2/bits/stl_map.h", line 472: Where: Instantiated from non-template code.1 Error(s) detected.gmake: *** [lib/checkbufferoverrun.o] Error 2There's no line number in the error message. I can find some std::maps in the source, but no direct reference to make_pair.(On Solaris 11.1 x86 in case that matters).A+Paul

    DB:2.97:Studio 12.4 Beta, No Line Number In Error Message 7x

    The Beta release has some known problems with missing line numbers in error messages. If you can provide a test case, I can see whether this problem has already been fixed, and if not, file a bug report to ensure it gets attention before final product release.

  • RELEVANCY SCORE 2.95

    DB:2.95:Stl Map - Constant Key Value - What Is The Issue? j8


    Hi,

    % cat test_stl_map_const.cpp
    #include map
    #include string
    #include utility

    main()
    {
    std::mapconst std::string, const char * childParentMap;
    const std::string dd="Qrio";
    const char *cconst="test";
    childParentMap.insert(std::make_pair(dd,cconst));
    }

    %CC -V
    CC: Sun C++ 5.8 Patch 121017-08 2006/12/06

    %CC -library=rwtools7_std xtarget=ultra -xarch=v9 test_stl_map_const.cpp -o tmp.o

    "..snip.../include/CC/Cstd/./map", line 251: Error: Multiple declaration for std::mapconst std::string, const char*, std::lessconst std::string, std::allocatorstd::pairconst std::string, const char*::insert(const std::pairconst std::string, const char*).
    "test_stl_map_const.cpp", line 6: Where: While specializing "std::mapconst std::string, const char*, std::lessconst std::string, std::allocatorstd::pairconst std::string, const char*".
    "test_stl_map_const.cpp", line 6: Where: Specialized in non-template code.
    "test_stl_map_const.cpp", line 9: Error: Could not find a match for std::mapconst std::string, const char*, std::lessconst std::string, std::allocatorstd::pairconst std::string, const char*::insert(const std::string, const char*) needed in main().
    2 Error(s) detected.When I remove the constant from key of map everything works fine.

    p
    #include map
    #include string
    #include utility

    main()
    {
    //std::mapconst std::string, const char * childParentMap;
    std::mapstd::string, const char * childParentMap;
    //const std::string dd="Qrio";
    std::string dd="Qrio";
    const char *cconst="test";
    childParentMap.insert(std::make_pair(dd,cconst));
    }

    % CC -library=rwtools7_std -xtarget=ultra -xarch=v9 test_stl_map_const.cpp -o tmp.o
    no errorWhy shouldn't key be constant type?

    Thanks,
    Qrio

    DB:2.95:Stl Map - Constant Key Value - What Is The Issue? j8

    The deficiencies of the default libCstd are documented in the C++ ReadMe in questions D5 and D6:
    [http://developers.sun.com/sunstudio/documentation/ss12u1/mr/READMEs/c++_faq.html#LibComp3]

    Unfortunately, if you use the -library=rwtools7_std option, you cannot use an alternative C++ Standard library, like STLport or Apache stdcxx. The RW Tools.h++ library is provided to support very old programs, dating from before the 1998 C++ Standard. That library is obsolete and little support is provided for it. The functionality (but with different APIs) of Tools.h++ is provided by the C++ Standard Library or by add-on libraries like BOOST [http://www.boost.org/]. I recommend phasing out all uses of Tools.h++.

  • RELEVANCY SCORE 2.95

    DB:2.95:Re: Icons Are Not Displayed, Weblogic Application Server 11 Network: Cache Entr m7


    I created Icons folder in Java folder. Moved myicons.jar to Icons folder
    Change my UI_CONS parameter to point to the icons folder. also changed registery.dat

    Regisrery.dat
    default.icons.iconpath=Icons/

    UI_ICONS
    C:\Oracle\Middleware\as_1\reports\plugins\resource;C:\Oracle\Middleware\as_1\forms\java\Icons

    Still I get Cached Entry not found in the java console.

    Java Plug-in 1.6.0_12
    Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator

    ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to n
    ----------------------------------------------------

    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value null
    security: property package.definition new value com.sun.javaws
    security: property package.definition value com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@10ef90c
    network: Cache entry found [url: http://musetest/forms/java/frmwebutil.jar, version: null]
    network: Connecting http://musetest/forms/java/frmwebutil.jar with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: ResponseCode for http://musetest/forms/java/frmwebutil.jar : 304
    network: Encoding for http://musetest/forms/java/frmwebutil.jar : null
    network: Disconnect connection to http://musetest/forms/java/frmwebutil.jar
    network: Cache entry found [url: http://musetest/forms/java/frmall.jar, version: null]
    network: Connecting http://musetest/forms/java/frmall.jar with proxy=DIRECT
    network: ResponseCode for http://musetest/forms/java/frmall.jar : 304
    network: Encoding for http://musetest/forms/java/frmall.jar : null
    network: Disconnect connection to http://musetest/forms/java/frmall.jar
    security: Loading Root CA certificates from C:\Program Files\Java\jre1.6.0_12\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files\Java\jre1.6.0_12\lib\security\cacerts
    security: Loading Deployment certificates from C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Loading certificates from Internet Explorer TrustedPublisher certificate store
    security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if certificate is in Internet Explorer TrustedPublisher certificate store
    security: User has granted the priviledges to the code for this session only
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 159152 us, pluginInit dt 2683929 us, TotalTime: 2843081 us
    basic: Applet initialized
    basic: Loading Java Applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@10ef90c
    basic: Applet made visible
    basic: Starting applet
    Loaded image: jar:http://musetest/forms/java/frmall.jar!/oracle/forms/icons/bgnd.gif
    Forms Session ID is formsapp.2
    network: Cache entry found [url: http://musetest/forms/registry/oracle/forms/registry/Registry.dat, version: null]
    network: Connecting http://musetest/forms/registry/oracle/forms/registry/Registry.dat with proxy=DIRECT
    network: ResponseCode for http://musetest/forms/registry/oracle/forms/registry/Registry.dat : 304
    network: Encoding for http://musetest/forms/registry/oracle/forms/registry/Registry.dat : null
    network: Disconnect connection to http://musetest/forms/registry/oracle/forms/registry/Registry.dat
    network: Cache entry not found [url: http://musetest/forms/registry/oracle/forms/registry/default.dat, version: null]
    network: Connecting http://musetest/forms/registry/oracle/forms/registry/default.dat with proxy=DIRECT
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    network: Connecting http://musetest/forms/frmservlet?config=amrodifsessid=formsapp.2acceptLanguage=en-usifcmd=startsessioniflocale=en-US with proxy=DIRECT
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588?ifcmd=getinfoifhost=Patelifip=169.254.25.129 with proxy=DIRECT
    network: CleanupThread used 59744 us
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer TrustedPublisher certificate store
    security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if certificate is in Deployment session certificate store
    Forms Applet version is 11.1.1.3
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    Loaded image: jar:http://musetest/forms/java/frmall.jar!/oracle/forms/icons/ellipsis.gif
    Loaded image: jar:http://musetest/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    basic: Applet started
    basic: Told clients applet is started
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest/Icons/da_save.gif with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_save.gif
    network: Connecting http://musetest/Icons/da_exp.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_exp.gif
    network: Connecting http://musetest/Icons/da_exp_o.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_exp_o.gif
    network: Connecting http://musetest/Icons/da_print.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_print.gif
    network: Connecting http://musetest/Icons/afinsrw.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/afinsrw.gif
    network: Connecting http://musetest/Icons/da_delet.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_delet.gif
    network: Connecting http://musetest/Icons/da_left.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_left.gif
    network: Connecting http://musetest/Icons/da_first.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_first.gif
    network: Connecting http://musetest/Icons/da_up.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_up.gif
    network: Connecting http://musetest/Icons/da_down.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_down.gif
    network: Connecting http://musetest/Icons/da_first.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_first.gif
    network: Connecting http://musetest/Icons/da_right.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_right.gif
    network: Connecting http://musetest/Icons/da_query.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_query.gif
    network: Connecting http://musetest/Icons/da_summ.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_summ.gif
    network: Connecting http://musetest/Icons/da_cal.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_cal.gif
    network: Connecting http://musetest/Icons/da_calc.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_calc.gif
    network: Connecting http://musetest/Icons/da_zoom.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    Loaded image: http://musetest/Icons/da_zoom.gif
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Connecting http://musetest/forms/lservlet;jsessionid=vM0hPvJL2qPGPNRsQpbJn1byrGG0JCbpfmyNZZ2nk3GTrFY0TFJy!1859446588 with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_zoom.gif, version: null]
    network: Connecting http://musetest/Icons/da_zoom.gif with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_calc.gif, version: null]
    network: Connecting http://musetest/Icons/da_calc.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_cal.gif, version: null]
    network: Connecting http://musetest/Icons/da_cal.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_summ.gif, version: null]
    network: Connecting http://musetest/Icons/da_summ.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_query.gif, version: null]
    network: Connecting http://musetest/Icons/da_query.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_right.gif, version: null]
    network: Connecting http://musetest/Icons/da_right.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_first.gif, version: null]
    network: Connecting http://musetest/Icons/da_first.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_first.gif, version: null]
    network: Connecting http://musetest/Icons/da_first.gif with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_down.gif, version: null]
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest/Icons/da_down.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_down.gif, version: null]
    network: Connecting http://musetest/Icons/da_down.gif with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_up.gif, version: null]
    network: Connecting http://musetest/Icons/da_up.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_up.gif, version: null]
    network: Cache entry not found [url: http://musetest/Icons/da_first.gif, version: null]
    network: Connecting http://musetest/Icons/da_up.gif with proxy=DIRECT
    network: Connecting http://musetest/Icons/da_first.gif with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_left.gif, version: null]
    network: Connecting http://musetest/Icons/da_left.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_left.gif, version: null]
    network: Cache entry not found [url: http://musetest/Icons/da_delet.gif, version: null]
    network: Connecting http://musetest/Icons/da_left.gif with proxy=DIRECT
    network: Connecting http://musetest/Icons/da_delet.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/afinsrw.gif, version: null]
    network: Connecting http://musetest/Icons/afinsrw.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_print.gif, version: null]
    network: Connecting http://musetest/Icons/da_print.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_exp_o.gif, version: null]
    network: Connecting http://musetest/Icons/da_exp_o.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_exp.gif, version: null]
    network: Connecting http://musetest/Icons/da_exp.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_save.gif, version: null]
    network: Connecting http://musetest/Icons/da_save.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://musetest/Icons/da_save.gif, version: null]
    network: Connecting http://musetest/Icons/da_save.gif with proxy=DIRECT
    network: Connecting http://musetest:80/ with proxy=DIRECT

    DB:2.95:Re: Icons Are Not Displayed, Weblogic Application Server 11 Network: Cache Entr m7

    I don't see nothing wrong in your registry.dat configuration
    and at formsweb.cfg a little wrong

    archive=myicons.jar,frmwebutil.jar,frmall.jarshould be

    WebUtilArchive=frmwebutil.jar
    archive=frmall.jar,myicons.jarHamid

  • RELEVANCY SCORE 2.89

    DB:2.89:Error Compiling Std::Make_Pair j8



    Hi Folks,

    This code fair to compile with -std=c++11 but compiles fine without the -std=c++11 switch.

    #include string
    #include iostream
    #include utility
    int main(int argc, char* argv[])
    {
      std::pairint, std::string apair=std::make_pair int, std::string ( 66, "sixty-six" );
    }

    error:/home/michael/programming/compilers/intel/bin/icpc -std=c++11 tt.cpp
    tt.cpp(6): error: no instance of function template "std::make_pair" matches the argument list
                argument types are: (int, const char [10])
        std::pairint, std::string apair=std::make_pair int, std::string ( 66, "sixty-six" );

    /home/michael/programming/compilers/intel/bin/icpc -v
    icpc version 14.0.0 (gcc version 4.8.0 compatibility)

    g++ --version                                                                                                                  
    g++ (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1)        

    This is on Fedora 19 X64

    Enjoy

    michael

    DB:2.89:Error Compiling Std::Make_Pair j8


    well Im definitly not a language lawyer but..

    the code in the message above compiles with clang 3.3, clang trunk and g++ on fedora and msvc 2012 on windows.

    Also this small variant compiles fine with icpc in c++11 mode

    #include string
    #include iostream
    #include utility
    int main(int argc, char* argv[])
    {
      std::string s("sixty six");
      std::pairint, std::string apair=std::make_pair int, std::string ( 66, s.c_str() );
    }

    michael

  • RELEVANCY SCORE 2.85

    DB:2.85:Std Dvr Upgrade To Hd Dvr mx


    Is there a way to transfer recorded shows on a standard Direct TV DVR to an HD Direct TV DVR?

    DB:2.85:Std Dvr Upgrade To Hd Dvr mx

    Is there a way to transfer recorded shows on a standard Direct TV DVR to an HD Direct TV DVR?

  • RELEVANCY SCORE 2.85

    DB:2.85:Move-Constructor, Std::Bind, Std::Move... 9d


    Hi,
    Referring to code-fragment below:
    * The first (direct-call) of FncRValue naturally invokes move-ctor of the Param to my expectation.
    * My disappointment is with the call via function object returned by std::bind. Unfortonutely it goes via Param's regular copyc-tor :-(
    Question is if this is an expected C0x behavior or a defect in VC 2010's implementation?
    Either case, it is quite dissatisfying because i extensively use this mechanisim especially in asyn-task creation and dispatching and copy c-tors that are most of the time avoidable via nice move-semantics now pop up if i play with tr1::functions and bind
    in this way. How can I enjoy move semantics without dropping extremely usefull tr1 function abstraction std::bind's elegancy?
    Needless to say, i am not interested in keeping a copiable reference to parameters as my actual context is async tasks where original paramaters passed disappear after they are stored in schedulers. I have tones of moveable params that i want to avoid copying.
    Thanks in advance.
    muharrem

    struct Param
    {
    Param() {} // default c-tor
    Param(const Param rhs) {} //c-tor
    Param(Param rhs) {} //move-ctor
    //..irrelevant part including move-assignment
    };

    void FncRValue(Param p1)
    {
    }

    void TestBinding()
    {
    Param p1;
    FncRValue(std::move(p1));

    Param p2;
    auto fnc = std::bind(FncRValue, _1);
    fnc(std::move(p2));
    }

    DB:2.85:Move-Constructor, Std::Bind, Std::Move... 9d

    As far as I know, the majority of VC 2010's C0x standard library implementation (including std::bind, std::result_of, etc) is actually just the TR1 implementation using'd into namespace std. This means, std::bind's resulting functors do not support any
    C0x features (such as movability), std::result_of relies on the TR1 result_of protocol rather than using decltype, etc. Presumably this will be addressed in the next release of VC, but there's no harm in submitting a bug report on
    MS Connect in the meantime.

  • RELEVANCY SCORE 2.85

    DB:2.85:Me5a Report Shows Blank Vendor Code ks



    Hi Experts,

    I run Std ME5A report and it usually displays blank code code in many PR line items. In my organisation the POs are created with source-assign (zee tcode) as well as direct creation (without source assign).

    However I could not establish the exact behaviour whether the blank vendor code is displayed to only one particular case. It is not so, the blank vendor code is appearing randomly is any of the cases.

    Kindly advise the needful.

    Regards,

    Ajay

    Mumbai (India)

    DB:2.85:Me5a Report Shows Blank Vendor Code ks


    Please create the Info record for that material in purchase organisation, also maintain the source list and quota arrangement if quota applied. If vendor is fixed it will come automatically in PR.

    Or you can do ME57 assign vendor and then you can do ME59N accordingly.

    Regards

  • RELEVANCY SCORE 2.82

    DB:2.82:C++ Code Still Not Working Help! sz


    Hey guys!
    So heres what I got:

    /* This program calculates the area of a rectangle or square
    Created by Adam Moffat, 12/13/10 */

    #include stdafx.h
    #include iostream
    int main()
    {
    double number;
    std::cout length =;
    std::cin number std::endl;
    std::cout width =;
    std::cin number std::endl;
    std::cout (number*number) std::endl;
    return 0;
    }

  • RELEVANCY SCORE 2.79

    DB:2.79:Possible Bug With Std::Ostringstream pm


    Hi,
     
    Consider the following code:
     
    const char *filename1 = c:\\FramesTest\\frame;
    int i = 10;

    std:stringstream osst;

    osst filename1 i;
    const char *filename2 = osst.str().c_str();
     
     
    It is expected that the value of the variable filename2 shoud be c:\\FramesTest\\frame10.
     
    But when I debug it I got the value :
    -  filename2 0x003B81D8 îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþ  char*
     
    Also, the value of osst is
    c:\FramesTest\frame10ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ 
    the garbage ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ is being concatenated to the string.
     
    How do I make sure that this garbage is not concatenated?
     
    Below a capture of the variable osst:
     
    -           osst      {...}     std::basic_ostringstreamchar,std::char_traitschar,std::allocatorchar
                std::basic_ostreamchar,std::char_traitschar            {...}     std::basic_ostreamchar,std::char_traitschar
    -           _Stringbuffer     {...}     std::basic_stringbufchar,std::char_traitschar,std::allocatorchar
    -           std::basic_streambufchar,std::char_traitschar         {...}     std::basic_streambufchar,std::char_traitschar
                _Gcount           3899520          int
    -           _Gfirst  0x003B8080 c:\FramesTest\frame10ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ         char*
                *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._Gfirst         99 'c'    char
    -           _Gnext 0x00000000    char*
                *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._Gnext        0 ''        char
    -           _IGcount          0x0012EC3C   int*
                *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IGcount     3899520          int
    -           _IGfirst 0x0012EC1C   char**
    -           *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IGfirst       0x003B8080 c:\FramesTest\frame10ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ       char*
                **((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IGfirst     99 'c'    char
    -           _IGnext            0x0012EC2C   char**
    -           *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IGnext       0x00000000    char*
                **((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IGnext     0 ''        char
    -           _IPcount          0x0012EC40   int*
                *((std::basic_streambufchar,std::char_traitschar )(osst._Stringbuffer))._IPcount     11        int
    +          _IPfirst 0x0012EC20   char**
    +          _IPnext            0x0012EC30   char**
    +          _Mylock          { _Mtx=0x003B7FE8 }           std::_Mutex
                _Pcount            11        int
    +          _Pfirst  0x003B8080 c:\FramesTest\frame10ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ         char*
    +          _Plocale           0x003B8040 { _Ptr=0x003B3128 }    std::locale*
    +          _Pnext  0x003B8095 ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ        char*
    -           _Al       {...}     std::allocatorchar
    +          std::_Allocator_basechar      {...}     std::_Allocator_basechar
                _Mystate          5          int
    +          _Seekhigh        0x003B8080 c:\FramesTest\frame10ÍÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ         char*
     
     

    DB:2.79:Possible Bug With Std::Ostringstream pm

    Ah, the joys of life without a garbage collector.  The str() function generates a temporary object that gets destroyed after the statement executes.  filename2 is now pointing to deallocated memory.  You'll have to keep the std::string instance alive:   const char *filename1 = c:\\FramesTest\\frame;   int i = 10;   std::ostringstream osst;   osst filename1 i;   std::string temp = osst.str();   const char *filename2 = temp.c_str();

  • RELEVANCY SCORE 2.78

    DB:2.78:Reading From Fstream Into Vector d3


    Hi,

    In the code snippet below, I am trying to read the contents of a file
    into a vector. However I can't get it compiled. I am using Sunstudio
    which compiles C++ using cc.

    Here is the code:

    #include fstream
    #include vector

    int main( int argc, char ** argv )
    {
    std::ifstream input( "input.txt" );
    std::istream_iteratorint dataBegin( input );
    std::istream_iteratorint dataEnd;
    std::vectorint v( dataBegin, dataEnd ); //Compiler error

    return (EXIT_SUCCESS);

    }

    Compiler error: Could not find a match for
    std::vectorint::vector(std::istream_iteratorint, char,
    std::char_traitschar, int, std::istream_iteratorint, char,
    std::char_traitschar, int ) needed in main(int, char**);

    DB:2.78:Reading From Fstream Into Vector d3

    If you search the forum for istream_iterator you'll end up with...

    "You have run into a documented limitation of the default libCstd implementation of the C++ standard library. The default library is not a complete implementation, and in particular lacks required template member functions that allow implicit type conversions. We still use this library for binary compatibility with earlier releases.

    The optional STLport version of the library is a full implementation of hte C++ Standard Library. If you don't need binary compatibility, meaning you don't need to link to code that uses libCstd, you can add the option -library=stlport4 to every CC command line, compiling and linking. Your sample code compiles with STLport.

    If you need to use libCstd, you might get this code to work by inserting explicit type conversions. I have not tried to see whether that actually can be done. "

  • RELEVANCY SCORE 2.76

    DB:2.76:Localization Boiler Plate sa


    Assuming I'm dedicated to the user's specific locale, I'd like to know if others have suggestions for good localization boiler-plate code to execute at the beginning of main().  I have this:
    std::locale::global( std::locale() ); //ditch C locale, for actual user locale.
    std::locale global_loc = std::locale();
    std::cout.imbue(global_loc);
    std::cin.imbue(global_loc);
    std::cerr.imbue(global_loc);
    std::clog.imbue(global_loc);
    std::wcout.imbue(global_loc);
    std::wcin.imbue(global_loc);
    std::wcerr.imbue(global_loc);
    std::wclog.imbue(global_loc);
    Thoughts?

    DB:2.76:Localization Boiler Plate sa

    Hi Mystagogue,I think the method you have posted is good and frequently-used for localization. I don't know why you are in search of other methods.For your reference, I would like to suggest you to read the following book, you will get more information there:

    Standard C++ IOStreams and locales (Written by Angelika Langer, Klaus Kreft)

    Hope this helps,Nancy Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • RELEVANCY SCORE 2.76

    DB:2.76:Error Lnk2005 And Error Lnk2019 k1


    What does thses linker errors mean?Generating Code...Linking...msvcprtd.lib(MSVCP80D.dll) : error LNK2005: class std::basic_ostreamchar,struct std::char_traitschar __cdecl std:peratorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) already defined in mesh_demo.objmesh_demo.obj : error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function public: int __thiscall std::vectorint,class std::allocatorint :perator[](unsigned int) (??A?$vector@HV?$allocator@H@std@@@std@@QAEAAHI@Z)Debug/mesh_demo.exe : fatal error LNK1120: 1 unresolved externalshow can I resolve them

    DB:2.76:Error Lnk2005 And Error Lnk2019 k1

     mahmoodn wrote:

    the project settings and include/library directories are the same.

  • RELEVANCY SCORE 2.76

    DB:2.76:Link Error 73


    i keep getting this error:
    error LNK2019: unresolved external symbol class std::vectorint,class std::allocatorint __cdecl alternateMergeint(class std::vectorint,class std::allocatorint ,class std::vectorint,class std::allocatorint ) (??$alternateMerge@H@@YA?AV?$vector@HV?$allocator@H@std@@@std@@AAV01@0@Z) referenced in function _main
    i have the following code in my program which i suspect is the cause, but cant find a way to resolve it.
    templateclass T
    vector alternateMerge(vectorT u, vectorT v)
    {
    vectorint w; //new vector
     
       function body
     
    return w;
     
    }
    i'm trying to merge two vectors and return a vector to main.
    thanks.
     

    DB:2.76:Link Error 73

    nevermind i figured it out.

  • RELEVANCY SCORE 2.75

    DB:2.75:Std Process Code For Pr az



    Hi...Is there an SAp std process code that uses the FM - IDOC_INPUT_PREQCR

    PR creation

    regards,

    Arvind R

    DB:2.75:Std Process Code For Pr az


    Hi...Is there an SAp std process code that uses the FM - IDOC_INPUT_PREQCR

    PR creation

    regards,

    Arvind R

  • RELEVANCY SCORE 2.75

    DB:2.75:Restore Error: There Is Not Enough Space On The Disk pc





    When restoring a backup on Plesk 12, the error below is generated for some sites and the sites are only partially restored. Although the message talks about disk space, there is in fact plenty of free disk space - i.e. many GB. The backup was created on Plesk 11.5. The restore on Plesk 11.5 works.

    Is this a known problem?

    I noticed that all the failed domains exceed the disk space allowed by their Service Plan. However, the Overuse is allowed setting is selected. Strangely, I tried changing the Service Plan and retrying the backup and restore, and the same errors were generated.

    object type=domain name=domain.com
    object type=hosting name=domain.com
    message code=CantUnpackDomainContent severity=warning id=f3946c79-7ae2-4be2-8300-ba766bea7869
    descriptionCan not deploy content of domain domain.com/description
    message code=IRepository::StreamError severity=warning id=e3c0c080-5536-4d18-b6d3-6c8fc4e1171d
    descriptionArchiver error: unable to extract files from C:\Program Files (x86)\Parallels\Plesk\Backup/clients\customer\domains\domain.com/backup_domain.com_user-data_1412121514.zip. System.IO.IOException: There is not enough space on the disk.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
    at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
    at System.IO.FileStream.Dispose(Boolean disposing)
    at System.IO.Stream.Close()
    at plesk.pmm_dotnet_proxy.ArchiverImpl.UnpackFile(ArchiverImpl* , IPSAUnpacker zip, String filePath)
    at plesk.pmm_dotnet_proxy.ArchiverImpl.UnpackImpl(ArchiverImpl* , IPSAUnpacker zip, String destinationManaged, functionlt;bool __cdecl(std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; const \ampgt;* shouldUnpack, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* unpackedFiles, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* subdir)
    at plesk.pmm_dotnet_proxy.ArchiverImpl.Unpack(ArchiverImpl* , basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* path, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* files, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* destination, ArchiveFormat format, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* unpackedFiles, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* includedItems, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* excludedItems, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* subdir, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* user, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* password)/description
    /message
    /message
    /object
    /object

    DB:2.75:Restore Error: There Is Not Enough Space On The Disk pc




    im not upgrading, its going from a Plesk 12 server to a Plesk 12 server.

    thanks for the reply

  • RELEVANCY SCORE 2.74

    DB:2.74:Application Deployment 13



    Hi all,

    we want to deploy/install office 2010 std and office 2013 std edition through BBCA using exe format, any idea how we can deploy/install using BBCA

    Regards

    Vishu

    DB:2.74:Application Deployment 13


    No Vishu.. I don't have a the doc and support also most likely wont, but you could raise an RFE to have such docs made available to customers as Office is one off the most widely used app at any customers place.. and BMC should have standard recommendations on how to go about creating custom packages to upgrading these apps

  • RELEVANCY SCORE 2.74

    DB:2.74:Vs2005 Link Error sa


    I have a mixed mode managed and unmanaged C++ code which compiled, linked and ran fine in VS2003.
    However, this code does not link when using VS2005. It causes following link errors when I compile and link using /clr:oldsyntax switch, which I believe is necessary if using old Managed Extensions syntax. I am using STL string and map classes in my unmanaged code.
    I havea managed wrapper which delegates to unamanged methods which accept STL structures as parameters. I am convinced this is a compiler error in VS2005. Can someone please throw some light on this matter. Many Thanks
    A.obj : error LNK2020: unresolved token (0600001F) std.mapstd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::lessstd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::pairstd::basic_stringchar,std::char_traitschar,std::allocatorchar const ,std::basic_stringchar,std::char_traitschar,std::allocatorchar ::MarshalCopy
    B.obj : error LNK2020: unresolved token (06000020) std.mapstd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::lessstd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::pairstd::basic_stringchar,std::char_traitschar,std::allocatorchar const ,std::basic_stringchar,std::char_traitschar,std::allocatorchar ::MarshalDestroy
    OK, the problem which causes this link error is following scenario...
    I have unmanaged class which contains a managed class using gcrootManagedWrapper* m_pwrapper. "ManagedWrapper" class contains a method which has STL (C++) map as parameter e.g. Foo(std::map,...,...) etc.. When the unmanaged method calls this method Foo(..) in the managed wrapper, the linker throws out above message? This used to work fine in VS2003...any ideas why it doesn't work in VS2005? and would someone suggest a workaround?
    Many Thanks

    DB:2.74:Vs2005 Link Error sa

    There's not enough information for anyone to say with certainty what the problem is.  We need the same info you have: the actual source code that reproduces this problem.  I would recommend going ahead and opening a bug on this, and make the necessary attachments to the bug report.
     

  • RELEVANCY SCORE 2.74

    DB:2.74:Overloading Ambiguity Errors dd



    Any suggestions on how to resolve the error below?
    "/opt/SUNWspro/current-compiler/include/CC/Cstd/./vector", line 1131: Error: Overloading ambiguity between
    "std::distancestd::vectorbool, std::allocatorbool::const_iterator, unsigned(std::vectorbool,
    std::allocatorbool::const_iterator, std::vectorbool, std::allocatorbool::const_iterator, unsigned)"
    and "distancestd::vectorbool, std::allocatorbool::const_iterator, unsigned(std::vectorbool,
    std::allocatorbool::const_iterator, std::vectorbool, std::allocatorbool::const_iterator, unsigned)".

    Sometimes the subsequent "Where: While instantiating ...." helps locate the ambiguity.
    (None in this case. ) If this error were coming from user code, specifying '::' or 'std::' helps.
    But when it is in one of the CC include files, is there a recommended approach?
    Any input is appreciated.

    % CC -V
    CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11

    Thanks.

    DB:2.74:Overloading Ambiguity Errors dd

    But why are there copies of the same templates in both namespace std and in the global namespace? That should not ever happen.

    I suspect user error, but if you can post a compileable example, I can investigate further.

  • RELEVANCY SCORE 2.74

    DB:2.74:Numeric_Limits Doesn't Understand 64 Bit Integers d8



    If you run the following code, you will find that Forte 6 Update 2 (patched) thinks that the maximum value of a 64 bit integer is zero. The same results with long long or unsigned long long.

    #include limits
    #include iostream
    #include inttypes.h

    using namespace std;

    int main(int argc, char * argv[])
    {

    std::cout "int32_t: " numeric_limitsint32_t::max() std::endl;
    std::cout "uint32_t: " numeric_limitsuint32_t::max() std::endl;
    std::cout "int64_t: " numeric_limitsint64_t::max() std::endl;
    std::cout "uint64_t: " numeric_limitsuint64_t::max() std::endl;
    std::cout "long long: " numeric_limitslong long::max() std::endl;
    std::cout "unsigned long long: " numeric_limitsunsigned long long::max() std::endl;

    return 0;

    }Results:

    int32_t: 2147483647
    uint32_t: 4294967295
    int64_t: 0
    uint64_t: 0
    long long: 0
    unsigned long long: 0

    DB:2.74:Numeric_Limits Doesn't Understand 64 Bit Integers d8

    I filed the bug report for you, the bug ID is 4949404.
    It's a P4 bug. Engineering will evaulate and decide what priority the bug will be.

    If you have contract with Sun, please follow the service channel to check the status/request for higher priority of the bug if necessary. Otherwise, please go to sunsolve.sun.com and check it there.

    You can also contact me anytime for the bug status.

    Thanks.

    - Rose

  • RELEVANCY SCORE 2.73

    DB:2.73:Any Way To Get Fully Qualified Class Name Of Java Class From C/C++? 3f


    Hello all,I am trying out some test JNI code before starting a project that will use a lot of Java API from C++. I have seen old questions on the same topic and the general responses have always been you can call the getName method on a jclass instance. However, with my test code always fails to find the getName method (I have other code that works with accessing static methods, inherited methods, non-virtual invocation of super-class methods etc). Here is my code where I have tried various ways to get at the class name
    void classMethod()
    {
    if ( ! child ) return;

    jmethodID mid = env-GetMethodID( child, "getClass", "()Ljava/lang/Class;" );

    if ( mid )
    {
    jclass clsObj = static_castjclass( env-CallObjectMethod( obj, mid ) );
    if ( ! clsObj ) std::cerr "classMethod - Cannot retrieve Class object" std::endl;

    mid = env-GetMethodID( clsObj, "getName", "()Ljava/lang/String;" );
    if ( mid )
    {
    jstring str = static_castjstring( env-CallObjectMethod( clsObj, mid ) );
    displayString( "classMethod", str );
    }
    else
    {
    std::cout "classMethod - Cannot find getClass.getName, trying direct getName" std::endl;

    mid = env-GetMethodID( child, "getName", "()Ljava/lang/String;" );

    if ( mid )
    {
    jstring str = static_castjstring( env-CallObjectMethod( clsObj, mid ) );
    displayString( "classMethod", str );
    }
    else std::cerr "classMethod - Cannot find getClass.getName or getName directly on jclass" std::endl;
    }
    }
    else std::cerr "classMethod - Cannot find getClass" std::endl;
    }
    Note that if I just find "java/lang/Class" and then look up getName on it, it works fine.Environment:Mac OS X Mavericksjava version "1.7.0_51"Java(TM) SE Runtime Environment (build 1.7.0_51-b13)Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)ThanksRakesh

    DB:2.73:Any Way To Get Fully Qualified Class Name Of Java Class From C/C++? 3f

    If the methods do not return a value then an exception was thrown. You MUST look for that exception. You can't proceed after the exception. There are some methods used to manage exceptions.

  • RELEVANCY SCORE 2.73

    DB:2.73:Forte C++ 6.0 Update 1(Sparc) Bug: Some Symbols Can Not Resolved ja


    Hi,
    When we use -g -instances=static option together, we get some symbols that can not resolved . When i get rid of -g or -instances=static ,all is ok.
    I also get rid of -D_RWSTD_COMPILE_INSTANTIATE=1 ,but i get the same problem.
    My program is very simple,i think it is a bug of forte C++ 6.0(update 1).
    I use Solaris 8(SPARC),i have apply all patchs related to Forte C++ 6.0 (update 1), just as the link show
    http://www.sun.com/forte/developer/hotnews.html

    The error message is as following(I use " ldd -r libtry.so" to check ):
    symbol not found: std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::iterator std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::erase(std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::iterator,std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::iterator) (./libtry.so)
    symbol not found: void std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::__deallocate_buffers() (./libtry.so)
    symbol not found: void std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::insert(std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::iterator,std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::const_iterator,std::liststd::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::allocatorstd::basic_stringchar,std::char_traitschar,std::allocatorchar ::const_iterator) (./libtry.so)

    My compiler command line is as the following:
    /opt/SUNWspro/bin/CC -instances=static -g -KPIC -mt -D_RWSTD_COMPILE_INSTANTIATE=1 -o try2.o -c ../try2.cpp

    /opt/SUNWspro/bin/CC -instances=static -g -mt -D_RWSTD_COMPILE_INSTANTIATE=1 -G -o libtry.so try2.o -lCstd -lCrun -lc

    The source code is as following( the filename is try.cpp):
    #include list
    #include string
    using namespace std;

    class IIRWDecimalPortableInit
    {
    public:
    IIRWDecimalPortableInit() {};
    };

    static IIRWDecimalPortableInit aRWDecimalPortableInitVar;

    namespace IImomgr
    {
    class IIMOEVal;
    class IIEntityObject{
    public:
    IIEntityObject();
    virtual IIEntityObject* newDummyObject() const
    {
    return new IIEntityObject;
    }
    virtual IIMOEVal* IIgetEValue(
    IIMOEVal* value=NULL,
    liststring attrNameList=liststring());
    };

    }

    DB:2.73:Forte C++ 6.0 Update 1(Sparc) Bug: Some Symbols Can Not Resolved ja

    I've tested your code on a couple different versions of Forte Developer C++, and it is indeed a bug. I've filed it as Bug ID 4632564. We're working on this issue, and I'll keep you updated on it.

    -Moazam

  • RELEVANCY SCORE 2.71

    DB:2.71:Is Content Deployment Avail In Std Version Rather Than Ent x8


    Hi Guys,I've been testing MOSS07 and got very used to the content deployment feature. After a bit of reading (can't recall where) it appeared that Content Deployment was only avail on the Ent version. The SP comparison xl spreadsheet indicates it's available on both.So I built a Std box using a Std trial key and Content Deployment was available as a feature.Can someone please confirm that Content Deployment is definitely in Std and that the article I read re it being only avail in Ent is wrong? My deployment will kind of hnge on this fact.Cheers,

    DB:2.71:Is Content Deployment Avail In Std Version Rather Than Ent x8

    Hello,
     
    Is your Excel spreadsheet about product comparison downloaded from this link of Office Online ?(Microsoft Office SharePoint Server 2007 products comparison download http://office.microsoft.com/en-us/sharepointserver/HA101978031033.aspx)
     
    If so, then what described in it is true as you’ve already tested. The content deployment feature is available in Office SharePoint Server 2007 Standard CAL.
     
    Regards,
    JerryXing-Bing Yu

  • RELEVANCY SCORE 2.71

    DB:2.71:How To Access Std. Portal Database Table (Wcr_Userstat)..? 9j



    Hi Experts,

    How to access the Std portal databse tables like WCR_USERSTAT table using webdynpro java, PortalComponent application.

    I have come across the SAP Code gallery for the same:

    http://wiki.scn.sap.com/wiki/display/Snippets/Direct+Access+Databse+Tables

    But in the code need to lookup portal DataSource by alias name and here given Std alias name is not working.....

    Like to know any other option to access the Std. SAP Portal databse tables.

    Regards,

    Hanif

    DB:2.71:How To Access Std. Portal Database Table (Wcr_Userstat)..? 9j


    Hi hanif,

    The above code is working for me.Check this link

    http://help.sap.de/saphelp_nw74/helpdata/en/47/87329cc84a199ce10000000a42189d/content.htm

    Direct Access to Database Tables - Portal - SAP Library

    Otherwise try this may be help for you.

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d065610f-2cb8-2910-11b2-e3ecd2c3c226?overridelayout=t

    BR,

    Durga

  • RELEVANCY SCORE 2.71

    DB:2.71:Map Issue Using The Old/Default Std 7x


    Please, help with the following simple compilation
    ***********************************
    // print_routines.cpp
    #include map
    #include string

    int main()
    {
    std::mapconst std::string, bool fred;
    return 0;
    }
    ********************************
    -bash-3.00$ CC print_routines.cpp
    "/opt/SUNWspro/prod/include/CC/Cstd/./map", line 251: Error: Multiple declaration for std::mapconst std::string, bool, std::lessconst std::string, std::allocatorstd::pairconst std::string, bool::insert(const std::pairconst std::string, bool).
    "print_routines.cpp", line 6: Where: While specializing "std::mapconst std::string, bool, std::lessconst std::string, std::allocatorstd::pairconst std::string, bool".
    "print_routines.cpp", line 6: Where: Specialized in non-template code.
    1 Error(s) detected.

    Thank you very much.
    stephen

    DB:2.71:Map Issue Using The Old/Default Std 7x

    the following excerpt is wrong and exactly the opposite is true: you do not need const before the key type.

    http://developers.sun.com/sunstudio/documentation/ss11/mr/READMEs/c++_faq.html#LibComp2

    ********************************************
    What are the consequences of the missing standard library functionality?
    Some code that is valid according to the C++ standard will not compile.

    The most common example is creating maps where the first element of the pair could be const but isn't declared that way. The member constructor template would convert pairT, U to pairconst T, U implicitly when needed. Because that constructor is missing, you get compilation errors instead.

    Since you are not allowed to change the first member of a pair in a map anyway, the simplest fix is to use an explicit const when creating the pair type. For example, instead of pairint, T use pairconst int, T; instead of mapint, T use mapconst int, T.
    ****************************************************

  • RELEVANCY SCORE 2.71

    DB:2.71:How To Solve Error In Istream And Iostream.H? 8m


    compiling with C++ source and got the following erros inside iostream

    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 41: Error: Use ";" to terminate declarations.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: Error: istream is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 5: Error: cin is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 6: Error: ws is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 9: Error: ostream is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 10: Error: cout is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 11: Error: cerr is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 12: Error: clog is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 14: Error: ios is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 15: Error: iostream is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 16: Error: streambuf is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: endl is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 21: Error: ends is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 22: Error: flush is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 23: Error: streamsize is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 24: Error: streampos is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 25: Error: unitbuf is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 26: Error: nounitbuf is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 27: Error: boolalpha is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 28: Error: noboolalpha is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 29: Error: showbase is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 30: Error: noshowbase is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 31: Error: showpoint is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 32: Error: noshowpoint is not a member of std::std::std.
    "/export/home/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 33: Error: showpos is not a member of std::std::std.
    Compilation aborted, too many Error messages.
    *** Error code 1

    My system is:
    sol-10-u5-ga-x86
    SunStudio12ml-solaris-x86-200709-pkg.tar.bz2
    No patch

    can anyone figure out what this mean ?

    Edited by: Harry-Potter on Jun 24, 2008 8:20 PM

    Edited by: Harry-Potter on Jun 25, 2008 12:52 AM

    Edited by: Harry-Potter on Jun 25, 2008 12:55 AM

    Edited by: Harry-Potter on Jun 25, 2008 12:55 AM

    DB:2.71:How To Solve Error In Istream And Iostream.H? 8m

    Apparently Utility/Il8n/CharConverter.h contains something that conflicts with iostream, or includes a file directly or indirectly that conflicts with it.

    If you want to track down the problem, compile both versions of HelloWorld.cpp with -E instead of -c and direct all output to a file.
    CC HelloWorld1.cpp option_list -E Hello1.cpp
    CC HelloWorld2.cpp option_list -E Hello2.cpp

    The preprocessor output from the -E option will show where every preprocessed line came from. Compare the lines associated with istream and ostream in the two versions to get a clue about what changed, then look at the original source code of Utility/Il8n/CharConverter.h and the files it includes to see what is affecting the compilation of the istream and ostream headers. I suspect some project file is trying to do something that should be reserved to the system headers.

    Some good rules of thumb for project headers:
    1. Don't take over the job of system headers. Include the appropriate system header instead.
    2. Each header should be self-contained. Do not depend on some other header having been included first.
    3. Use include guards around the header body to protect against multiple inclusion due to rule 2.
    4. Include system headers before defining macros or including project headers.

    It seems that following these rules would have prevented your compile error.

  • RELEVANCY SCORE 2.71

    DB:2.71:Compile Error When Using C++0x Std::Bind When The System Gcc Is 4.7.2 z1



    When using gcc4.7.2 system headers -std=c++0x, I get the following compiler error. I believe this is an intel-only issue as building the same source with the gcc4.7.2 compiler works, so I presume it is a problem with how intel interprets the implicit casting. I get the same error on non-gcc47 distros (eg. rhel5) when I use -gxx-name=gcc47 (for me, gcc47 points to a gcc4.7.2 binary for rhel5)

    #include functional

    bool foo(int * x, int y, int z);

    int main() { 

        typedef std::functionbool (int * x, int y, int z) FooHandler;

        using namespace std::placeholders;

        FooHandler m_foo = std::bind(foo, _1, _2, _3);

    }

    Command line output :

    icc13 -c -std=c++0x x.cpp -o x.o

    /usr/include/c++/4.7.2/tuple(854): error: no instance of constructor "std::tuple_Elements...::tuple [with _Elements=int *, int , int ]" matches the argument list

    argument types are: (int *, int, int)
    { return tuple_Elements...(std::forward_Elements(__args)...); }
    ^
    detected during:
    instantiation of "std::tuple_Elements ... std::forward_as_tuple(_Elements ...) [with _Elements=int *, int, int]" at line 1214 of "/usr/include/c++/4.7.2/functional"
    instantiation of "_Result std::_Bind_Functor (_Bound_args...)::operator()(_Args ...) [with _Functor=bool (*)(int *, int, int), _Bound_args=std::_Placeholder1, std::_Placeholder2, std::_Placeholder3, _Args=int *, int, int, _Result=bool]" at line 1912 of "/usr/include/c++/4.7.2/functional"
    instantiation of "_Res std::_Function_handler_Res (_ArgTypes...), _Functor::_M_invoke(const std::_Any_data , _ArgTypes...) [with _Res=bool, _Functor=std::_Bindbool (*(std::_Placeholder1, std::_Placeholder2, std::_Placeholder3))(int *, int, int), _ArgTypes=int *, int, int]" at line 2298 of "/usr/include/c++/4.7.2/functional"
    instantiation of "std::function_Res (_ArgTypes...)::function(_Functor, std::enable_ifexpression, std::function_Res (_ArgTypes...)::_Useless::type) [with _Res=bool, _ArgTypes=int *, int, int, _Functor=std::_Bindbool (*(std::_Placeholder1, std::_Placeholder2, std::_Placeholder3))(int *, int, int)]" at line 10 of "x.cpp"

    compilation aborted for x.cpp (code 2)

    DB:2.71:Compile Error When Using C++0x Std::Bind When The System Gcc Is 4.7.2 z1


    I can duplicate the issue on Fedora 17 and 19 with gcc 4.7.0. I'll file a bug report for it. Thanks for letting us know.

    The icpc 14.0 beta also has the same issue.

    Jennifer

  • RELEVANCY SCORE 2.70

    DB:2.70:Problem With List≪≫::Merge≪≫ a1


    i try to compile one code where i have

    .
    #indlude list
    #include queue
    .

    and i have this error

    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 315: Error: x is not defined.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 315: Error: Badly formed expression.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 316: Error: x is not defined.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 316: Error: Badly formed expression.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 322: Error: x is not defined.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 322: Error: Formal argument x of type std::listchar*, std::allocatorchar* in call to std::listchar*, std::allocatorchar*::__transfer(std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*) requires an lvalue.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 329: Error: x is not defined.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list.cc", line 329: Error: Formal argument x of type std::listchar*, std::allocatorchar* in call to std::listchar*, std::allocatorchar*::__transfer(std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*::iterator, std::listchar*, std::allocatorchar*) requires an lvalue.
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listchar*, std::allocatorchar*::merge(std::listchar*, std::allocatorchar*, bool(*)(char*const,char*const))".
    "/opt/packages/SUNWspro.6.0.U2/SUNWspro/WS6/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.

    DB:2.70:Problem With List≪≫::Merge≪≫ a1

    Please re-post the source code example using "code" brackets. In addition, include a blank after each "" and before each "". Otherwise, the Forum software eats some of the source code.

    Please also preview the posting to be sure it looks the way you intended.

  • RELEVANCY SCORE 2.70

    DB:2.70:Purify Error With Std::String, -Xarch=V8plusa -Mt ms



    Using WS6U2, latest patches, on Solaris 8 with latest patch cluster (as of a few days ago):

    string.cpp:
    #include string

    using namespace std;

    int main(int argc, char * argv[])
    {

    string val1 = "hello";
    string val2 = "world";

    string copy( val1 );
    copy = val2;

    return 0;

    }CC -VCC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16

    purify -versionVersion 2002a.06.00 Solaris 2

    purify -always-use-cache-dir -cache-dir=`pwd`/cache CC -g -xarch=v8plusa -mt string.cpp -o stringAnd we get some rather nasty errors: three Free Memory Reads, two Free Memory Writes, and one Freeing Unallocated Memory. However, remove either of the "-mt" or "-xarch=v8plusa" options, and all is well - no memory errors at all. So it seems that this problem only affects the multithreaded v8plusa specific implementation of std::string.

    In the case where it fails ("-mt -xarch=v8plusa"), purify complains as follows:

    **** Purify instrumented string (pid 13888 at Tue Feb 18 16:42:31 2003)
    * Purify 2002a.06.00 Solaris 2 (32-bit) Copyright (C) 1992-2002 Rational Software Corp. All rights reserved.
    * For contact information type: "purify -help"
    * For TTY output, use the option "-windows=no"
    * Command-line: ./string
    * Options settings: -max-threads=2500 -follow-child-processes=yes \
    -leaks-at-exit=yes -chain-length=16 -report-pmrs=yes -threads=yes -purify \
    -always-use-cache-dir \
    -cache-dir=/home/rational/src/experiments/string/cache \
    -purify-home=/usr/local/software/rational/releases/purify.sol.2002a.06.00 \
    -threads=yes -use-internal-locks=yes -thread_stack_change=0x4000 \
    -mt_safe_malloc=yes
    * License successfully checked out.
    * Command-line: ./string

    **** Purify instrumented string (pid 13888) ****
    FMR: Free memory read:
    * This is occurring while in:
    long __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::__references()const [string_ref:193]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:913]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Reading 4 bytes from 0xa6d30 in the heap.
    * Address 0xa6d30 is 24 bytes into a freed block at 0xa6d18 of 47 bytes.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 0 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    FMR: Free memory read:
    * This is occurring while in:
    pthread_mutex_destroy [libthread.so.1]
    RWSTDMutex::~RWSTDMutex() [stdmutex.h:167]
    __rwstd::__string_ref_repstd::allocatorchar ::~__string_ref_rep #Nvariant 1() [string.cpp]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::~__string_ref() [string.cpp]
    void __rwstd::__destroy__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar (__type_0*) [memory:177]
    void std::allocator_interfacestd::allocatorchar,__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::destroy(__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *) [memory:513]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:915]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Reading 2 bytes from 0xa6d18 in the heap.
    * Address 0xa6d18 is at the beginning of a freed block of 47 bytes.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 0 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    FMW: Free memory write:
    * This is occurring while in:
    pthread_mutex_destroy [libthread.so.1]
    RWSTDMutex::~RWSTDMutex() [stdmutex.h:167]
    __rwstd::__string_ref_repstd::allocatorchar ::~__string_ref_rep #Nvariant 1() [string.cpp]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::~__string_ref() [string.cpp]
    void __rwstd::__destroy__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar (__type_0*) [memory:177]
    void std::allocator_interfacestd::allocatorchar,__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::destroy(__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *) [memory:513]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:915]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Writing 2 bytes to 0xa6d1e in the heap.
    * Address 0xa6d1e is 6 bytes into a freed block at 0xa6d18 of 47 bytes.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 0 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    FMW: Free memory write:
    * This is occurring while in:
    pthread_mutex_destroy [libthread.so.1]
    RWSTDMutex::~RWSTDMutex() [stdmutex.h:167]
    __rwstd::__string_ref_repstd::allocatorchar ::~__string_ref_rep #Nvariant 1() [string.cpp]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::~__string_ref() [string.cpp]
    void __rwstd::__destroy__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar (__type_0*) [memory:177]
    void std::allocator_interfacestd::allocatorchar,__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::destroy(__rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *) [memory:513]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:915]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Writing 2 bytes to 0xa6d18 in the heap.
    * Address 0xa6d18 is at the beginning of a freed block of 47 bytes.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 0 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    FMR: Free memory read:
    * This is occurring while in:
    unsigned std::basic_stringchar,std::char_traitschar,std::allocatorchar ::length()const [string:1346]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:916]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Reading 4 bytes from 0xa6d38 in the heap.
    * Address 0xa6d38 is 32 bytes into a freed block at 0xa6d18 of 47 bytes.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 0 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    FUM: Freeing unallocated memory:
    * This is occurring while in:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    void std::allocatorchar::deallocate(void*,unsigned) [memory:396]
    void std::allocator_interfacestd::allocatorchar,char::deallocate(char*,unsigned) [memory:493]
    void std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink() [string:916]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string() [string:297]
    main [string.cpp:15]
    _start [crt1.o]
    * Attempting to free block at 0xa6d18 already freed.
    * This block was allocated from:
    malloc [rtlib.o]
    c2n6Fi_Pv___1 [libCrun.so.1]
    void*operator new(unsigned) [rtlib.o]
    __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar *std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__getRep(unsigned,unsigned) [libCstd.so.1]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar ::basic_string(const char*,const std::allocatorchar) [libCstd.so.1]
    main [string.cpp:9]
    _start [crt1.o]
    * There have been 1 frees since this block was freed from:
    free [rtlib.o]
    c2k6FPv_v___1 [libCrun.so.1]
    void operator delete(void*) [rtlib.o]
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::operator=(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) [libCstd.so.1]
    main [string.cpp:13]
    _start [crt1.o]

    **** Purify instrumented string (pid 13888) ****
    Current file descriptors in use: 5
    FIU: file descriptor 0: stdin
    FIU: file descriptor 1: stdout
    FIU: file descriptor 2: stderr
    FIU: file descriptor 26: reserved for Purify internal use
    FIU: file descriptor 27: reserved for Purify internal use

    **** Purify instrumented string (pid 13888) ****
    Purify: Searching for all memory leaks...

    Memory leaked: 0 bytes (0%); potentially leaked: 0 bytes (0%)

    Purify Heap Analysis (combining suppressed and unsuppressed blocks)
    Blocks Bytes
    Leaked 1 47
    Potentially Leaked 3 107
    In-Use 26 123707
    ----------------------------------------
    Total Allocated 30 123861

    **** Purify instrumented string (pid 13888) ****
    Thread Summary : 1 threads in existence
    * Thread 0 [main thread]
    Stack Limit : (0xff3f0000 0xffbf0000), size = 0x800000

    **** Purify instrumented string (pid 13888) ****
    * Program exited with status code 0.
    * 6 access errors, 6 total occurrences.
    * 0 bytes leaked.
    * 0 bytes potentially leaked.
    * Basic memory usage (including Purify overhead):
    331996 code
    92532 data/bss
    131072 heap (peak use)
    1856 stack
    * Shared library memory usage (including Purify overhead):
    1456 libpure_solaris2_init.so.1 (shared code)
    252 libpure_solaris2_init.so.1 (private data)
    2255839 libCstd.so.1_pure_p3_c0_105022037_58_32_3592668S (shared code)
    28588 libCstd.so.1_pure_p3_c0_105022037_58_32_3592668S (private data)
    54269 libCrun.so.1_pure_p3_c0_105022037_58_32_1244656S (shared code)
    24688 libCrun.so.1_pure_p3_c0_105022037_58_32_1244656S (private data)
    139048 libm.so.1_pure_p3_c0_105022037_58_32_1289524S (shared code)
    1224 libm.so.1_pure_p3_c0_105022037_58_32_1289524S (private data)
    3968 libw.so.1_pure_p3_c0_105022037_58_32_1187000S (shared code)
    0 libw.so.1_pure_p3_c0_105022037_58_32_1187000S (private data)
    132888 libthread.so.1_pure_p3_c0_105022037_58_32_1408248S (shared code)
    26192 libthread.so.1_pure_p3_c0_105022037_58_32_1408248S (private data)
    1105144 libc.so.1_pure_p3_c0_105022037_58_32_1180272S (shared code)
    111036 libc.so.1_pure_p3_c0_105022037_58_32_1180272S (private data)
    2404 libdl.so.1_pure_p3_c0_105022037_58_32_5292S (shared code)
    4 libdl.so.1_pure_p3_c0_105022037_58_32_5292S (private data)
    13192 libinternal_stubs.so.1 (shared code)
    932 libinternal_stubs.so.1 (private data)
    31866 librt.so.1_pure_p3_c0_105022037_58_32_1269024S (shared code)
    2044 librt.so.1_pure_p3_c0_105022037_58_32_1269024S (private data)
    44541 libaio.so.1_pure_p3_c0_105022037_58_32_1227208S (shared code)
    6104 libaio.so.1_pure_p3_c0_105022037_58_32_1227208S (private data)
    14112 libc_psr.so.1_pure_p3_c0_105022037_58_32 (shared code)
    0 libc_psr.so.1_pure_p3_c0_105022037_58_32 (private data)

    DB:2.70:Purify Error With Std::String, -Xarch=V8plusa -Mt ms

    For whatever its worth,
    Dbx's RTC (which also checks for memory accesses) did not
    report any warning on this code, for same compilation flags. But I don't know why Purify reports these warning only for -xarch=v8plusa -mt.

  • RELEVANCY SCORE 2.69

    DB:2.69:Wrong Std Code Displayed - Confused. 3a



    While awaiting repair of iPhone I am using an old 2G Nokia. As I travel aroiund I note that the STD code is displayed on the default home screen. In my own village the STD code of a location 200 miles away is displayed - Confused??

    DB:2.69:Wrong Std Code Displayed - Confused. 3a


    Hi time2relax,

    Yes! I'm officially confused

    Can you tell me the first part of your postcode and which STD code you're picking up?

    Thanks,

    LeeH




  • RELEVANCY SCORE 2.69

    DB:2.69:Map Issue Using The Old/Default Std zf


    Please, help with the following simple compilation
    ***********************************
    // print_routines.cpp
    #include map
    #include string

    int main()
    {
    std::mapconst std::string, bool fred;
    return 0;
    }
    ********************************
    -bash-3.00$ CC print_routines.cpp
    "/opt/SUNWspro/prod/include/CC/Cstd/./map", line 251: Error: Multiple declaration for std::mapconst std::string, bool, std::lessconst std::string, std::allocatorstd::pairconst std::string, bool::insert(const std::pairconst std::string, bool).
    "print_routines.cpp", line 6: Where: While specializing "std::mapconst std::string, bool, std::lessconst std::string, std::allocatorstd::pairconst std::string, bool".
    "print_routines.cpp", line 6: Where: Specialized in non-template code.
    1 Error(s) detected.

    Thank you very much.
    stephen

    DB:2.69:Map Issue Using The Old/Default Std zf

    Your problem is discussed in the Library Compatibility section of the Sun C++ FAQ:
    http://developers.sun.com/sunstudio/documentation/ss11/mr/READMEs/c++_faq.html#LibComp

  • RELEVANCY SCORE 2.68

    DB:2.68:C++ 11 Initialize List Question ap


    I am attempting to use an initializer lists to construct the contents of a map. I have a simplified example demonstrating what I am trying to do and the associated problem below. Can anyone point out what I am doing wrong?
    Good. The following example compiles, links, runs and value results in 3 as expected.
    std::unordered_mapint, std::unordered_mapint, int test =
    { std::make_pair(44, std::unordered_mapint, int({ std::make_pair(2, 3) }))
    };

    int value = test[44][2];

    Bad. However, the following example (just adding asecond element to the initializer list)compiles and links but crashes at run time:

    std::unordered_mapint, std::unordered_mapint, int test =
    { std::make_pair(44, std::unordered_mapint, int({ std::make_pair(2, 3) }))
    ,std::make_pair(33, std::unordered_mapint, int({ std::make_pair(4, 5) }))
    };

    int value = test[44][2];
    It seems the memory in the initializer list is not being de-allocated correctly. I am wondering if I am using the construct/interface incorrectly or if this should function as coded.
    Here is the stack trace (The end of my initialize list is RfdBitManagerTest.exe!RfdBitAlgorithms::rollUpPessimstic):
    RfdBitManagerTest.exe!std::liststd::pairint const ,int,std::allocatorstd::pairint const ,int ::clear() Line 1503 C
    RfdBitManagerTest.exe!std::liststd::pairint const ,int,std::allocatorstd::pairint const ,int ::_Tidy() Line 1884 C
    RfdBitManagerTest.exe!std::liststd::pairint const ,int,std::allocatorstd::pairint const ,int ::~liststd::pairint const ,int,std::allocatorstd::pairint const ,int () Line 1096 C
    RfdBitManagerTest.exe!std::_Hashstd::_Umap_traitsint,int,std::_Uhash_compareint,std::hashint,std::equal_toint ,std::allocatorstd::pairint const ,int ,0 ::~_Hashstd::_Umap_traitsint,int,std::_Uhash_compareint,std::hashint,std::equal_toint ,std::allocatorstd::pairint const ,int ,0 () Line 409 C
    RfdBitManagerTest.exe!std::unordered_mapint,int,std::hashint,std::equal_toint,std::allocatorstd::pairint const ,int ::~unordered_mapint,int,std::hashint,std::equal_toint,std::allocatorstd::pairint const ,int () C
    RfdBitManagerTest.exe!std::pairint const ,std::unordered_mapint,int,std::hashint,std::equal_toint,std::allocatorstd::pairint const ,int ::~pairint const ,std::unordered_mapint,int,std::hashint,std::equal_toint,std::allocatorstd::pairint const ,int () C
    RfdBitManagerTest.exe!RfdBitAlgorithms::rollUpPessimstic(RfdBitNode * node) Line 14 C
    RfdBitManagerTest.exe!RfdBitNode::computeRollUpChildren(std::vectorRfdBitNode *,std::allocatorRfdBitNode * changedNodes) Line 72 C
    RfdBitManagerTest.exe!RfdBitNode::computeRollUpChildren(std::vectorRfdBitNode *,std::allocatorRfdBitNode * changedNodes) Line 68 C
    RfdBitManagerTest.exe!RfdBitNode::computeRollUpChildren(std::vectorRfdBitNode *,std::allocatorRfdBitNode * changedNodes) Line 68 C
    RfdBitManagerTest.exe!RfdBitNode::setValue(const RfdBitValue rhs, std::vectorRfdBitNode *,std::allocatorRfdBitNode * changedNodes) Line 112 C
    RfdBitManagerTest.exe!RfdBitGraph::setValue(const unsigned int nodeId, const RfdBitValue value, std::vectorunsigned int,std::allocatorunsigned int changedNodes) Line 67 C
    RfdBitManagerTest.exe!main(int argc, char * * argv) Line 66 C
    [External Code]
    [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]

    Here is my VS information:
    Microsoft Visual Studio Express 2013 RC for Windows Desktop
    Version 12.0.20827.3 DP
    Microsoft .NET Framework
    Version 4.5.50861
    Installed Version: Desktop Express
    Team Explorer for Visual Studio 2013 RC 06069-004-0341006-02944
    Microsoft Team Explorer for Visual Studio 2013 RC
    Visual Basic 2013 RC 06069-004-0341006-02944
    Microsoft Visual Basic 2013 RC
    Visual C# 2013 RC 06069-004-0341006-02944
    Microsoft Visual C# 2013 RC
    Visual C 2013 RC 06069-004-0341006-02944
    Microsoft Visual C 2013 RC
    NuGet Package Manager 2.7.40808.226
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit...
    SQL Server Data Tools 12.0.30805.0
    Microsoft SQL Server Data Tools

    ============
    Same issue occurs if Ionly use theinitialize list construct:
    std::unordered_mapint, std::unordered_mapint, int test =
    { { 44, { { 2, 3 } } }
    /*, { 33, { { 4, 5 } } }*/
    };

    int value = test[44][2];

    DB:2.68:C++ 11 Initialize List Question ap

    Thanks for your feedback. I have filed a bug report with Microsoft. Bug ID (804731)-

    https://connect.microsoft.com/VisualStudio/feedback/details/804731/c-11-initializer-list-crash.

  • RELEVANCY SCORE 2.68

    DB:2.68:Issue Using Std::Thread And Std::Ref Via Icpc pk



    Hi guys,

    there seems to be an issue using std::ref and std:: thread with icpc, even if you use the tbb/thread/compat.h header:

    There are no compilation issues on clang++. I am not using the SP1 beta of composer yet, so I am not sure if these issues have been fixed.

    I have found the main issue is that std::ref cannot be used with std::thread (when using icpc). I am getting a lot of the following errors:

    aProgram.c(747): error: namespace "std" has no member "thread"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(iarg6),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    aProgram.c(747): error: namespace "std" has no member "ref"
    threads[j] = std::thread(func1,std::ref(arg1),std::ref(arg2),std::ref(arg3),std::ref(arg4),std::ref(local_eigs),eta,std::ref(arg6),std::ref(arg7),std::ref(arg8),arg9,arg10,start,end,,std::ref(aMutex));
    ^

    Unfortunately, I cannot give you guys the program to debug this, but I am certain this is not an issue with the code as it runs without issue using clang++. 

    Clang++ is too effin slow for what I'm doing, and so icpc/icc are the only way the program will be fast enough (to my standards), even though it is parallelized extensively.

    note: please don't worry about some weird syntax, as I had to edit the filename/parameters to ensure privacy of my program. The key is that the errors are related to both std::ref and std:;thread...

    can someone tell me if this has been fixed?

    DB:2.68:Issue Using Std::Thread And Std::Ref Via Icpc pk


    ...but the second error still displayed and it means that there is some issue with TBB...

    I mean this one:

    ...

    Test037.cpp(43): error: no instance of constructor "tbb::internal::tbb_thread_v3::tbb_thread_v3" matches the argument list

    argument types are: (void (whatever *, int, int, int), , int, int, int)

    threads[j] = std::thread(threadFunc,std::ref(wutev),K,sectsize,sectsize);

    ...

  • RELEVANCY SCORE 2.68

    DB:2.68:A C++ Amp Deployment Question 7z


    I've copied the vcamp110.dll, msvcr110.dll and
    msvcp110.dll to the local directory, but the gpu code simply crashes on the target install machine. I've got Direct X 11 installed. Is there anything else I need to do?

    DB:2.68:A C++ Amp Deployment Question 7z

    I think I've found it. Our installer is setting a compatibility flag. I think we just need to run as administrator. I switched this off on the test machine and am now running. Will run it past beta testers now.
    Wow. i spent almost a week on that.

  • RELEVANCY SCORE 2.68

    DB:2.68:[Solved-Ish] C++11 Regular Expressions p7



    Can somebody please explain to me why this code produces these results?
    #include iostream
    #include string
    #include regex

    int main (int argc, char** argv) {
    std::regex exp;
    try {
    exp = std::regex([0-9].*, std::regex_constants::basic);
    } catch (const std::regex_error e) {
    std::cerr Error: e.what() std::endl;
    std::cerr Error code: e.code() std::endl;
    return 1;
    }
    std::cout created regex object std::endl;

    for (int i = 1; i argc; ++i) {
    std::string inputString(argv[i]);
    std::cout input string: inputString std::endl;
    std::cout (std::regex_match(inputString, exp) ? matches : doesnt match) std::endl;
    }
    return 0;
    }

    DB:2.68:[Solved-Ish] C++11 Regular Expressions p7

    snack wrote:
    Or try with LLVM/Clang, they claim full C++11 support.

  • RELEVANCY SCORE 2.68

    DB:2.68:Unexpected Compilation Error Occured While Using Std::Make_Tuple With Std::Unique_Ptr sa



    Hello.

    I'm using Composer XE 2013 SP1 (version: 14.0.0 20130728).

    I got an error, while compiling this code:

    #include tuple
    #include memory

    int main()
    {
        auto a = std::make_tuple(std::unique_ptrchar(new char), 0);
        return 0;
    }

    Command line and comiper output is here:

    icpc tmp.cpp -gcc-name=gcc-4.7 -std=gnu++11 -lstdc++ 

    /usr/include/c++/4.7/type_traits(1251): error: function "std::unique_ptr_Tp, _Dp::unique_ptr(const std::unique_ptr_Tp, _Dp ) [with _Tp=char, _Dp=std::default_deletechar]" (declared at line 262 of "/usr/include/c++/4.7/bits/unique_ptr.h") cannot be referenced -- it is a deleted function
              static decltype(__test_aux_To1(std::declval_From1()), __one())
                                               ^
              detected during:
                instantiation of "std::__is_convertible_helper_From, _To, false::__test [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" based on template arguments const std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar at line 1258
                instantiation of class "std::__is_convertible_helper_From, _To, false [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 1265
                instantiation of class "std::is_convertible_From, _To [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 117
                instantiation of class "std::__and__B1, _B2 [with _B1=std::is_convertibleconst std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar, _B2=std::is_convertibleconst int , int]" at line 848 of "/usr/include/c++/4.7/tuple"
                instantiation of "std::tuplestd::__decay_and_strip_Elements::__type... std::make_tuple(_Elements ...) [with _Elements=std::unique_ptrchar, std::default_deletechar, int]" at line 9 of "tmp.cpp"

    compilation aborted for tmp.cpp (code 2)

    If I compile this code with gcc compiler - there are no problem. What's wrong?

    DB:2.68:Unexpected Compilation Error Occured While Using Std::Make_Tuple With Std::Unique_Ptr sa


    Hello.

    I'm using Composer XE 2013 SP1 (version: 14.0.0 20130728).

    I got an error, while compiling this code:

    #include tuple
    #include memory

    int main()
    {
        auto a = std::make_tuple(std::unique_ptrchar(new char), 0);
        return 0;
    }

    Command line and comiper output is here:

    icpc tmp.cpp -gcc-name=gcc-4.7 -std=gnu++11 -lstdc++ 

    /usr/include/c++/4.7/type_traits(1251): error: function "std::unique_ptr_Tp, _Dp::unique_ptr(const std::unique_ptr_Tp, _Dp ) [with _Tp=char, _Dp=std::default_deletechar]" (declared at line 262 of "/usr/include/c++/4.7/bits/unique_ptr.h") cannot be referenced -- it is a deleted function
              static decltype(__test_aux_To1(std::declval_From1()), __one())
                                               ^
              detected during:
                instantiation of "std::__is_convertible_helper_From, _To, false::__test [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" based on template arguments const std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar at line 1258
                instantiation of class "std::__is_convertible_helper_From, _To, false [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 1265
                instantiation of class "std::is_convertible_From, _To [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 117
                instantiation of class "std::__and__B1, _B2 [with _B1=std::is_convertibleconst std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar, _B2=std::is_convertibleconst int , int]" at line 848 of "/usr/include/c++/4.7/tuple"
                instantiation of "std::tuplestd::__decay_and_strip_Elements::__type... std::make_tuple(_Elements ...) [with _Elements=std::unique_ptrchar, std::default_deletechar, int]" at line 9 of "tmp.cpp"

    compilation aborted for tmp.cpp (code 2)

    If I compile this code with gcc compiler - there are no problem. What's wrong?

  • RELEVANCY SCORE 2.68

    DB:2.68:Problems With Boost 1.49.0 Map And Flat_Map With Solaris Studio 12.3 9m


    I'm having problems using the Boost 1.49.0 map and flat_map classes. I had problems using those Boost classes on Solaris Studio 12.2 (SPARC running Solaris 10) so I upgraded to Solaris Studio 12.3 to see if that helped. Well, the compile errors are different but it still doesn't work.

    Here's the compile command line and errors:

    # CC -o tst -library=stlport4 -xtarget=ultra -m64 -I . tst.cpp
    "./boost/container/detail/flat_tree.hpp", line 169: Error: operator is not a member of boost::container::container_detail::flat_treestd::string, boost::container::container_detail::pairstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::allocatorvoid::_Tp1::Data.
    "./boost/container/flat_map.hpp", line 175: Where: While instantiating "boost::container::container_detail::flat_treestd::string, boost::container::container_detail::pairstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::allocatorvoid::_Tp1::flat_tree()".
    "./boost/container/flat_map.hpp", line 175: Where: Instantiated from boost::container::flat_mapstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int, std::lessstd::string, std::allocatorstd::pairstd::string, boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int::flat_map().
    "tst.cpp", line 49: Where: Instantiated from non-template code.
    1 Error(s) detected.

    I tried using the d option to tell the compiler to not inline functions. With d I'm getting a slightly different error:

    # CC -o tst -library=stlport4 -xtarget=ultra -m64 +d -I . tst.cpp
    "./boost/container/flat_map.hpp", line 229: Error: Cannot assign const boost::container::container_detail::flat_treeint, boost::container::container_detail::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairint, int, std::lessint, std::allocatorstd::allocatorvoid::_Tp1 to boost::container::container_detail::flat_treeint, boost::container::container_detail::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairint, int, std::lessint, std::allocatorstd::allocatorvoid::_Tp1 without "boost::container::container_detail::flat_treeint, boost::container::container_detail::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairint, int, std::lessint, std::allocatorstd::allocatorvoid::_Tp1::operator=(const boost::container::container_detail::flat_treeint, boost::container::container_detail::pairint, int, boost::container::container_detail::select1stboost::container::container_detail::pairint, int, std::lessint, std::allocatorstd::allocatorvoid::_Tp1)";.
    "./boost/container/flat_map.hpp", line 105: Where: While instantiating "boost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int::operator=(const boost::rvboost::container::flat_mapint, int, std::lessint, std::allocatorstd::pairint, int)".
    "./boost/container/flat_map.hpp", line 105: Where: Instantiated from non-template code.
    1 Error(s) detected.

    It appears that the compiler is not recognizing the operator= in flat_tree but I've checked and there are two operator= in the class flat_tree.

    This same code works fine under the g++ compiler. Any help or ideas you have would be appreciated.

    DB:2.68:Problems With Boost 1.49.0 Map And Flat_Map With Solaris Studio 12.3 9m

    If you have a service contract with Oracle, please file a bug report via your support channel. Patches are issued in response to bugs filed by supported customers, and you need a support contract to get a patch.

    We will in any case do our best to fix bugs in building BOOST that we find, or that are reported by anyone. (We run BOOST testing as part of our compiler development process, and we are just starting to test BOOST 1.49.) I can't predict when any specific problem will be fixed, or whether it will be fixed in a patch. If you have a support contract, you can escalate a bug so that it gets attention sooner.

  • RELEVANCY SCORE 2.68

    DB:2.68:Whats Different Between The Return From The Cast Operator To The Generic Return From A Function? Or More a7


    If we wrote the code like the following:

    // ConTest_Demo.cpp : Defines the entry point for the console application.
    //

    #include stdafx.h
    #include iostream
    #include windows.h
    #include conio.h

    class A
    {
    public:
    A(void): i(0)
    {
    std::cout A() std::endl;
    };

    ~A(void)
    {
    i = 0xcdcdcdcd;
    std::cout ~A() std::endl;
    };

    A(const A other): i(other.i)
    {
    std::cout A(A) std::endl;
    };

    A(A other): i(0)
    {
    i = other.i, other.i = 0;
    std::cout A(A) std::endl;
    };

    private:
    int i;
    };

    template typename T
    struct S
    {
    typedef typename std::remove_referenceT::type ExT;

    ExT val;

    S(T obj): val((T )obj)
    {
    std::cout S(), (void *)obj , (void *)val std::endl;
    };

    ~S(void)
    {
    std::cout ~S() std::endl;
    };

    operator ExT (void)
    {
    return(std::forwardT(val));
    };

    T foo(void)
    {
    return((T )val);
    };
    };

    //template typename T
    //inline T foo(T val)
    //{
    // return((T )val);
    //}

    template typename T
    void fooTest(T obj)
    {
    };

    void fTst(void)
    {
    std::cout --- 1 std::endl;
    A o1;

    std::cout --- 2 std::endl;
    A q1 = (A )o1;

    ///*const*/ A q2 = /*(A )*/SA (A());

    std::cout --- 3 std::endl;
    fooTestA (SA (A()));

    std::cout --- 4 std::endl;
    fooTestA (SA (A()).foo());

    std::cout --- 5 std::endl;
    A q3 = A();

    }

    int _tmain(int /*argc*/, _TCHAR * /*argv*/[])
    {
    fTst();
    _getch();
    return 0;
    }

    DB:2.68:Whats Different Between The Return From The Cast Operator To The Generic Return From A Function? Or More a7

    --- 3
    A()
    S(), 0018FCB0, 0018FCB0
    A(A)
    ~A()
    ~S()
    ~A()

    I am not sure why the temporary is getting created (A(A)). For what it's worth, using gcc4.5, the temporary is not created:
    --- 3
    A()
    S(), 0x22cd38, 0x22cd38
    ~S()
    ~A()

  • RELEVANCY SCORE 2.67

    DB:2.67:How To Link C++ Code Using Std::Regex On Solaris 11 9m


    I am trying to port some code from Linux which uses std::regex as follows://///////////////////////////////////////////////////////////////////////////////////////////////#include regexbool SomeClass::TestSomeRegex(string aRegex, string someValue){ std::regex rgx (aRegex); std::smatch sm; return regex_match(someValue, sm, rgx);}/////////////////////////////////////////////////////////////////////////////////////////////////the code compiles without issues using g++ -std=gnu++0x, but the linker issues the result shown below./////////////////////////////////////////////////////////////////////////////////////////////////Undefined first referenced symbol in filebool std::regex_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::sub_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , char, std::regex_traitschar (__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , __gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::match_results__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::sub_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::basic_regexchar, std::regex_traitschar const, std::bitset11u) ./SomeCode.ostd::basic_regexchar, std::regex_traitschar ::_M_compile() ./SomeCode.old: fatal: symbol referencing errors. No output written to SomeProgramcollect2: ld returned 1 exit statusgmake: *** [SomeProgram] Error 1/////////////////////////////////////////////////////////////////////////////////////////////////I have tried without success to find a solution to this using google, hence I would like to ask if anyone can suggest a workaround.

    DB:2.67:How To Link C++ Code Using Std::Regex On Solaris 11 9m

    I am trying to port some code from Linux which uses std::regex as follows://///////////////////////////////////////////////////////////////////////////////////////////////#include regexbool SomeClass::TestSomeRegex(string aRegex, string someValue){ std::regex rgx (aRegex); std::smatch sm; return regex_match(someValue, sm, rgx);}/////////////////////////////////////////////////////////////////////////////////////////////////the code compiles without issues using g++ -std=gnu++0x, but the linker issues the result shown below./////////////////////////////////////////////////////////////////////////////////////////////////Undefined first referenced symbol in filebool std::regex_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::sub_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , char, std::regex_traitschar (__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , __gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::match_results__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::sub_match__gnu_cxx::__normal_iteratorchar const*, std::basic_stringchar, std::char_traitschar, std::allocatorchar , std::basic_regexchar, std::regex_traitschar const, std::bitset11u) ./SomeCode.ostd::basic_regexchar, std::regex_traitschar ::_M_compile() ./SomeCode.old: fatal: symbol referencing errors. No output written to SomeProgramcollect2: ld returned 1 exit statusgmake: *** [SomeProgram] Error 1/////////////////////////////////////////////////////////////////////////////////////////////////I have tried without success to find a solution to this using google, hence I would like to ask if anyone can suggest a workaround.

  • RELEVANCY SCORE 2.67

    DB:2.67:Wma Code Behavior jm


    This is regarding decoding a WMA 9 std stream using WMA 9 Std reference code and WMA 10 Pro Std Reference code (with WMA std enabled while compiling).My question is, is it required that the decoded streams using WMA 10 Pro reference code is bit exact with the WMA 9 std reference code ?

    DB:2.67:Wma Code Behavior jm

    This is regarding decoding a WMA 9 std stream using WMA 9 Std reference code and WMA 10 Pro Std Reference code (with WMA std enabled while compiling).My question is, is it required that the decoded streams using WMA 10 Pro reference code is bit exact with the WMA 9 std reference code ?

  • RELEVANCY SCORE 2.67

    DB:2.67:Direct Std Rec dx


    I had a dvr receiver that i replaced with a std receiver,the dvr had two cables on the back the std has only place for one cable on the back what can be done to make this work does not need to record at allthanks

    DB:2.67:Direct Std Rec dx

    I had a dvr receiver that i replaced with a std receiver,the dvr had two cables on the back the std has only place for one cable on the back what can be done to make this work does not need to record at allthanks

  • RELEVANCY SCORE 2.66

    DB:2.66:Default Constructor For Map? 8p


    How do I create a default for the following map:std::mapstd::string, std::string labelTags;Here's the code I'm trying make the default constructor in.  It's the PathInfo constructor that I need to instantiate the maps default in.
    struct PathInfo
    {
    public:
    PathInfo(const std::string path = undef,
    const std::mapstd::string,std::string labelTags = ?????);
    void path(std::string rFolder, std::string rFile);
    void newTag(const std::string tag, const std::string value);

    private:
    std::string file();
    std::string folder();

    std::string path_;
    std::mapstd::string, std::string labelTags_;
    };

    DB:2.66:Default Constructor For Map? 8p

    As an alternative to the pointer suggestion, don't use default arguments but write two constructors instead. As your parameter is a const reference, you could write the following, but it isn't really advisable for any sort of complex type:
    PathInfo(const std::string path = undef,
    const std::mapstd::string,std::string labelTags = std::mapstd::string,std::string());
    That's an awful lot of typing; I would definitely define a typedef for the map type. Doug Harrison (Visual C++ MVP)

  • RELEVANCY SCORE 2.66

    DB:2.66:Hi Guys I Am Getting Some Linker Errors While Executing My Code....Can Any One Please Help Me Out In This...Thanks In Advance!!! d3



    C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\vpidathala\AppData\Roaming\Aleri\AleriStreamingPlatform\AleriStreamingPlatform\examples\clients\pubsub\cpp\.\temp\pubexample.exe) does not
    match the Linker's OutputFile property value (C:\Users\vpidathala\AppData\Roaming\Aleri\AleriStreamingPlatform\AleriStreamingPlatform\examples\clients\pubsub\cpp\pubexample.exe). This may cause your project to build incorrectly. To correct this, please make
    sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
    1Link:
    1 Creating library .\temp\pubexample.lib and object .\temp\pubexample.exp
    1pubsub.lib(SpSubscriptionParserBinaryImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionParserFieldDataImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionReceiveStreamBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpDataThrottler.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpRecorderBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpRecorderObserverBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPlaybackBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionThread.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpParseFieldData.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpBreakpointBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPauseStateBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpXMLRpc.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpRecorderFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPlaybackFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpGatewayCommunicator.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPublicationBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpStreamDataRecordBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpDebuggerDataRowsBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpError.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpPlatformBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpSubscriptionEventNameInfo.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
    1pubsub.lib(SpFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::append(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z)
    1pubsub.lib(SpFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::append(char const *) (__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z)
    1sp_ptypes_ext.lib(OpenSSL.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpSubscriptionParserBinaryImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpSubscriptionParserFieldDataImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpRecorderBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpRecorderObserverBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPlaybackBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpSubscriptionReceiveStreamBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall
    std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpGatewayCommunicator.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpSubscriptionThread.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpBreakpointBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPauseStateBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPlatformBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPublicationBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpSubscriptionBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpXMLRpc.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpPlatformBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) bool __cdecl std::operatorchar,struct std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar const ,class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z)
    1pubsub.lib(SpXMLRpc.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar
    const ) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::basic_stringchar,struct std::char_traitschar,class
    std::allocatorchar const ) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z)
    1pubsub.lib(SpXMLRpc.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,char const *) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z)
    1pubsub.lib(SpRecorderFactory.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,char const *) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,char const *) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z)
    1sp_ptypes_ext.lib(OpenSSL.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct std::char_traitschar,class
    std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,char const *) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z)
    1pubsub.lib(SpXMLRpc.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: int __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::compare(unsigned int,unsigned int,char
    const *,unsigned int)const (__imp_?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: int __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::compare(unsigned int,unsigned
    int,char const *,unsigned int)const (__imp_?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
    1pubsub.lib(SpRecorderFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl std::operatorchar,struct
    std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,char) (__imp_??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@D@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::operator=(char) (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: void __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::swap(class std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ) (__imp_?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z)
    1pubsub.lib(SpPlaybackFileBaseImpl.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct
    std::char_traitschar,class std::allocatorchar ::substr(unsigned int,unsigned int)const (__imp_?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: int __thiscall std::ios_base::width(int) (__imp_?width@ios_base@std@@QAEHH@Z)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: int __thiscall std::basic_streambufchar,struct std::char_traitschar ::sputn(char const *,int) (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: static bool __cdecl std::char_traitschar::eq_int_type(int const ,int const ) (__imp_?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: static int __cdecl std::char_traitschar::eof(void) (__imp_?eof@?$char_traits@D@std@@SAHXZ)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: int __thiscall std::ios_base::width(void)const (__imp_?width@ios_base@std@@QBEHXZ)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: void __thiscall std::basic_streambufchar,struct std::char_traitschar ::_Lock(void) (__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
    1sp_sasl.lib(gatewayAuth.obj) : error LNK2001: unresolved external symbol __declspec(dllimport) public: void __thiscall std::basic_streambufchar,struct std::char_traitschar ::_Unlock(void) (__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)

    DB:2.66:Hi Guys I Am Getting Some Linker Errors While Executing My Code....Can Any One Please Help Me Out In This...Thanks In Advance!!! d3

    Hi Sastry,
    Have you solved your issue?
    If you can provide some steps or sample code to reproduce this project, you will be able to get quicker
    and better responses.
    In addition,
    according to your errors ,it seems that you didnt link the necessary library. Please double-check whether link all the necessary libraries.
    More information about LNK2001:
    http://msdn.microsoft.com/en-us/library/f6xx1b1z(v=VS.100).aspx

    Best regards,
    Lucy
    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • RELEVANCY SCORE 2.66

    DB:2.66:Help Needed Std::Cin And Std::Cout Not Working In Program Int Main() 7j


    Here's my beginner's code.

    DB:2.66:Help Needed Std::Cin And Std::Cout Not Working In Program Int Main() 7j

    Wow,thisis a really ground-breaking hello world message. Good luck, Mr. Hicks,and enjoy VC.
    --pa

  • RELEVANCY SCORE 2.66

    DB:2.66:Help With Converting This Code To C#? pp


    I'm not very good with C and I have no idea what is going on in this file. Could someone explain to me what is going on, and perhaps help me get anequivalentfor C#? Thanks!

    #include boost/algorithm/string/predicate.hpp
    #include boost/unordered_set.hpp

    namespace boost {
    namespace algorithm {
    struct iequal_to : std::binary_functionstd::string, std::string, bool {
    bool operator()(std::string const x, std::string const y) const {
    return boost::algorithm::iequals(x, y, std::locale());
    }
    };

    struct ihash : std::unary_functionstd::string, std::size_t {
    std::size_t operator()(std::string const x) const {
    std::size_t seed = 0;
    std::locale locale;

    for (std::string::const_iterator it = x.begin();
    it != x.end(); ++it) {
    boost::hash_combine(seed, std::toupper(*it, locale));
    }

    return seed;
    }
    };

    };

    typedef boost::unordered_setstd::string, boost::algorithm::ihash, boost::algorithm::iequal_to caseless_set;
    };

    #endif

    DB:2.66:Help With Converting This Code To C#? pp


    The
    caseless_set class seems to be a set of strings that ignores the case of letters. Consider this minimal C# equivalent:

    classCaselessSet:HashSetString

    {

    publicCaselessSet():base(StringComparer.CurrentCultureIgnoreCase)

    {

    }

    }

  • RELEVANCY SCORE 2.66

    DB:2.66:Hash_Multimap Compile Warning 3d


    The environment is
    $ uname -a
    SunOS sha-view2 5.10 Generic_118833-24 sun4u sparc SUNW,Netra-T12
    $ CC -V
    CC: Sun C++ 5.8 Patch 121017-10 2007/02/21

    When I compile the following code, there is no warning, no error.
    typedef std::multimap uint64TP, ioCcSipTCPProcessor* TCP_CONN_MAP;
    TCP_CONN_MAP m_tcp_conn_map;
    m_tcp_conn_map.insert(std::make_pair(key, processor));

    When I change the "multimap" to "hash_multimap",
    There is no warning, no error.
    But I got the the following message, what does it mean?

    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.h", line 371: Where: While instantiating "std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::resize(unsigned long)".
    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.h", line 371: Where: While instantiating "std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::resize(unsigned long)".
    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.c", line 151: Where: While instantiating "std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::_M_new_node(const std::pairconst unsigned long, ioCcSipTCPProcessor*)".
    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.c", line 151: Where: Instantiated from std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::insert_equal_noresize(const std::pairconst unsigned long, ioCcSipTCPProcessor*).
    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.c", line 151: Where: While instantiating "std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::_M_new_node(const std::pairconst unsigned long, ioCcSipTCPProcessor*)".
    "/opt/SUNWspro/prod/include/CC/stlport4/stl/_hashtable.c", line 151: Where: Instantiated from std::hashtablestd::pairconst unsigned long, ioCcSipTCPProcessor*, unsigned long, std::hashunsigned long, std::_Select1ststd::pairconst unsigned long, ioCcSipTCPProcessor*, std::equal_tounsigned long, std::allocatorstd::pairconst unsigned long, ioCcSipTCPProcessor*::insert_equal_noresize(const std::pairconst unsigned long, ioCcSipTCPProcessor*).

    DB:2.66:Hash_Multimap Compile Warning 3d

    You say you get no warning, no error, but then list part of what is either a warning or an error message. I don't understand what you mean.

    When the compiler runs into a problem creating a template instance, it issues a warning or error at that point, followed by a walkback of intermediate template processing to help you identify which attempted instantiation caused the problem.

    You showed at least part of the walkback, but not the warning or error message.

    Finally, hash_multimap is not a standard template class, and is not in the default libCstd standard library. Are you compiling with the option
    -library=stlport4
    to get the optional STLport library?

  • RELEVANCY SCORE 2.65

    DB:2.65:Compile Stl Program z7


    I am porting my VC++ code to UNIX. I got problem when I compiled a class, which uses STL. The code fragment is as below:
    typedef std::listGL_MsgLogger* MSGLOGGER_LIST;
    MSGLOGGER_LIST m_msgLoggerList;
    I used compilation option -pta...when I removed it, it got other errors...
    What should I do?

    "/opt/SUNWspro/WS6U2/include/CC/Cstd/./list.cc", line 351: Error: Too many arguments in call to "std::listGL_MsgLogger*, std::allocatorGL_MsgLogger*::__adjacent_merge(std::listGL_MsgLogger*, std::allocatorGL_MsgLogger*::iterator, std::listGL_MsgLogger*, std::allocatorGL_MsgLogger*::iterator, std::listGL_MsgLogger*, std::allocatorGL_MsgLogger*::iterator)".
    "/opt/SUNWspro/WS6U2/include/CC/Cstd/./list", line 465: Where: While instantiating "std::listGL_MsgLogger*, std::allocatorGL_MsgLogger*::sort(bool(*)(GL_MsgLogger*const,GL_MsgLogger*const))".
    "/opt/SUNWspro/WS6U2/include/CC/Cstd/./list", line 465: Where: Instantiated from non-template code.
    1 Error(s) detected.

    DB:2.65:Compile Stl Program z7

    thanks, i am reading that chapter...and i miss one point, i am compiling my source to a static library instead of a program

  • RELEVANCY SCORE 2.65

    DB:2.65:Safecracker Program Help. x3



    program:
    // learn.cpp : Defines the entry point for the console application.
    //

    #include stdafx.h
    #include iostream
    #include safestuff.cpp

    using namespace std;
    int main()
    {
    cout Suprise, suprise! endl;
    cout The combination is (once again) endl;
    cout SafeCracker(12)endl;
    system(pause);
    return 0;

    safestuff.cpp
    using namespace std;
    #ifndef SAFESTUFF_H_INCLUDED
    #define SAFESTUFF_H_INCLUDED
    string SafeCracker(int SafeID);
    #endif // SAFESTUFF_H_INCLUDED

    SafeCracker.cpp
    #include iostream
    using namespace std;
    string SafeCracker(in SafeID)
    {
    return 13-26-16;
    }

    error code:
    1------ Build started: Project: learn, Configuration: Debug Win32 ------
    1 safestuff.cpp
    1c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\safestuff.cpp(6): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include stdafx.h' to your source?
    1 learn.cpp
    1c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\learn.cpp(16): error C2679: binary '' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(695): could be 'std::basic_ostream_Elem,_Traits std::operator char,std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,const char *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(742): or 'std::basic_ostream_Elem,_Traits std::operator char,std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,char)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(780): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,const char *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(827): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,char)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(953): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,const signed char *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(960): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,signed char)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(967): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,const unsigned char *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(974): or 'std::basic_ostream_Elem,_Traits std::operator std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,unsigned char)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(984): or 'std::basic_ostream_Elem,_Traits std::operator char,std::char_traitschar,std::string(std::basic_ostream_Elem,_Traits
    ,const _Ty )'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar,
    1 _Ty=std::string
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(1101): or 'std::basic_ostream_Elem,_Traits std::operator char,std::char_traitschar(std::basic_ostream_Elem,_Traits
    ,const std::error_code )'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(201): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (std::basic_ostream_Elem,_Traits
    (__cdecl *)(std::basic_ostream_Elem,_Traits ))'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(207): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (std::basic_ios_Elem,_Traits
    (__cdecl *)(std::basic_ios_Elem,_Traits ))'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(214): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (std::ios_base (__cdecl
    *)(std::ios_base ))'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(221): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (std::_Bool)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(241): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (short)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(275): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (unsigned short)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(295): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (int)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(320): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (unsigned int)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(340): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (long)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(360): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (unsigned long)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(381): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (__int64)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(401): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (unsigned __int64)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(422): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (float)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(442): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (double)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(462): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (long double)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(482): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (const void *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 c:\program files\microsoft visual studio 11.0\vc\include\ostream(502): or 'std::basic_ostream_Elem,_Traits std::basic_ostream_Elem,_Traits::operator (std::basic_streambuf_Elem,_Traits
    *)'
    1 with
    1 [
    1 _Elem=char,
    1 _Traits=std::char_traitschar
    1 ]
    1 while trying to match the argument list '(std::ostream, std::string)'
    1c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\learn.cpp(19): fatal error C1075: end of file found before the left brace '{' at 'c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\learn.cpp(13)' was matched
    1 SafeCracker.cpp
    1c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\safecracker.cpp(1): warning C4627: '#include iostream': skipped when looking for precompiled header use
    1 Add directive to 'stdafx.h' or rebuild precompiled header
    1c:\users\jonbecher\documents\visual studio 2012\projects\learn\learn\safecracker.cpp(7): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include stdafx.h' to your source?
    1 Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    DB:2.65:Safecracker Program Help. x3

    This is the answer: rename safestuff.cpp safecracker.h , include it in your main cpp file and remove the include
    for safecracker.cpp

    Thank you for all your help with this!

  • RELEVANCY SCORE 2.65

    DB:2.65:Why I Am Getting These Errors? fj


    Hi
    I am working on a software developed by a programmer. He developed it in Visual C++ 6.0. I have copied the code from his machine. The folder contains all the libraries and dependencies. When I compile the code in his machine, it shows no error. But when I compile in my machine it shows 7 errors. I checked everything, even the settings of the project carefully. Unfortunately, I could not find out bug. Am I missing something? I am pasting the errors i got. Would anyone help me out or suggest any links for the problem..Thanks in advance.
     
     
    F:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2118) : error C2440: 'initializing' : cannot convert from 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::const_iterator' to 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator'        No constructor could take the source type, or constructor overload resolution was ambiguousF:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2119) : error C2678: binary '!=' : no operator defined which takes a left-hand operand of type 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator' (or there is no acceptable conversion)F:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2137) : error C2440: 'initializing' : cannot convert from 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::const_iterator' to 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator'        No constructor could take the source type, or constructor overload resolution was ambiguousF:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2138) : error C2678: binary '!=' : no operator defined which takes a left-hand operand of type 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator' (or there is no acceptable conversion)F:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2157) : error C2440: 'initializing' : cannot convert from 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::const_iterator' to 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator'        No constructor could take the source type, or constructor overload resolution was ambiguousF:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2158) : error C2678: binary '!=' : no operator defined which takes a left-hand operand of type 'class std::_Treeclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,struct std:airclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::_Kfn,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass std::mapclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class c_PerformanceMeasurement,struct std::lessclass std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ,class std::allocatorclass c_PerformanceMeasurement ::iterator' (or there is no acceptable conversion)F:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2158) : fatal error C1903: unable to recover from previous error(s); stopping compilationError executing cl.exe.

    DB:2.65:Why I Am Getting These Errors? fj

    Showing this line of code would probably provide more information
     
    F:\Programming\Projects\MX5 - MSVC6\Threading.cpp(2118) :
     
    At a rough guess I would say this is an issue with iterators and pointers - the two are no longer interchangable in Visual C++ 2005.

  • RELEVANCY SCORE 2.65

    DB:2.65:Lnk 2019 Porting Error k3


     
    Hi,
     
    I'm porting a development I wrote several years ago to vs 2005.
     
    I'm getting a link 2019 2001error when compiling:
     
    Error 2 error LNK2019: unresolved external symbol class std::basic_istreamchar,struct std::char_traitschar __cdecl operator(class std::basic_istreamchar,struct std::char_traitschar ,class Stackclass BagItem ) (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAV?$Stack@VBagItem@@@@@Z) referenced in function class std::basic_istreamchar,struct std::char_traitschar __cdecl operator(class std::basic_istreamchar,struct std::char_traitschar ,class Bag ) (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVBag@@@Z) Bag.obj 
    I believe the error refers to the two friend declarations within a class definition:
     
    friend istream operator(istream, Bag);
    friend ostream operator(ostream, Bag);
     
    The code compiles, links and runs ok with my old version.
     
    Any ideas?
     
    Andy.

    DB:2.65:Lnk 2019 Porting Error k3

    Hi Rico,
     
    Thanks for replying!
     
    I have implemented operator but I've been digging further and found where the error is generated from.
     
    This is a summary of bag.h/cpp
     

    Code Block

  • RELEVANCY SCORE 2.65

    DB:2.65:Linker Error 2028 And 2019 When Building A Directshow Filter jf


    I am new to C++ programming and I am very stuck with  many Linker errors. I think i have omitted a library but I don't know which library. I am trying to build a  DirectShow Transform filter  with code copied from Microsoft DirectShow textbook. I am compiling with C++/CLI The errors are : Error    3    error LNK2028: unresolved token (0A00017B) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQAE@ABV01@@Z) referenced in function public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const ) (??0runtime_error@std@@$$FQAE@ABV01@@Z)    YuvGray.obj    Error    4    error LNK2028: unresolved token (0A00017C) public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::~basic_stringchar,struct std::char_traitschar,class std::allocatorchar (void) (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQAE@XZ) referenced in function public: virtual __thiscall std::logic_error::~logic_error(void) (??1logic_error@std@@$$FUAE@XZ)    YuvGray.obj    Error    5    error LNK2028: unresolved token (0A00017E) public: char const * __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::c_str(void)const (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQBEPBDXZ) referenced in function public: virtual char const * __thiscall std::logic_error::what(void)const (?what@logic_error@std@@$$FUBEPBDXZ)    YuvGray.obj    Error    6    error LNK2028: unresolved token (0A0001C8) public: __thiscall std::_DebugHeapAllocatorchar::_DebugHeapAllocatorchar(class std::_DebugHeapAllocatorchar const ) (??0?$_DebugHeapAllocator@D@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::_DebugHeapAllocatorchar::MarshalCopy(class std::_DebugHeapAllocatorchar *,class std::_DebugHeapAllocatorchar *) (?MarshalCopy@?$_DebugHeapAllocator@D@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    7    error LNK2028: unresolved token (0A0001DA) public: __thiscall std::allocatorchar::allocatorchar(class std::allocatorchar const ) (??0?$allocator@D@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::allocatorchar::MarshalCopy(class std::allocatorchar *,class std::allocatorchar *) (?MarshalCopy@?$allocator@D@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    8    error LNK2028: unresolved token (0A000236) public: __thiscall std::allocatorwchar_t::allocatorwchar_t(class std::allocatorwchar_t const ) (??0?$allocator@_W@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::allocatorwchar_t::MarshalCopy(class std::allocatorwchar_t *,class std::allocatorwchar_t *) (?MarshalCopy@?$allocator@_W@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    9    error LNK2028: unresolved token (0A000417) public: __thiscall std::_Lockit::_Lockit(int) (??0_Lockit@std@@$$FQAE@H@Z) referenced in function public: __thiscall std::_Iterator_base::~_Iterator_base(void) (??1_Iterator_base@std@@$$FQAE@XZ)    YuvGray.obj    Error    10    error LNK2028: unresolved token (0A000418) public: __thiscall std::_Lockit::~_Lockit(void) (??1_Lockit@std@@$$FQAE@XZ) referenced in function public: __thiscall std::_Iterator_base::~_Iterator_base(void) (??1_Iterator_base@std@@$$FQAE@XZ)    YuvGray.obj    Error    11    error LNK2028: unresolved token (0A000431) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int) (?_Debug_message@std@@$$FYAXPB_W0I@Z) referenced in function public: void __thiscall std::_Iterator_base::_Orphan_me(void) (?_Orphan_me@_Iterator_base@std@@$$FQAEXXZ)    YuvGray.obj    Error    12    error LNK2019: unresolved external symbol void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int) (?_Debug_message@std@@$$FYAXPB_W0I@Z) referenced in function public: void __thiscall std::_Iterator_base::_Orphan_me(void) (?_Orphan_me@_Iterator_base@std@@$$FQAEXXZ)    YuvGray.obj    Error    13    error LNK2019: unresolved external symbol public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::~basic_stringchar,struct std::char_traitschar,class std::allocatorchar (void) (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQAE@XZ) referenced in function public: virtual __thiscall std::logic_error::~logic_error(void) (??1logic_error@std@@$$FUAE@XZ)    YuvGray.obj    Error    14    error LNK2019: unresolved external symbol public: char const * __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::c_str(void)const (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQBEPBDXZ) referenced in function public: virtual char const * __thiscall std::logic_error::what(void)const (?what@logic_error@std@@$$FUBEPBDXZ)    YuvGray.obj    Error    15    error LNK2019: unresolved external symbol public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@$$FQAE@ABV01@@Z) referenced in function public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const ) (??0runtime_error@std@@$$FQAE@ABV01@@Z)    YuvGray.obj    Error    16    error LNK2019: unresolved external symbol public: __thiscall std::allocatorchar::allocatorchar(class std::allocatorchar const ) (??0?$allocator@D@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::allocatorchar::MarshalCopy(class std::allocatorchar *,class std::allocatorchar *) (?MarshalCopy@?$allocator@D@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    17    error LNK2019: unresolved external symbol public: __thiscall std::_DebugHeapAllocatorchar::_DebugHeapAllocatorchar(class std::_DebugHeapAllocatorchar const ) (??0?$_DebugHeapAllocator@D@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::_DebugHeapAllocatorchar::MarshalCopy(class std::_DebugHeapAllocatorchar *,class std::_DebugHeapAllocatorchar *) (?MarshalCopy@?$_DebugHeapAllocator@D@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    18    error LNK2019: unresolved external symbol public: __thiscall std::allocatorwchar_t::allocatorwchar_t(class std::allocatorwchar_t const ) (??0?$allocator@_W@std@@$$FQAE@ABV01@@Z) referenced in function public: static void __clrcall std::allocatorwchar_t::MarshalCopy(class std::allocatorwchar_t *,class std::allocatorwchar_t *) (?MarshalCopy@?$allocator@_W@std@@$$FSMXPAV12@0@Z)    YuvGray.obj    Error    19    error LNK2019: unresolved external symbol public: __thiscall std::_Lockit::~_Lockit(void) (??1_Lockit@std@@$$FQAE@XZ) referenced in function public: __thiscall std::_Iterator_base::~_Iterator_base(void) (??1_Iterator_base@std@@$$FQAE@XZ)    YuvGray.obj    Error    20    error LNK2019: unresolved external symbol public: __thiscall std::_Lockit::_Lockit(int) (??0_Lockit@std@@$$FQAE@H@Z) referenced in function public: __thiscall std::_Iterator_base::~_Iterator_base(void) (??1_Iterator_base@std@@$$FQAE@XZ)    YuvGray.obj    Error    21    error LNK2001: unresolved external symbol __CorDllMain@12    YuvGray    Error    22    fatal error LNK1120: 19 unresolved externals    .\Debug/YuvGray.dll    The libraries I have included are:   msvcrtd.lib winmm.lib strmbasd.lib odbc32.lib odbccp32.lib msvcmrt.lib and  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib   Can somebody help me out  with this, please. Any suggestions will be greatly appreciated

    DB:2.65:Linker Error 2028 And 2019 When Building A Directshow Filter jf

    If you use Visual Studio, right click on your project name in the solution window. You should see a list of options .At the bottom of the options click on
    properties. In the property pages click on Linker and then you should see
    Additional Dependencies. Add msvcprtd.lib there.William S Hendrie

  • RELEVANCY SCORE 2.65

    DB:2.65:Help With Code 8k


    Hi, just starting out with C and have an issue that I need helpwith error in code. Error states that
    not in (not in)is undefined in the source code below(have highlighted the area of code where the issue is). What have I done wrong? Thanks

    //Sort standard input alphabetically

    #include algorithm

    #include
    fstream
    #include
    iostream
    #include
    iterator
    #include
    ostream
    #include
    string
    #include
    vector

    void read(std::istream
    in, std::vectorstd::string
    text)
    {
    while(std::getline(in,
    line))

    text.push_back(line);

    }
    int
    main(intargc,
    char*
    argv[])

    if(argc
    2)

    read(std::cin, text

    {
    std::

    ifstreamin(argv[1]);

    if(not in);*****************************************

    {
    std::perror(argv[1]);

    returnEXIT_FAILURE;

    }
    read(in, text);
    }
    std::sort(text.begin(), text.end());
    std::copy(text.begin(), text.end(),
    std::ostream_iteratorstd::string(std::cout,
    \n));

    }
    else

    {
    std::vectorstd::string
    text;

    std::stringline;

    DB:2.65:Help With Code 8k


    Did your code work? It still have a problem!
    It keeps asking you to input so I added some code here:
    std::string line;
    while (std::getline(in,line))
    {
    if(line==Q)
    break;

    First, note that the thread you have replied to is ten months old. I expect the OP has moved
    on to other issues by now.

    I presume you are referring to getting input from the console (cin). When that's the case
    it's not necessary to test for any particular character such as Q, etc. Just enter Ctrl-Z
    from the console and it will signal end of file.

    - Wayne

  • RELEVANCY SCORE 2.64

    DB:2.64:Vc 2008 64 Bits : Unable To Find Std ? m3


    Hi,
    I'm trying to compile my soft on a 64 bits machine, but I got the following message :
    Error61error C2470: 'std' : looks like a function definition, but there is no parameter list; skipping apparent bodyd:\PolarLights\Aurora\Aurora\PureLight\include\Core\Kernels\Kernels.h19PureLight
    My code is simple
    #ifndef _KERNELS_H
    #define _KERNELS_H

    #include string

    namespace PureLight
    {

    // General definitions
    extern std::string KernelSource_Definitions;

    // Acceleration structure
    extern std::string KernelSource_QBVH;

    // Path tracing
    extern std::string KernelSource_PathTracing;

    // Direct light - One uniform sampling
    extern std:string Kernel_DirectLightOneUniform;

    }

    #endif
    Do I have to do something special to include the standard libraries in 64 bits ? What is strange is that I an open the 'string' file installed in the Visual Studio folder !!

    PL01

    DB:2.64:Vc 2008 64 Bits : Unable To Find Std ? m3

    Yes,
    I have just see this before your post... stupid bug are hard to solve :-)
    Thanks ;)PL01

  • RELEVANCY SCORE 2.64

    DB:2.64:Tellg Gives -1, Correct Or Not ? fc


    Hi

    Is this correct behaviour or is it undefined, the following code gives one result with gnu g++ 3.4.4 and CC Cstd, and another with CC stlport4

    g++ and CC Cstd.
    Status : Good(false) Fail(true) Bad(false)
    tellg() = -1
    Status : Good(false) Fail(false) Bad(false)
    tellg() = 1089
    Status : Good(true) Fail(false) Bad(false)
    tellg() = 1089
    Status : Good(true) Fail(false) Bad(false)
    tellg() = 1084

    CC stlport4
    Status : Good(false) Fail(true) Bad(false)
    tellg() = -1
    Status : Good(false) Fail(false) Bad(false)
    tellg() = -1
    Status : Good(true) Fail(false) Bad(false)
    tellg() = -1
    Status : Good(true) Fail(false) Bad(false)
    tellg() = -1

    compiled with CC: Sun C++ 5.6 Patch 117549-03 2005/07/19

    c++ tg.cpp
    CC tg.cpp
    CC tg.cpp -library=stlport4

    tg.cpp
    #include iostream
    #include fstream
    #include sstream

    int main()
    {
    std::ifstream ifs( "tg.cpp" );

    std::ostringstream null;

    if( ifs )
    {
    while( ifs )
    {
    null static_castchar( ifs.get() );
    }
    }
    std::cout std::boolalpha "Status : Good(" ifs.good() ") Fail(" ifs.fail() ") Bad(" ifs.bad() ")" std::endl;
    std::cout "tellg() = " ifs.tellg() std::endl;

    ifs.clear( ifs.rdstate() ~ std::ios::failbit );

    std::cout std::boolalpha "Status : Good(" ifs.good() ") Fail(" ifs.fail() ") Bad(" ifs.bad() ")" std::endl;
    std::cout "tellg() = " ifs.tellg() std::endl;

    ifs.clear();

    std::cout std::boolalpha "Status : Good(" ifs.good() ") Fail(" ifs.fail() ") Bad(" ifs.bad() ")" std::endl;
    std::cout "tellg() = " ifs.tellg() std::endl;

    ifs.seekg( -5, std::ios::cur );

    std::cout std::boolalpha "Status : Good(" ifs.good() ") Fail(" ifs.fail() ") Bad(" ifs.bad() ")" std::endl;
    std::cout "tellg() = " ifs.tellg() std::endl;
    }

    DB:2.64:Tellg Gives -1, Correct Or Not ? fc

    The stlport behavior seems to be incorrect. After clearing the error bits, tellg should report the buffer position, and seekg should seek backwards in the file.

    I don't have a suggestion for a workaround. :-(

    I have filed bug 6358552 on your behalf. If you have a service contract with Sun, you can be kept informed of progress via the support channel, and get a patch to fix the problem.

  • RELEVANCY SCORE 2.64

    DB:2.64:Can Some One Help With What Is Probably A Simple Question? 7s


    hi, this is my code;
    #include iostream
    void main() {
    char input[1];
    char cName[20];
    std::cout what is you name?? std::endl;
    std::cin cName;
    std::cout cName is your name std::endl;
    std::cout std::endl;
    std::cout do you like thin name? (y/n) std::endl;
    std::cin input;
    if(input==y)
    {
    std::cout Good for you std::endl;
    }
    else
    {
    std::cout Unlucky ever though about changeing it? std::endl;
    }
    }OK, it work until it sais 'do you like it?' but when you put in an input an error message comes up saying 'debug error... run-time check failure #2 - stack arround your vairable 'input' was corrupted.'the options are abort, retry or ignore. abort just ends it but if i press any other the other two the 'else' cout always comes up.   anyideas anyone?????

    DB:2.64:Can Some One Help With What Is Probably A Simple Question? 7s

    char input[1];That needs to be at least 2 (instead of 1) to allow a single character + the terminating null character.But even then it'll be unsafe since you can't predict what the user will enter. Use a string instead.    string quit;    cin quit;    if(quit[0] == 'y')    {        cout ok;    }That's just a sample - you'd have to check for y and Y (for instance). http://blog.voidnish.com

  • RELEVANCY SCORE 2.63

    DB:2.63:Linker Error xj


    I am try to compile a code sample for a piece of 3rd party software using the provided Makefile for my environment which is solaris. The code is written in C++. I keep running into the same linker error and cant seem to pinpoint the problem. Any help would be greatly appriciated. Thank you. The compiler being used is CC.

    mkdir -p obj
    CC -c -DSOLARIS -I./ -I../../../../../../common/include/ -c -w -O -o obj/DataFileReader.o src/DataFileReader.cc
    CC -c -DSOLARIS -I./ -I../../../../../../common/include/ -c -w -O -o obj/batch.o src/batch.cc
    CC -DSOLARIS -L/usr/local/lib -R/usr/local/lib -L/usr/lib -L/usr/local/lib obj/DataFileReader.o obj/batch.o -L../../../lib -lg1client -lsocket -lnsl -o bin/batch
    Undefined first referenced
    symbol in file
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__sun_append(const std::basic_stringchar,std::char_traitschar,std::allocatorchar ) ../../../lib/libg1client.so
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__sun_concat(const std::basic_stringchar,std::char_traitschar,std::allocatorchar )const ../../../lib/libg1client.so
    std::basic_stringchar,std::char_traitschar,std::allocatorchar std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__sun_append(const char*) ../../../lib/libg1client.so
    ld: fatal: Symbol referencing errors. No output written to bin/batch
    *** Error code 1
    make: Fatal error: Command failed for target `bin/batch'

    DB:2.63:Linker Error xj

    Fixed it. Only took a couple days of wasted time I could have been coding. libCstd.so had misteriously dissapeared from the dev box I was working on.

  • RELEVANCY SCORE 2.63

    DB:2.63:Opening The Deployment Manager dp


    Hello ,

    Is it possible to open the Deployment Manager without OWB client ? Therefore , we can direct execute the Deployment Manager from the operating system. Thanks !

    Daniel

    DB:2.63:Opening The Deployment Manager dp

    Yo cannot launch the Deployment Manager UI from scripting in the current release.

    Regards:
    Igor

  • RELEVANCY SCORE 2.63

    DB:2.63:Billin Schedule Save 7z



    Hi ,

    I have a requirement such as to update the billing items for a billing plan . The call would be made remotely .. I could go in for a BDC but the items could be large in no and this could complicate BDC Code.

    I was looking for Direct Update to STD SAP tables (FPLT )and found the FM - BILLING_SCHEDULE_SAVE .

    this does the needful(note sap useses this as well for trx - va01 va02)

    But there is a logic of secure card check where my code is failing .

    Has anyone worked on this aspect and been successful in direct update to table FPLT ?

    DB:2.63:Billin Schedule Save 7z


    Hi ,

    I have a requirement such as to update the billing items for a billing plan . The call would be made remotely .. I could go in for a BDC but the items could be large in no and this could complicate BDC Code.

    I was looking for Direct Update to STD SAP tables (FPLT )and found the FM - BILLING_SCHEDULE_SAVE .

    this does the needful(note sap useses this as well for trx - va01 va02)

    But there is a logic of secure card check where my code is failing .

    Has anyone worked on this aspect and been successful in direct update to table FPLT ?

  • RELEVANCY SCORE 2.62

    DB:2.62:Error Using Winsock.H mk


    i try do a program for connect to mysql from Visual C, my problem is:
    if i try compile get this errors:
    /*Code*/

    #include stdio.h
    #include winsock.h
    #include connection.h

    int main()
    {
    MYSQL *conexion;
    if(mysql_init(conexion) == NULL)
    return 1;//error
    mysqlpp::Connection::Connection(db,localhost,root,password,3306);
    return 0;
    }

    c:\program files\microsoft visual studio 11.0\vc\include\winnt.h(3035): warning C4103: 'c:\program files\microsoft visual studio 11.0\vc\include\winnt.h' : se ha cambiado la alineación después de incluir el encabezado; puede ser que falte #pragma pack(pop)
    c:\program files\microsoft visual studio 11.0\vc\include\winnt.h(3327): warning C4103: 'c:\program files\microsoft visual studio 11.0\vc\include\winnt.h' : se ha cambiado la alineación después de incluir el encabezado; puede ser que falte #pragma pack(pop)
    c:\program files\microsoft visual studio 11.0\vc\include\winnt.h(3423): warning C4068: pragma desconocida
    c:\program files\microsoft visual studio 11.0\vc\include\winnt.h(3428): warning C4068: pragma desconocida
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1252): error C2144: error de sintaxis : 'void' debe estar precedido de ';'
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1252): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1253): error C2144: error de sintaxis : 'void' debe estar precedido de ';'
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1253): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1253): error C2086: 'int DECLSPEC_NORETURN' : nueva definición
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1252) : vea la declaración de 'DECLSPEC_NORETURN'
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1313): error C2144: error de sintaxis : 'void' debe estar precedido de ';'
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1313): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1313): error C2086: 'int DECLSPEC_NORETURN' : nueva definición
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1252) : vea la declaración de 'DECLSPEC_NORETURN'
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdce.h(366): error C2144: error de sintaxis : 'void' debe estar precedido de ';'
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdce.h(366): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdce.h(366): error C2086: 'int DECLSPEC_NORETURN' : nueva definición
    c:\program files\microsoft visual studio 11.0\vc\include\winbase.h(1252) : vea la declaración de 'DECLSPEC_NORETURN'
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdcep.h(89): error C3646: 'I_RpcAllocate' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdcep.h(89): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdcep.h(89): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\shellapi.h(129): warning C4103: 'c:\program files\microsoft visual studio 11.0\vc\include\shellapi.h' : se ha cambiado la alineación después de incluir el encabezado; puede ser que falte #pragma pack(pop)
    c:\program files\microsoft visual studio 11.0\vc\include\shellapi.h(265): warning C4103: 'c:\program files\microsoft visual studio 11.0\vc\include\shellapi.h' : se ha cambiado la alineación después de incluir el encabezado; puede ser que falte #pragma pack(pop)
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(442): error C3646: 'inet_ntoa' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(442): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(442): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(442): error C2733: 'DECLARE_STDCALL_P': no se permite una segunda vinculación C de la función sobrecargada
    c:\program files\microsoft visual studio 11.0\vc\include\rpcdcep.h(89) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451): error C3646: 'gethostbyaddr' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451): error C2733: 'DECLARE_STDCALL_P': no se permite una segunda vinculación C de la función sobrecargada
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(442) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(452): error C3646: 'gethostbyname' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(452): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(452): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(452): error C2556: 'int (__cdecl *DECLARE_STDCALL_P(hostent *))(const char *)' : la función sobrecargada sólo se diferencia de 'int (__cdecl *DECLARE_STDCALL_P(hostent *))(const char *,int,int)'
    por el tipo de valor devuelto
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(452): error C2371: 'DECLARE_STDCALL_P' : nueva definición; tipos básicos distintos
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453): error C3646: 'getservbyport' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453): error C2733: 'DECLARE_STDCALL_P': no se permite una segunda vinculación C de la función sobrecargada
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(451) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(454): error C3646: 'getservbyname' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(454): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(454): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(454): error C2556: 'int (__cdecl *DECLARE_STDCALL_P(servent *))(const char *,const char *)' : la función sobrecargada sólo se diferencia de 'int (__cdecl *DECLARE_STDCALL_P(servent *))(int,const
    char *)' por el tipo de valor devuelto
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(454): error C2371: 'DECLARE_STDCALL_P' : nueva definición; tipos básicos distintos
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455): error C3646: 'getprotobynumber' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455): error C2733: 'DECLARE_STDCALL_P': no se permite una segunda vinculación C de la función sobrecargada
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(453) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(456): error C3646: 'getprotobyname' : especificador de invalidación desconocido
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(456): error C2091: la función devuelve una función
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(456): error C4430: falta el especificador de tipo; se presupone int. Nota: C no admite default-int
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(456): error C2556: 'int (__cdecl *DECLARE_STDCALL_P(protoent *))(const char *)' : la función sobrecargada sólo se diferencia de 'int (__cdecl *DECLARE_STDCALL_P(protoent *))(int)' por el tipo
    de valor devuelto
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(456): error C2371: 'DECLARE_STDCALL_P' : nueva definición; tipos básicos distintos
    c:\program files\microsoft visual studio 11.0\vc\include\winsock.h(455) : vea la declaración de 'DECLARE_STDCALL_P'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(void),_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla de
    clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(void),_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(void),_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(void),_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t),_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t),_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t),_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t),_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t),_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla de
    clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t),_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t),_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t),_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(224) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t),_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(void) const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(void) const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(225) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(void) volatile,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(void) volatile,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) volatile,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) volatile,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) volatile,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) volatile,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) volatile,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) volatile,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) volatile,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la plantilla
    de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) volatile,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) volatile,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) volatile,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha
    definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(226) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(void) volatile const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(void) volatile const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) volatile const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(void) volatile const,_Tyx,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) volatile const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido la
    plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t) volatile const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) volatile const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t) volatile const,_Tyx,_Vx0_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil' : ya se ha
    definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,std::_Nil,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se ha definido
    la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil' : ya se
    ha definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,std::_Nil,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya se ha
    definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227): error C2953: 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil' : ya
    se ha definido la plantilla de clase
    c:\program files\microsoft visual studio 11.0\vc\include\xrefwrap(227) : vea la declaración de 'std::_Result_of_Ret(__thiscall _Ty::* const )(_V0_t,_V1_t,_V2_t,_V3_t,_V4_t) volatile const,_Tyx,_Vx0_t,_Vx1_t,_Vx2_t,_Vx3_t,_Vx4_t,std::_Nil,std::_Nil'
    c:\program files\microsoft visual studio 11.0\vc\include\immintrin.h(1861): warning C4391: 'unsigned long _xbegin(void)' : tipo incorrecto de valor devuelto para la función intrínseca, se esperaba 'unsigned int'

    Please help me, it languaje of compiller is spanish.

    DB:2.62:Error Using Winsock.H mk

    There is no connection.h in VC includes or in Windows SDK.
    Please complain to mysql, or where you've received this code example.
    -- pa

  • RELEVANCY SCORE 2.62

    DB:2.62:Compile Error At Ex10_14 xa


    Hi! Reading Ivors' Horton Beginning Visual C
    At Ex10_14 page 561 I get a compile Error/s
    Here is the code
    // Ex10_14.cpp
    // Using stream and inserter iterators
    #include iostream
    #include numeric
    #include vector
    #include iterator

    int main()
    {
    std::vectorint numbers;
    std::cout Enter a series of integers separated by spaces
    followed by CtrlZ or a letter: std::endl;

    std::istream_iteratorint input{ std::cin }, input_end;
    std::ostream_iteratorint out{ std::cout, };

    std::copy(input, input_end, std::back_inserterstd::vectorint {numbers});

    std::cout You entered the following values: std::endl;
    std::copy(std::cbegin(numbers), std::cend(numbers), out);

    std::cout \nThe sum of these values is
    std::accumulate(std::cbegin(numbers), std::cend(numbers), 0) std::endl;
    }

    Error at line 17 before {numbers});
    Thanks

    DB:2.62:Compile Error At Ex10_14 xa

    VC 2013, VC14 CTP4,clang 3.5 not set to MS compatibility mode. I could try mingw 4.9 if you wish.
    From 2013
    1------ Build started: Project: TestFun, Configuration: Debug x64 ------
    1 main.cpp
    1main.cpp(15): error C3321: initializer-list unexpected in this context
    1main.cpp(15): error C2780: '_OutTy *std::copy(_InIt,_InIt,_OutTy ()[_OutSize])' : expects 3 arguments - 2 provided
    1 C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(2140) : see declaration of 'std::copy'
    1main.cpp(15): error C2780: '_OutIt std::copy(_InIt,_InIt,_OutIt)' : expects 3 arguments - 2 provided
    1 C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(2122) : see declaration of 'std::copy'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    From 14, almost identical to the above
    1------ Build started: Project: TestFun, Configuration: Debug x64 ------
    1 main.cpp
    1main.cpp(15): error C3321: initializer-list unexpected in this context
    1main.cpp(15): error C2780: '_OutTy *std::copy(_InIt,_InIt,_OutTy ()[_OutSize])': expects 3 arguments - 2 provided
    1 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2123): note: see declaration of 'std::copy'
    1main.cpp(15): error C2780: '_OutIt std::copy(_InIt,_InIt,_OutIt)': expects 3 arguments - 2 provided
    1 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility(2111): note: see declaration of 'std::copy'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    From clang
    main.cpp:15:70: error: expected ')'
    ...input_end, std::back_inserter std::vectorint {numbers});
    ^
    main.cpp:15:11: note: to match this '('
    std::copy(input, input_end, std::back_inserter std::vectorint...

    Also, the gcc and clang compilers on that same site come up with the same problem. So either your works for me doesn't work, or something is wrong with the compilers involved.

    This is a signature Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the
    major point of my posts is to aid in the learning process.

  • RELEVANCY SCORE 2.62

    DB:2.62:Deployment Utility (Error Code -33) dm



    Hello,

    I was hoping to get some help on the following issue I've been seeing with TestStand 2010 SP1's Deployment Utility. Everytime I start theDeployment Utility it appears to reinitialize to the default settings for the application. Even if Iattempt to loadaTSD file, the Deployment Utility would quickly flash the settings and properties from the TSD file but would reinitialize quickly right after. The following are the messages from the status log:

    Starting a log for the deployment.--------------------------------Error occurredError Code:-33TestStand - Deployment Utility Splash Screen.vi TestStand - Distribution Wizard GUI.vi TestStand - Load Engine Parts from Ini File.vi TestStand - Process Engine Info Dependencies.vi TestStand - Find Direct Engine Info Dependencies.vi TestStand - Get Dependent Products.vi MDFProdPreview_AddProductDone.vi

    --------------------------------+++++++++++++++++++++++++++++++++++++++

    Any idea what this Error Code -33 is? I could not find any information on this issue.

    Thanks for any assistance,

    Peter

    DB:2.62:Deployment Utility (Error Code -33) dm


    Hello Peter,

    Did you move the TSD File after saving it? Please try leaving it in the same file location and see if that works.

    I have a couple more ideas to try:1) Can you recreate the TSD file from scratch? Perhaps something did not shutdown properly and caused the file to become corrupted.2) You could try returning the computer to a Restore point when TestStand wasn't throwing this error and see if this fixes the issue. SeeExternal Link: Windows 7 System Restore3) Were there any updates applied when the computer rebooted?




    Taylor B.National Instruments

  • RELEVANCY SCORE 2.62

    DB:2.62:Pa4wp-Std Cant Install Because Mysql / Root / Passwd 3s





    Hi.

    When try to install pa4wp-std get error. I try any solutions but no work.

    Code:

    DB:2.62:Pa4wp-Std Cant Install Because Mysql / Root / Passwd 3s




    Solved.

    my.cnf cant use for escape password

    Ridiculous.

  • RELEVANCY SCORE 2.62

    DB:2.62:Enhancement To Convert Direct Mat To Indirect Mat In S/C Po In Srm7.0 jp



    Hi Experts ,

    Iu2019m fed up with this Direct and Indirect Material restriction in SRM.

    We are configuring SRM7.0 with ECC6 ( Ehp4) having Classic deployment and will connect Suppliers with MM-SUS scenario .

    Normally we have below 4 scenario (that we are going to use) in SRM and std behaviour of them

    1) Shopping Cart ( Indirect Mat )- Creates Classic PO- No Worries !! .

    2) Shopping Cart ( Direct Mat )- Creates Ext Classic PO in SRM, then it replicates as read only copy to ECC.

    3) SRM Local PO ( Indirect Mat )- Creates Ext Classic PO in SRM, then it replicates as read only copy to ECC.

    4) SRM Local PO ( Direct Mat )- Creates Ext Classic PO in SRM, then it replicates as read only copy to ECC.

    As a part of standard SAP, it is not possible to procure Direct Material through Classic deployment.

    However there is below workaround for this..that I learnt ..in Shopping cart ( donu2019t know about SRM Local PO)

    a. Hide "Order as Direct Material" checkbox on shopping Cart screen.

    b. Create custom Check box to u201COrder a direct materialu201D

    c. If user clicks on new u201COrder a direct materialu201D check box, some (dummy) accounting data will get defaulted to some value which we will decide.

    d. Use BADi BBP_CREATE_BE_PO_NEW to remove this defaulted dummy accounting data when SC is passed to back end to create/replicate PO respectively, so Material will be again direct in B/E

    Can someone suggest/confirm , by doing above enhancement ,

    In case 2) i.e. Shopping Cart ( Direct Mat ), whether the PO will be typical Classic PO ( ECC PO) just like std Shopping Cart ( Indirect Mat ) OR same like SAP std ,this will create PO in SRM only and replicate in ECC, but can be editable in ECCu2026.? and where we can take PO printouts in ECC or SRM or both ?

    In case 3) 4) of SRM Local PO ,Is above ( any other ) enhancement will work, to make the PO editable in ECC ? If yes, how ?

    Ultimately we want to have editable PO in ECC from S/C and SRM PO for all type of material i.e. Dircet/Indirect/Service..etc

    Thanks in advance.

    Regards

    NAP

    DB:2.62:Enhancement To Convert Direct Mat To Indirect Mat In S/C Po In Srm7.0 jp


    Thanks Ramki.

    Regarding,

    In scenario 3 4, you are creating SRM PO directly. So, there is no source-of-supply determination here.

    Is it possible any how , by doing some enhancement... using some BADi /Exit..etc to pull ECC Contract as a Source of Supply, while creating SRM PO directly ..just like in ME21N in ECC we take refernce of Contract ?

    Had some one done this ?

    It is one of the big pain for us..

    THanks

    NAP

  • RELEVANCY SCORE 2.62

    DB:2.62:Cant Transform A Vector Of Strings To Multimap pj


    Hi, why doesn't work the code like

    #include algorithm
    #include iterator
    #include string
    #include vector
    #include map
    #include utility

    int main (int, char **) {
    std::vectorstd::string v;

    //... some code to create elements for the vector

    std::multimapstd::string, unsigned mm;
    std::transform (v.begin (), v.end (), std::inserter(mm, mm.begin ()),
    std::bind2nd (std::make_pairstd::string, unsigned, 0));
    }

    ? It doesn't work even when I create second vector:

    ...

    std::vectorunsigned v1 (v.size ());

    std::transform (v.begin (), v.end (), v1.begin (),
    std::inserter (mm, mm.begin ()),
    std::make_pairstd::string, unsigned);
    ...

    DB:2.62:Cant Transform A Vector Of Strings To Multimap pj

    Thank you all, Igor I work in MS Visual Studio 2010 and the code for C11 works, thank you very much!

  • RELEVANCY SCORE 2.62

    DB:2.62:Compilation Error 9s


    Hi,
    We have recently upgraded our compiler from
    CC: WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2
    to
    CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 .
    Now when I am compiling my code, we are getting some errrors:
    /opt/forte6/SUNWspro/bin/CC -D_REENTRANT -DPT_SOLARIS -ptr/export/home/ehstash -I../idl -I/opt/inprise/visibroker_cpp/include -I/export/home/ehstash/work/6.0/dev -I/export/home/ehstash/work/6.0/dev/common/stl -I/opt/cmgcommon/tools/SentinelLM/include -features=rtti -instances=static -xildoff -mt -DTHREAD -DSOLARIS -DSOLARIS2_7 -DPT_LOCAL_OVERRIDE -DPT_DEBUG_COUT -g -KPIC -DREV_INFO='""' -c -o ../obj/ManagedObjectFactoryImpl.o ManagedObjectFactoryImpl.cpp
    "/export/home/ehstash/work/6.0/dev/common/pt/local.h", line 272: Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to thr_create(void*, unsigned, extern "C" void*(*)(void*), void*, long, unsigned*) is being passed void*(*)(void*).
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2005: Error: std::includesstd::InputIterator1, std::InputIterator2(std::InputIterator1, std::InputIterator1, std::InputIterator2, std::InputIterator2), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2021: Error: std::includesstd::InputIterator1, std::InputIterator2, std::Compare(std::InputIterator1, std::InputIterator1, std::InputIterator2, std::InputIterator2, std::Compare), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2369: Error: std::lexicographical_comparestd::InputIterator1, std::InputIterator2(std::InputIterator1, std::InputIterator1, std::InputIterator2, std::InputIterator2), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2382: Error: std::lexicographical_comparestd::InputIterator1, std::InputIterator2, std::Compare(std::InputIterator1, std::InputIterator1, std::InputIterator2, std::InputIterator2, std::Compare), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2398: Error: std::next_permutationstd::BidirectionalIterator(std::BidirectionalIterator, std::BidirectionalIterator), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2429: Error: std::next_permutationstd::BidirectionalIterator, std::Compare(std::BidirectionalIterator, std::BidirectionalIterator, std::Compare), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2460: Error: std::prev_permutationstd::BidirectionalIterator(std::BidirectionalIterator, std::BidirectionalIterator), returning int, was previously declared returning bool.
    "/opt/forte6/SUNWspro/WS6U1/include/CC/Cstd/./algorithm.cc", line 2491: Error: std::prev_permutationstd::BidirectionalIterator, std::Compare(std::BidirectionalIterator, std::BidirectionalIterator, std::Compare), returning int, was previously declared returning bool.
    8 Error(s) and 1 Warning(s) detected.
    gmake: *** [../obj/ManagedObjectFactoryImpl.o] Error 8

    I think its because of some change in bool support with the previous compiler but not sure about it. Can anybody please help me.

    Regards
    -tarun

    DB:2.62:Compilation Error 9s

    WS6u1 is very old and is no longer actively supported. If you don't need to support versions of Solaris older than Solaris 8, you should upgrade to Sun Studio 11, which is free.
    http://developers.sun.com/sunstudio

    If you still need to support old versions of Solaris, you should still update to WS6 Update 2, which I think is a free update for licensed users of Update 1. WS6u2 is End Of Life, but provides a noticeable improvement over Update 1.

    When moving from C++ 4.2 to recent compilers, you need to review the C++ MIgration Guide that comes with the compiler. It covers all the issues and error messages you are likely to encounter.

    The section on pointers to functions covers the warning about extern "C" versus extern "C++" functions.

    You indeed have issues with bool, and you will have to review your code.

    I see that your code uses the C++ standard library, a feature that was not available with C+ 4.2. That's a big jump to take all at once.

    It might be too late, but I recommend the following sequence for migrating from C++ 4.2.

    1. Build your application with C++ 4.2. Fix the code to remove all compiler warnings.

    2. Build your application with the new compiler using the option -compat=4. The compiler emulates C++ 4.2, but disallows some code that generated "Anachronism" warnings. Fix your code to eliminate any error or warning messages. The C++ Migration Guide lists all the issues you might encounter, with examples of how to fix your code.

    2. Build your application without using -compat=4, but adding the option -library=iostream. The compiler will operate in standard C++ mode, but use the "classic" iostream library that is used in C++ 4.2. Using the Migration Guide, fix your code to remove all errors and warnings.

    3. Build your application without using -library=iostream. The application will now use standard iostreams. Simple iostream usage is the same for both. If you have written your own stream classes or manipulators, they may need to be modified.

    4. Now you can start using the C++ standard library.

  • RELEVANCY SCORE 2.61

    DB:2.61:Lnk2005 When Using Std::Ostringstream x7


    Hi all.
    Im using VS2010 under Windows 7 (64).
    Im building a large source package which is divided into two separate libraries (dynamic linking: .lib, .dll).
    in the first library, a.lib we are using both std::stringstream and std::ostringstream. a.lib depends on other libraries, all built by myself using CMake and VS2010. CMake defaults to /MD code generation (MultiThreaded). Im using this consistently over all
    my libraries (just double checked to be sure).
    When I build the next library, b.lib, which depends on a.lib, I get the following linking errors:

    Linking of b.lib:
    1a.lib(agx.dll) : error LNK2005: public: void __thiscall std::basic_ostringstreamchar,struct std::char_traitschar,class std::allocatorchar ::`vbase destructor'(void) (??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ)
    already defined in ImageCapture.obj

    1a.lib(agx.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_ostringstreamchar,struct std::char_traitschar,class std::allocatorchar
    ::str(void)const (?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in ImageCapture.obj
    1a.lib(agx.dll) : error LNK2005: public: __thiscall std::basic_ostringstreamchar,struct std::char_traitschar,class std::allocatorchar ::basic_ostringstreamchar,struct std::char_traitschar,class std::allocatorchar
    (int) (??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z) already defined in ImageCapture.obj

    Ok, I go into the sourcecode of ImageCapture.cpp and remove the use of std::ostringstream.
    And everything builds.
    Next, I try to use std::ostringstream in some other cpp file of the b.lib, so I just copy the code from ImageCapture.cpp into another .cpp file in b.lib, including the #include directives...
    It links just fine.

    One important thing to mention, all of this works just fine in VS2008.

    DB:2.61:Lnk2005 When Using Std::Ostringstream x7

    Thanks guys, This help me fix the same issue by using containment replacing original inheritancefrom ostringstream class. I had almost given up and was inititaing to contact microsoft on this issue.

  • RELEVANCY SCORE 2.61

    DB:2.61:How Does C++ Amp Work With Ezrgb24? p9


    Hi
    I am trying to process some HD images in real time using DirectShow filter EZRGB24. The processing methods I use are more complicated than the original ones in EZRGB24 so I need a faster way of processing. I decided to use C AMP for parallel processing.
    However, as soon as I included amp.h into the source file, a lot of 'error LNK2019' came out. I have searched for an answer but failed. Here are three of them, and there are 44 error 2019 in total.
    1ezrgb24.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: __thiscall std::_Lockit::_Lockit(int) (__imp_??0_Lockit@std@@QAE@H@Z) referenced in function int __stdcall std::operator-class std::_Vector_iteratorclass
    std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned char ,class std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct
    Concurrency::details::_Task_implunsigned char (class std::move_iteratorclass std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned
    char ,class std::move_iteratorclass std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned char
    const ) (??$?GV?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@V?$shared_ptr@U?$_Task_impl@E@details@Concurrency@@@std@@@std@@@std@@@std@@V01@@std@@YGHAAV?$move_iterator@V?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@V?$shared_ptr@U?$_Task_impl@E@details@Concurrency@@@std@@@std@@@std@@@std@@@0@ABV10@@Z)
    1ezrgb24.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: __thiscall std::_Lockit::~_Lockit(void) (__imp_??1_Lockit@std@@QAE@XZ) referenced in function int __stdcall std::operator-class std::_Vector_iteratorclass
    std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned char ,class std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct
    Concurrency::details::_Task_implunsigned char (class std::move_iteratorclass std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned
    char ,class std::move_iteratorclass std::_Vector_iteratorclass std::_Vector_valstruct std::_Simple_typesclass std::shared_ptrstruct Concurrency::details::_Task_implunsigned char
    const ) (??$?GV?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@V?$shared_ptr@U?$_Task_impl@E@details@Concurrency@@@std@@@std@@@std@@@std@@V01@@std@@YGHAAV?$move_iterator@V?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@V?$shared_ptr@U?$_Task_impl@E@details@Concurrency@@@std@@@std@@@std@@@std@@@0@ABV10@@Z)
    1ezrgb24.obj : error LNK2019: unresolved external symbol __declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int) (__imp_?_Debug_message@std@@YAXPB_W0I@Z) referenced in function void __stdcall
    std::_Debug_pointerchar(char const *,wchar_t const *,unsigned int) (??$_Debug_pointer@D@std@@YGXPBDPB_WI@Z)

    And also 3 error LNK 2001:
    1ezrgb24.obj : error LNK2001: unresolved external symbol public: __thiscall Concurrency::runtime_exception::runtime_exception(class Concurrency::runtime_exception const ) (??0runtime_exception@Concurrency@@QAE@ABV01@@Z)
    1ezrgb24.obj : error LNK2001: unresolved external symbol public: virtual __thiscall Concurrency::runtime_exception::~runtime_exception(void) (??1runtime_exception@Concurrency@@UAE@XZ)
    1ezrgb24.obj : error LNK2001: unresolved external symbol __declspec(dllimport) public: static wchar_t const * const Concurrency::accelerator::cpu_accelerator (__imp_?cpu_accelerator@accelerator@Concurrency@@2QB_WB)
    1Debug\EZRGB24.dll : fatal error LNK1120: 47 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Could anyone help me with this problem please?

    The second question is that I am not sure where and how to insert the AMP things in the DirectShow filter. Should I put the AMP code together with the image processing code, or put it in an individual file or function?

    Thanks a lot in advance.

    Lin

    DB:2.61:How Does C++ Amp Work With Ezrgb24? p9

    Hi Hasibur
    Thank you so much! I set the 'Ignore all default libraries' option from Yes to No and it works well. Really helpful!

  • RELEVANCY SCORE 2.61

    DB:2.61:Archiving Collocated With Ocs Std Edition Server + Sql Express Edition Collocated With Sql 2005 Server Sp2 On Same Ocs Std Edition Server 18


    Hi We have a small deployment for about 100 users and we want to collocate archiving server with ocs std edition server.Can we install SQL Express Edition collocated with SQL 2005 server SP2 on same OCS std edition server ??Cheers

    DB:2.61:Archiving Collocated With Ocs Std Edition Server + Sql Express Edition Collocated With Sql 2005 Server Sp2 On Same Ocs Std Edition Server 18

    If we had already installed SQL Express 2005 from the OCS  setup wizard;can we install later on a new SQL Express 2005 from it's own setup files with a new named instance? Is  SQL Express 2005 supported for archiving and cdr?Cheers

  • RELEVANCY SCORE 2.61

    DB:2.61:Migration Error: Unable To Obtain Ms-Sql Data Path x3





    Hi!

    When migrating (windows) from 7.6 to 9.2 I receive the following error (amongst others).

    Im wondering what is going wrong and what I can do to solve the problem.
    (Search on google returned 0 matches)

    message code=FailedDatabaseDeployment severity=error
    contextplesk:atabaseDeployer::act/context
    file.\databases.cpp/file
    line193/line
    textFailed deployment of database wdb_laswerk (domain laswerk.be)/text
    message code=Cannot unpackDb severity=error
    textpsadumpagent.InformationalException: Unable to restore MS-SQL database wdb_laswerk to MS-SQL server localhost. Error info:
    Unable to obtain MS-SQL Data path. ---gt; System.Exception: Unable to obtain MS-SQL Data path.
    at psadumpagent.RestoreEnv.oldRestore(SqlConnection con, String dbName, String fileName)
    at psadumpagent.RestoreEnv.RestoreMsSQLDatabase(Cid cid, String databaseName, String host, String port, String user, String password)
    --- End of inner exception stack trace ---
    at psadumpagent.RestoreEnv.RestoreMsSQLDatabase(Cid cid, String databaseName, String host, String port, String user, String password)
    at psadumpagent_proxy.DumpAgentProxy.RestoreMsSQLDatabase(basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* cidType, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* cidPath, vectorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;\,std::allocatorlt;std::basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt; gt; gt;* cidFiles, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* databaseName, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* host, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* port, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* user, basic_stringlt;char\,std::char_traitslt;chargt;\,std::allocatorlt;chargt; gt;* password)/text
    /message
    /message

  • RELEVANCY SCORE 2.61

    DB:2.61:Std::Make_Pair And Vs 2013 9m


    I have the follwoing code
    std::vectorstd::string elems;
    m_data.coords[i] = std::make_pair(data.Coords[i].BoolVal, elems);

    this compiles well in VS 2010
    With VS 2013 I get
    Error1error C2664: 'std::pairbool,std::vectorstd::string,std::allocator_Ty std::make_pairbool,std::vector_Ty,std::allocator_Ty(_Ty1 ,_Ty2 )' : cannot convert argument 2 from
    'std::vectorstd::string,std::allocator_Ty' to 'std::vectorstd::string,std::allocator_Ty 'D:\arbeit\projekte\palo\palo_engine3_jenkins\Jedox.Palo.Comm\Connection.cpp27921Jedox.Palo.Comm
    from output
    Connection.cpp
    Connection.cpp(2792): error C2664: 'std::pairbool,std::vectorstd::string,std::allocator_Ty std::make_pairbool,std::vector_Ty,std::allocator_Ty(_Ty1 ,_Ty2 )' : cannot convert argument 2 from
    'std::vectorstd::string,std::allocator_Ty' to 'std::vectorstd::string,std::allocator_Ty '
    with
    [
    _Ty=std::string
    , _Ty1=bool
    , _Ty2=std::vectorstd::string,std::allocatorstd::string
    ]
    and
    [
    _Ty=std::string
    ]
    and
    [
    _Ty=std::string
    ]
    You cannot bind an lvalue to an rvalue reference
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 3 skipped ==========
    How msut I rewrite the make_pair line, so that it does compile with VS 2010 and VS 2013 ?
    Hendrik Schmieder

    DB:2.61:Std::Make_Pair And Vs 2013 9m

    There was no Need to reopen bug Report, they already answered it.
    And now there's also sample code.

  • RELEVANCY SCORE 2.61

    DB:2.61:C++ Linking Error Undefined Symbols Aix 5.3 Xlc Bdb 4.7 9p


    I am getting the following linking error while linking the MyCb example given in Berkley DB guide

    xlC -bnoquiet -o /ra2/frt_bld/TMPBIN/BDBtest \
    /ra2/frt_bld/TMPOBJ/DBAbs.o \
    /ra2/frt_bld/TMPOBJ/MyDb.o \
    /ra2/frt_bld/TMPOBJ/PPNum.o \
    /ra2/frt_bld/TMPOBJ/PPNumStore.o \
    /ra2/frt_bld/TMPOBJ/PPNumStoreDB.o \
    /ra2/frt_bld/TMPOBJ/UTDbtest.o \
    /ra2/frt_bld/TMPOBJ/UTPPNUm.o \
    -lC_r ../../../ACE_wrappers/ace/libACE.so -ldb_cxx -L../../../db-4.7.25/build_unix -L/usr/local/ssl -L/../../../ACE_wrappers/ace -lcrypto -lpthread -lz -lm -o /ra2/frt_bld/TMPBIN/BDBtest

    ld: 0711-318 ERROR: Undefined symbols were found.
    The following symbols are in error:
    Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object}
    RLD: Address Section Rld-type Referencing Symbol
    ----------------------------------------------------------------------------------------------
    .Db::set_error_stream(std::basic_ostreamchar,std::char_traitschar *) [1010] ER PR MyDb.cpp(/ra2/frt_bld/TMPOBJ/MyDb.o)
    00003b50 .text R_RBR [148] .MyDb::MyDb(std::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::basic_stringchar,std::char_traitschar,std::allocatorchar )
    .Db::open(DbTxn*,const char*,const char*,DBTYPE,unsigned int,int) [1012] ER PR MyDb.cpp(/ra2/frt_bld/TMPOBJ/MyDb.o)
    00003b84 .text R_RBR [148] .MyDb::MyDb(std::basic_stringchar,std::char_traitschar,std::allocatorchar ,std::basic_stringchar,std::char_traitschar,std::allocatorchar )
    ER: The return code is 8.
    ld: 0711-317 ERROR: Undefined symbol: .Db::open(DbTxn*,const char*,const char*,DBTYPE,unsigned int,int)

    // File: MyDb.cpp
    #include "MyDb.h"
    #include string
    #include iostream
    // Class constructor. Requires a path to the location
    // where the database is located, and a database name
    MyDb::MyDb(std::string path, std::string dbName)
    : db_(NULL, 0), // Instantiate Db object
    dbFileName_(path + dbName), // Database file name
    cFlags_(DB_CREATE) // If the database doesn't yet exist,
    // allow it to be created.
    {
    try
    {
    // Redirect debugging information to std::cerr
    db_.set_error_stream( static_caststd::ostream *(std::cerr) );

    // Open the database
    db_.open(NULL, dbFileName_.c_str(), NULL, DB_BTREE, cFlags_, 0);
    }
    // DbException is not a subclass of std::exception, so we
    // need to catch them both.
    catch(DbException e)
    {
    std::cerr "Error opening database: " dbFileName_ "\n";
    std::cerr e.what() std::endl;
    }
    catch(std::exception e)
    {
    std::cerr "Error opening database: " dbFileName_ "\n";
    std::cerr e.what() std::endl;
    }
    }

    //And then we need the implementation for the close() method:

    // Private member used to close a database. Called from the class
    // destructor.
    void
    MyDb::close()
    {
    // Close the db
    try
    {
    db_.close(0);
    std::cout "Database " dbFileName_
    " is closed." std::endl;
    }
    catch(DbException e)
    {
    std::cerr "Error closing database: " dbFileName_ "\n";
    std::cerr e.what() std::endl;
    }
    catch(std::exception e)
    {
    std::cerr "Error closing database: " dbFileName_ "\n";
    std::cerr e.what() std::endl;
    }
    }

    Thanks
    Anand Rathi

    Edited by: user10127683 on Jun 10, 2009 9:02 AM

    DB:2.61:C++ Linking Error Undefined Symbols Aix 5.3 Xlc Bdb 4.7 9p

    Hi Anand,

    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/build_unix/aix.html -- check FAQ #4.

    Please use a "-D_LARGE_FILES=1" when building BDB on AIX.

    Let me know how it works.

    Thanks,
    Bogdan Coman

  • RELEVANCY SCORE 2.60

    DB:2.60:Regression: No Operator "=" Matches These Operands For Std::Tie = Std::Tuple 7p



    Testcase:

    #include tuple
    std::tupleint, int, int f();
    void g() {
        int a, b, c;
        std::tie(a, b, c) = f();
    }

    Compile with:

    /opt/intel/composer_xe_2013_sp1.0.080/bin/intel64/icpc -mmic -std=c++11 -c -o tie.o tie.cpp
    tie.cpp(7): error: no operator "=" matches these operands
                operand types are: std::tupleint , int , int = std::tupleint, int, int
          std::tie(a, b, c) = f();
                            ^
    compilation aborted for tie.cpp (code 2)

    It was fine with ICC 13:
    /opt/intel/composer_xe_2013.5.192/bin/intel64/icpc -mmic -std=c++11 -c -o tie.o tie.cpp

    DB:2.60:Regression: No Operator "=" Matches These Operands For Std::Tie = Std::Tuple 7p


    FYI.

    This bug has been fixed in 14.0 update 2 or later, the 15.0.

    Jennifer

  • RELEVANCY SCORE 2.60

    DB:2.60:Can't Use Std::Make_Tuple + Std::Unique_Ptr With Intel Compiler da



    Hello.

    My compiler version is: Intel Composer XE 2013 SP1 14.0.0 20130728

    I can't compile succesfully this code:

    #include tuple
    #include memory
    int main()
    {
        auto a = std::make_tuple(std::unique_ptrchar(new char), 0);
        return 0;
    }

    Command line is:

    icpc tmp.cpp -gcc-name=gcc-4.7 -std=gnu++11 -lstdc++

    Error message:

    /usr/include/c++/4.7/type_traits(1251): error: function "std::unique_ptr_Tp, _Dp::unique_ptr(const std::unique_ptr_Tp, _Dp ) [with _Tp=char, _Dp=std::default_deletechar]" (declared at line 262 of "/usr/include/c++/4.7/bits/unique_ptr.h") cannot be referenced -- it is a deleted function
              static decltype(__test_aux_To1(std::declval_From1()), __one())
                                               ^
              detected during:
                instantiation of "std::__is_convertible_helper_From, _To, false::__test [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" based on template arguments const std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar at line 1258
                instantiation of class "std::__is_convertible_helper_From, _To, false [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 1265
                instantiation of class "std::is_convertible_From, _To [with _From=const std::unique_ptrchar, std::default_deletechar , _To=std::unique_ptrchar, std::default_deletechar]" at line 117
                instantiation of class "std::__and__B1, _B2 [with _B1=std::is_convertibleconst std::unique_ptrchar, std::default_deletechar , std::unique_ptrchar, std::default_deletechar, _B2=std::is_convertibleconst int , int]" at line 848 of "/usr/include/c++/4.7/tuple"
                instantiation of "std::tuplestd::__decay_and_strip_Elements::__type... std::make_tuple(_Elements ...) [with _Elements=std::unique_ptrchar, std::default_deletechar, int]" at line 9 of "tmp.cpp"

    compilation aborted for tmp.cpp (code 2)

    What's wrong? If I'm compile it by the GCC compiler, there are no errors.

    Thanks.

  • RELEVANCY SCORE 2.60

    DB:2.60:Linking Error : Undefined Symbols: Sun Studio 5 1p


    Hi ,
    I am facing some Linking error which throws up Undefined Symbol errors like .

    [Undefined first referenced
    symbol in file
    __rwstd::__rb_treeDevNexus,DevNexus,__rwstd::__identDevNexus,DevNexus,std::lessDevNexus,std::allocatorDevNexus ::iterator __rwstd::__rb_treeDevNexus,DevNexus,__rwstd::__identDevNexus,DevNexus,std::lessDevNexus,std::allocatorDevNexus ::erase(__rwstd::__rb_treeDevNexus,DevNexus,__rwstd::__identDevNexus,DevNexus,std::lessDevNexus,std::allocatorDevNexus ::iterator,__rwstd::__rb_treeDevNexus,DevNexus,__rwstd::__identDevNexus,DevNexus,std::lessDevNexus,std::allocatorDevNexus ::iterator) PacketServer.o

    __type_0 std::findstd::dequeAdapterPort,std::allocatorAdapterPort ::iterator,AdapterPort(__type_0,__type_0,const __type_1) PacketServer.o

    void std::vectorController,std::allocatorController ::__insert_aux(Controller*,const Controller) Subsystem.o

    void std::dequeAdapterDisc,std::allocatorAdapterDisc ::__allocate_at_end() PacketServer.o

    __rwstd::__rb_treeunsigned long,std::pairconst unsigned long,char*,__rwstd::__select1ststd::pairconst unsigned long,char*,unsigned long,std::lessunsigned long,std::allocatorstd::pairconst unsigned long,char* ::iterator __rwstd::__rb_treeunsigned long,std::pairconst unsigned long,char*,__rwstd::__select1ststd::pairconst unsigned long,char*,unsigned long,std::lessunsigned long,std::allocatorstd::pairconst unsigned long,char* ::erase(__rwstd::__rb_treeunsigned long,std::pairconst unsigned long,char*,__rwstd::__select1ststd::pairconst unsigned long,char*,unsigned long,std::lessunsigned long,std::allocatorstd::pairconst unsigned long,char* ::iterator,__rwstd::__rb_treeunsigned long,std::pairconst unsigned long,char*,__rwstd::__select1ststd::pairconst unsigned long,char*,unsigned long,std::lessunsigned long,std::allocatorstd::pairconst unsigned long,char* ::iterator) DeviceProp.o

    std::dequeAdapterPort,std::allocatorAdapterPort ::~deque() PacketServer.o

    __type_0 std::findstd::dequeAdapterDisc,std::allocatorAdapterDisc ::iterator,char*(__type_0,__type_0,const __type_1) PacketServer.o
    unsigned std::dequeAdapterPort,std::allocatorAdapterPort ::__buffer_size() PacketServer.o

    unsigned std::dequeAdapterDisc,std::allocatorAdapterDisc ::__buffer_size() PacketServer.o

    void __rwstd::__rb_treeDevNexus,DevNexus,__rwstd::__identDevNexus,DevNexus,std::lessDevNexus,std::allocatorDevNexus ::__deallocate_buffers() PacketServer.o

    std::dequeAdapterDisc,std::allocatorAdapterDisc ::~deque() PacketServer.o

    ................

    ld: fatal: Symbol referencing errors. No output written to spagent
    *** Error code 1
    make: Fatal error: Command failed for target `spagent'
    Current working directory /home/kiranc/solaris_hang1/4.0/agent
    *** Error code 1
    make: Fatal error: Command failed for target `recurse'
    Current working directory /home/kiranc/solaris_hang1/4.0/agent
    *** Error code 1
    make: Fatal error: Command failed for target `all'

    I am using Sun Studio 5. Pls let me know how to resolve/fix this. Unfortunately I cant upgrade the Sun Studio.

    Thanks in Advance
    Kiran

    DB:2.60:Linking Error : Undefined Symbols: Sun Studio 5 1p

    Hi Kiran ,

    if you cannot upgrade Sun Studio, I suggest that you take a view on this solution:

    http://forum.java.sun.com/thread.jspa?forumID=850threadID=5069680

    It only works to std::vector::__insert_aux method, but I think you could get some useful idea from it.

    Good luck.
    Bye.

  • RELEVANCY SCORE 2.60

    DB:2.60:Lsmw For Std Dircect Method 3j



    Dear

    Pls anyone provide with screen shot of LSMW for Std method to upload the task list at thenna4u@gmail.com

    We are usually doing thro direct input which is not helping for me. Iam facing probs at field map, selection at std methdo

    Thenna

    DB:2.60:Lsmw For Std Dircect Method 3j


    Refer to file I hve sent to you. In the first sheet of excel file you will get the details of source fields.

    Thanks

  • RELEVANCY SCORE 2.60

    DB:2.60:Std::Unique_Ptr With Lambda 71


    I am trying to access a unique_ptr in a lambda but I get the following compile errors:

    error C2248: 'std::unique_ptr_Ty::unique_ptr' : cannot access private member declared in class 'std::unique_ptr_Ty'

    Code looks like this:

    #include stdafx.h
    #include memory
    #include vector
    #include algorithm

    class Message {
    public:
    Message() {}
    };

    int main(int argc, char* argv[])
    {
    std::vectorstd::unique_ptrMessagemessages;

    for (int i = 0; i 1000; i++) {
    std::unique_ptrMessage testMess;
    messages.push_back(std::move(testMess));
    }

    std::for_each(messages.begin(), messages.end(),
    [](std::unique_ptrMessage testMess) {
    // do something stupid
    });

    return 0;
    }

    DB:2.60:Std::Unique_Ptr With Lambda 71

    On 12/14/2011 12:13 PM, Anonymous7520 wrote:

    I am trying to access a unique_ptr in a lambda but I get the following compile errors:

    error C2248: 'std::unique_ptr_Ty::unique_ptr' : cannot access private member declared in class 'std::unique_ptr_Ty'

    std::for_each(messages.begin(), messages.end(),
    [](std::unique_ptrMessage testMess) {

    You are passing unique_ptr by value. That would require copying it, but it can't be copied.

    Igor Tandetnik

  • RELEVANCY SCORE 2.60

    DB:2.60:Another Lnk2005 Error j9


    i've read many posts and articles, but no one fixs the problem... i'll list the code then the output generated 
    test.cpp:
    #include stdafx.h
    #include UserProfile.h
     
    using namespace std;
    int main(){
     
    UserProfile a(andrea, braia, andrea.b, password);

    cout a: a ;
    return 0;
    }
    UserProfile.h:
    #pragma once
    #include string
    #include iostream
    class UserProfile
    {
    /*
    overview: provides the basic definiton of a user
    */
    private:
    std::string name;
    std::string surname;
    std::string username;
    std::string password;
    public:
    //creators
    UserProfile(std::string name, std::string surname, std::string username, std::string password);
    ~UserProfile(void);
    //observers
    std::string getName(void) const;
    std::string getSurname(void) const;
    std::string getUsername(void) const;
    std::string getPassword(void) const;
    std::string toString(void) const; //AF()

    };
    std::ostream operator(std::ostream o, const UserProfile u)
    {
    return o Name: + u.getName() + , Surname: + u.getSurname() + , Username: + u.getUsername() + , Password: + u.getPassword();
    }
     
    Linking...
    UserProfile.obj : error LNK2005: class std::basic_ostreamchar,struct std::char_traitschar __cdecl operator(class std::basic_ostreamchar,struct std::char_traitschar ,class UserProfile const ) (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVUserProfile@@@Z) already defined in test.obj
    LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup'
    C:\Documents and Settings\andrea braia\My Documents\MyPrograms\projects\feed_cpp\Feed\Debug\User.exe : fatal error LNK1169: one or more multiply defined symbols found
    Build log was saved at file://c:\Documents and Settings\andrea braia\My Documents\MyPrograms\projects\feed_cpp\Feed\User\Debug\BuildLog.htm
    User - 2 error(s), 1 warning(s)

    DB:2.60:Another Lnk2005 Error j9

    problem fixed, thank you very much!

  • RELEVANCY SCORE 2.60

    DB:2.60:Int128 On Linux For Intel Compiler fs



    Linux 2.6.32

    Intel compiler: icpc version 13.0.1 (gcc version 4.4.6 compatibility)

    #include iostream #include sys/types.h int main() {     std::cerr sizeof (__uint128_t) std::endl;         return 0; } Output: 16

    So, type __uint128_t exists.  However, working with __uint128_t produces compilation and run errors.

     

    Programs:

    ------------------ File int01.cpp #include cstdint int main() {  uint128_t val128 = 0;  return 0; }

    ------------------ File int02.cpp #include cstdint int main() {  __uint128_t val128 = 0;  return 0; }

    ------------------ File int03.cpp #include iostream #include cstdint int main() {  __uint128_t val128 = 0;  std::cerr val128 std::endl;  return 0; }

    Compilations:

    icpc int01.cpp /usr/include/c++/4.4.6/c++0x_warning.h(31): catastrophic error: #error directive: This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.   #error This file requires compiler and library support for the upcoming \    ^

    compilation aborted for int01.cpp (code 4)

    icpc int01.cpp -std=c++0x int01.cpp(4): error: identifier "uint128_t" is undefined    uint128_t val128 = 0;    ^

    compilation aborted for int01.cpp (code 2)

    icpc int02.cpp -std=c++0x // No errors

    icpc int03.cpp -std=c++0x

    int03.cpp(6): error: more than one operator "" matches these operands:             function "std::basic_ostream_CharT, _Traits::operator(long) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(unsigned long) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(bool) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(short) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(unsigned short) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(int) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(unsigned int) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(long long) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(unsigned long long) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(double) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(float) [with _CharT=char, _Traits=std::char_traitschar]"             function "std::basic_ostream_CharT, _Traits::operator(long double) [with _CharT=char, _Traits=std::char_traitschar]"             operand types are: std::ostream __uint128_t    std::cerr val128 std::endl;              ^

    compilation aborted for int03.cpp (code 2)

     

     

    DB:2.60:Int128 On Linux For Intel Compiler fs


    Here is a compilation output for a test case compiled with a recent version of Intel C++ compiler for Windows ( 13.x ):

    ...

    __uint128_t uiValue = 0;

    ...

    ...

    .\GenTestApp.cpp(31): error: identifier "__uint128_t" is undefined

    __uint128_t uiValue = 0;

    ...

  • RELEVANCY SCORE 2.60

    DB:2.60:I Need Help With Code as


     
    okay I have this homework assignment due tomorrow and im relitavely new to c++ . The assignment was to create a mock up grade book type of thing. I have it running and everything but, my friend and I couldnt get this one thing to work. Once your running it, and your on the part where you have to input the students grade, if you input a character it just like messes up and it starts flashing and stuff. I would like for it to go to a display message saying that you have to input a numerical value. I would really appreciate it if some one would help me with this.
     
     
     
    #include stdio.h
    #include stdlib.h
    #include iostream
    #include windows.h
     
    int main()
    {

    int id_number = 0;
    int num_grade = 0;
    double average = 0;
    char grade_letter = ' ';
    char indicator = 'y';
    int grade = 0;
    double sum = 0;
    char enter_grades = ' ';

     

    std::cout Welcome to LYNX v2.5(the one that actually works) std::endl;
    std::cout **************************** std::endl;
    std::cout \nEnter the student's ID number: std::endl;
    std::cin id_number;
    std::cout Do you want to enter grades for id_number ?\nY for yes, N for no. std::endl;
    std::cin enter_grades;
    system(cls);
    enter_grades=tolower(enter_grades);
     
    if(enter_grades == 'y') // start of if to input grades
    {

    while ( indicator =='y') // start of loop
    {

    std::cout Enter student's grade: std::endl;
    std::cin grade;
    if(grade =0)
    {

    ++num_grade;
    sum= sum + grade;
    std::cout Do you want to enter another grade?\n(Y for yes N for no) std::endl;std::cinindicator;

    system(cls);
     

    if(indicator != 'y' indicator !='n')
    {

    std::cout Please enter y/n : std::endl;
    std::cin indicator;
    system(cls);
    enter_grades=tolower(enter_grades);
    }
    }

    } //end of loop
    }
     
    average = sum/num_grade; // find out the average
     
    if (average = 90)
    {

    grade_letter='A';
    }
    else if (average = 80 average 90)
    {

    grade_letter='B';
    }
    else if (average = 70 average 80)
    {

    grade_letter='C';
    }
    else if (average = 60 average 70)
    {

    grade_letter= 'D';
    }
    else if (average 60)
    {

    grade_letter='F';
    }
     
    std::cout Calculating Results. std::endl; Sleep(2000);
    system(cls);
    std::cout Calculating Results.. std::endl; Sleep(2000);
    system(cls);
    std::cout Calculating Results... std::endl; Sleep(1000);
    system(cls);
     
    std::cout Results for id_number : std::endl;
    std::cout Number of grades: num_grade std::endl;
    std::cout Average: average grade_letter std::endl;
     
    } // finish entering grades / finish of if
    else
    {

    std::cout No new grades were inputed for id_number std::endl;
    }

    std::cout Press Enter to submit grades for id_number std::endl;
    return 0;
    } // end of the program
     

    DB:2.60:I Need Help With Code as

     man thanks both of yall. I really appreciate it. the code worked. i can like sleep now!

  • RELEVANCY SCORE 2.60

    DB:2.60:Reading Cookies In C++ (Client Side) 1x


    Hi,
    I am having a really hard time with some API calls to the Wininet dll. I am trying to read cookies client side set by IE 9. Here's the code.

    #include stdafx.h
    #include Windows.h
    #include WinInet.h
    #include iostream
    int _tmain(int argc, _TCHAR* argv[])
    {

    LPTSTR lpData = NULL;
    DWORD dwSz = 500;
    std::cout Hello Chris std::endl;
    lpData = new TCHAR[dwSz];

    std::wcout Arg 0: argv[1] std::endl;


    bool val = InternetGetCookieEx(argv[1], argv[2], lpData, dwSz, INTERNET_COOKIE_THIRD_PARTY | INTERNET_FLAG_RESTRICTED_ZONE, NULL);

    if (!val)
    {

    if (GetLastError() == ERROR_INSUFFICIENT_BUFFER)
    {
    std::cout Insufficent Buffer size std::endl;
    lpData = new TCHAR[dwSz];
    val = InternetGetCookieEx(argv[1], argv[2], lpData, dwSz, INTERNET_COOKIE_THIRD_PARTY | INTERNET_FLAG_RESTRICTED_ZONE, NULL);
    if (val)
    {
    std::cout Cookie Data: lpData std::endl;
    }
    else
    {
    std::cout ERROR Code: GetLastError() std::endl;
    }
    }
    else
    {
    int err = GetLastError();
    std::cout ERROR Code: err std::endl;
    }
    }
    else
    {
    std::cout Cookie Data: lpData std::endl;
    }
    //}

    return 0;
    }

    DB:2.60:Reading Cookies In C++ (Client Side) 1x

    Hello,

    I think your issue should be raised in the
    General Windows Desktop Development Issues.
    I believe they will know more information of this issue than us, and I will move this one to that forum.

    Thanks for your understanding,

    Best regards,
    JesseJesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

  • RELEVANCY SCORE 2.59

    DB:2.59:Re: Or Function Not Working cf


    here is a code snippet of code that works

    (SETQ STD (NTH 3 MAINLST))
    (IF (= STD "STD" )
    (SETQ MAINLST (SUBST "50" (NTH 3 MAINLST) MAINLST))
    )

    here is a snippet of code that doesnt work

    (SETQ STD (NTH 3 MAINLST))
    (IF (OR (= STD "STD" "STD."))
    (SETQ MAINLST (SUBST "50" (NTH 3 MAINLST) MAINLST))
    )

    i cannot get the above code to work what am i missing?

    DB:2.59:Re: Or Function Not Working cf

    Kent , thanks for it. It make it clear now.Gabriel.

    Edited by: devitg on May 6, 2009 10:06 AM

  • RELEVANCY SCORE 2.59

    DB:2.59:Problems With Array 9c


    I am really, really early in my learning of Visual Basic.
    I am currently having issues with my array.
    The situation is I have 6 students. Each students have 5 test scores entered by our users.
    I am supposed to take each student test scores and calculate the average for each student.
    Current issue is; it is only calculating the average for first student and I am not sure why it does not calculate the average for the rest of the students.
    Below is my current code:
    Imports System.IO

    Public Class frmStudentTestScores

    Public Function IsValid(ByVal num As Integer) As Integer
    If num = 0 And num = 100 Then
    Return (num)
    Else
    Return CInt(Please try again, Must be Between 0-100)
    End If
    End Function

    Private Sub btnCalculate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnCalculate.Click
    ' Variables
    Dim std(6) As StudentTestScores
    Dim txtFile As StreamWriter

    'Dim intCount As Integer
    'Dim intCount1 As Integer

    For intCount = 0 To 5
    ReDim std(intCount).TestScore(5)
    Next

    Try
    std(0).StudentName = txtName1.Text
    std(0).TestScores(0) = IsValid(Convert.ToInt32(txtS11.Text))
    std(0).TestScores(1) = IsValid(Convert.ToInt32(txtS12.Text))
    std(0).TestScores(2) = IsValid(Convert.ToInt32(txtS13.Text))
    std(0).TestScores(3) = IsValid(Convert.ToInt32(txtS14.Text))
    std(0).TestScores(4) = IsValid(Convert.ToInt32(txtS15.Text))

    std(1).StudentName = txtName2.Text
    std(1).TestScores(0) = IsValid(Convert.ToInt32(txtS21.Text))
    std(1).TestScores(1) = IsValid(Convert.ToInt32(txtS22.Text))
    std(1).TestScores(2) = IsValid(Convert.ToInt32(txtS23.Text))
    std(1).TestScores(3) = IsValid(Convert.ToInt32(txtS24.Text))
    std(1).TestScores(4) = IsValid(Convert.ToInt32(txtS25.Text))

    std(2).StudentName = txtName3.Text
    std(2).TestScores(0) = IsValid(Convert.ToInt32(txtS31.Text))
    std(2).TestScores(1) = IsValid(Convert.ToInt32(txtS32.Text))
    std(2).TestScores(2) = IsValid(Convert.ToInt32(txtS33.Text))
    std(2).TestScores(3) = IsValid(Convert.ToInt32(txtS34.Text))
    std(2).TestScores(4) = IsValid(Convert.ToInt32(txtS35.Text))

    std(3).StudentName = txtName4.Text
    std(3).TestScores(0) = IsValid(Convert.ToInt32(txtS41.Text))
    std(3).TestScores(1) = IsValid(Convert.ToInt32(txtS42.Text))
    std(3).TestScores(2) = IsValid(Convert.ToInt32(txtS43.Text))
    std(3).TestScores(3) = IsValid(Convert.ToInt32(txtS44.Text))
    std(3).TestScores(4) = IsValid(Convert.ToInt32(txtS45.Text))

    std(4).StudentName = txtName5.Text
    std(4).TestScores(0) = IsValid(Convert.ToInt32(txtS51.Text))
    std(4).TestScores(1) = IsValid(Convert.ToInt32(txtS52.Text))
    std(4).TestScores(2) = IsValid(Convert.ToInt32(txtS53.Text))
    std(4).TestScores(3) = IsValid(Convert.ToInt32(txtS54.Text))
    std(4).TestScores(4) = IsValid(Convert.ToInt32(txtS55.Text))

    std(5).StudentName = txtName6.Text
    std(5).TestScores(0) = IsValid(Convert.ToInt32(txtS61.Text))
    std(5).TestScores(1) = IsValid(Convert.ToInt32(txtS62.Text))
    std(5).TestScores(2) = IsValid(Convert.ToInt32(txtS63.Text))
    std(5).TestScores(3) = IsValid(Convert.ToInt32(txtS64.Text))
    std(5).TestScores(4) = IsValid(Convert.ToInt32(txtS65.Text))
    Catch ex As Exception
    MessageBox.Show(Please Enter Values In Between 0-100 only)
    End Try

    For intCount = 0 To 5
    std(intCount).average = 0
    For intCount1 = 0 To 4
    std(intCount).average = std(intCount).testScores(intCount1)
    Next
    std(intCount).average /= 5
    Next
    txtAvg1.Text = std(0).average.tostring(n2)
    txtAvg2.Text = std(1).average.tostring(n2)
    txtAvg3.Text = std(2).average.tostring(n2)
    txtAvg4.Text = std(3).average.tostring(n2)
    txtAvg5.Text = std(4).average.tostring(n2)
    txtAvg5.Text = std(5).average.tostring(n2)

    For count = 0 To 5
    Dim stdrecord As String
    stdrecord = std(count).StudentName
    For Count1 = 0 To 4
    stdrecord = std(count).testScores(Count1).tostring(n2)
    Next
    stdrecord = std(count).average.ToString()
    txtfile.WriteLine(stdrecord)
    Next
    End Sub

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
    Me.Close() ' Close the form
    End Sub
    End Class

    DB:2.59:Problems With Array 9c


    The situation is I have 6 students. Each students have 5 test scores entered by our users.

    I am supposed to take each student test scores and calculate the average for each student.

    Is this homework?Still lost in code, just at a little higher level.

    :-)

  • RELEVANCY SCORE 2.59

    DB:2.59:Runtime Error Using -Kpic cf


    The following code segment will execute properly unless it is compiled with the -KPIC option in which case it will segfault.

    // compiled with
    // CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-07 2001/12/13

    #include string

    class A {
    public:
    A(const std::string name) : _name(name) {}
    const std::string name() const { return _name; }
    private:
    A(const A);
    const A operator=(const A rhs);
    std::string _name;
    };

    class B {
    public:
    static const A get();
    };

    const A B::get()
    {
    static A a(std::string("Test String"));
    return a;
    }

    std::string str1 = B::get().name();
    std::string str2 = B::get().name();

    int main() {
    std::cout str1 std::endl;
    std::cout str2 std::endl;
    }

    ==========================
    Here's the stack
    ==========================
    =[1] __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::__unSafeRemoveReference(this = 0x29f40), line 255 in "string_ref"
    [2] __rwstd::__string_refchar,std::char_traitschar,std::allocatorchar ::__removeReference(this = 0x29f40), line 246 in "string_ref"
    [3] std::basic_stringchar,std::char_traitschar,std::allocatorchar ::__unLink(this = 0xefffe9b0), line 863 in "string"
    [4] std::basic_stringchar,std::char_traitschar,std::allocatorchar ::~basic_string(this = 0xefffe9b0), line 283 in "string"
    [5] B::get(), line 22 in "CC_bug2.c"
    [6] __SLIP.INIT_B(0xffffffff, 0x64c00, 0x0, 0x64c28, 0xef723138, 0x490f8), at 0x29508
    [7] __STATIC_CONSTRUCTOR(), line 26 in "CC_bug2.c"
    [8] 0x4b440(0x0, 0x4a8cc, 0xef7255a0, 0xef723138, 0x0, 0x0), at 0x4b43f

    Kevin

    DB:2.59:Runtime Error Using -Kpic cf

    The stacktrace shows the program died when trying to destruct string "Test String" before returning from B::get().

    Please try to use patch 109508-06 and see if the crash still occurs.

    - Rose

  • RELEVANCY SCORE 2.59

    DB:2.59:Compiling Code With Variate_Generator Class ? kf


    I am trying to compile a segment of code from http://msdn.microsoft.com/en-us/library/bb982175.aspxI got the following error. Where I am doing wrong?1c:\users\administrator\documents\visual studio 2012\projects\randtest\randtest\randtest.cpp(10): error C2039: 'variate_generator' : is not a member of 'std`// std_tr1__random__variate_generator_construct.cpp
    // compile with: /EHsc
    #include random
    #include iostream

    typedef std::minstd_rand Myeng;
    typedef std::uniform_intunsigned int Mydist;
    typedef std::variate_generatorMyeng, Mydist Myceng;
    int main()
    {
    Myeng eng0;
    Mydist dist0;
    Myceng ceng(eng0, dist0);
    const Myceng::engine_type eng = ceng.engine(); // get base engine
    const Myceng::distribution_type dist =
    ceng.distribution(); // get distribution
    Myceng::result_type compval = ceng();

    compval = compval; // to quiet unused warnings
    eng.min();
    dist.min();

    std::cout min == ceng.min() std::endl;
    std::cout max == ceng.max() std::endl;

    std::cout a random value == ceng() std::endl;
    std::cout a random value == ceng() std::endl;
    std::cout a random value == ceng() std::endl;

    return (0);
    }

    DB:2.59:Compiling Code With Variate_Generator Class ? kf

    Hi,
    I marked these replies as answer, if your issue has not been solved please unmark it and update more information about this issue.
    Best regards,
    JesseJesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

  • RELEVANCY SCORE 2.59

    DB:2.59:Linking Static Library To A Managed Dll fs


    I have a static library that i want to be able to link into a different project that is written in managed code. The project I am creating is a webservice and i need to be able to use the classes in the static library.
     
    When I build the project I get tons of link errors like unresolved external symbols. I am assuming from what I have read the i have this mixed dll loading problem. Is this the case?
     
    I am currently getting errors like :
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: void __thiscall std::locale::facet::_Register(void) (?_Register@facet@locale@std@@QAEXXZ) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: void __thiscall std::locale::facet::_Incref(void) (?_Incref@facet@locale@std@@QAEXXZ) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::ctypechar::_Getcat(class std::locale::facet const * *) (?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int)const (?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::_Lockit::~_Lockit(void) (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::_Lockit::_Lockit(int) (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::ctypeunsigned short::_Getcat(class std::locale::facet const * *) (?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::~basic_stringchar,struct std::char_traitschar,class std::allocatorchar (void) (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::operator+=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) already defined in libcpmtd.lib(locale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (char const *) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (unsigned int,char) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ID@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::operator+=(char) (??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::~basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short (void) (??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::operator+=(class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short const ) (??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short (class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short const ) (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short (unsigned short const *) (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short (unsigned int,unsigned short) (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IG@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::operator+=(unsigned short) (??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::append(unsigned int,char) (?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: int __thiscall std::basic_streambufchar,struct std::char_traitschar ::sgetc(void) (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: unsigned int __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::max_size(void)const (?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::erase(unsigned int,unsigned int) (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::locale::~locale(void) (??1locale@std@@QAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::locale __thiscall std::ios_base::getloc(void)const (?getloc@ios_base@std@@QBE?AVlocale@2@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: int __thiscall std::basic_streambufchar,struct std::char_traitschar ::sbumpc(void) (?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: int __thiscall std::basic_streambufchar,struct std::char_traitschar ::sputc(char) (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::append(unsigned int,unsigned short) (?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: bool __thiscall std::ctypeunsigned short::is(short,unsigned short)const (?is@?$ctype@G@std@@QBE_NFG@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: unsigned short __thiscall std::basic_streambufunsigned short,struct std::char_traitsunsigned short ::sgetc(void) (?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: unsigned int __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::max_size(void)const (?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::erase(unsigned int,unsigned int) (?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@II@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: unsigned short __thiscall std::basic_streambufunsigned short,struct std::char_traitsunsigned short ::sbumpc(void) (?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: unsigned short __thiscall std::basic_streambufunsigned short,struct std::char_traitsunsigned short ::sputc(unsigned short) (?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static class std::locale const __cdecl std::locale::classic(void) (?classic@locale@std@@SAABV12@XZ) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: virtual __thiscall std::locale::facet::~facet(void) (??1facet@locale@std@@UAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::operator=(char const *) (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::operator=(class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short const ) (??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: virtual __thiscall std::moneypunctchar,0::~moneypunctchar,0(void) (??1?$moneypunct@D$0A@@std@@UAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctchar,0::moneypunctchar,0(unsigned int) (??0?$moneypunct@D$0A@@std@@QAE@I@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: virtual __thiscall std::moneypunctchar,1::~moneypunctchar,1(void) (??1?$moneypunct@D$00@std@@UAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctchar,1::moneypunctchar,1(unsigned int) (??0?$moneypunct@D$00@std@@QAE@I@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: protected: virtual __thiscall std::money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::~money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar (void) (??1?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar (unsigned int) (??0?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QAE@I@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: virtual __thiscall std::moneypunctunsigned short,0::~moneypunctunsigned short,0(void) (??1?$moneypunct@G$0A@@std@@UAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctunsigned short,0::moneypunctunsigned short,0(unsigned int) (??0?$moneypunct@G$0A@@std@@QAE@I@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: virtual __thiscall std::moneypunctunsigned short,1::~moneypunctunsigned short,1(void) (??1?$moneypunct@G$00@std@@UAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctunsigned short,1::moneypunctunsigned short,1(unsigned int) (??0?$moneypunct@G$00@std@@QAE@I@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: protected: virtual __thiscall std::money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short ::~money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short (void) (??1?$money_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short ::money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short (unsigned int) (??0?$money_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@QAE@I@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: protected: virtual __thiscall std::time_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::~time_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar (void) (??1?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::time_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::time_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar (unsigned int) (??0?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@QAE@I@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::basic_stringchar,struct std::char_traitschar,class std::allocatorchar (void) (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: protected: virtual class std::ostreambuf_iteratorchar,struct std::char_traitschar __thiscall std::money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::do_put(class std::ostreambuf_iteratorchar,struct std::char_traitschar ,bool,class std::ios_base ,char,long double)const (?do_put@?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MBE?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@_NAAVios_base@2@DO@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short (void) (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: protected: virtual class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short __thiscall std::money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short ::do_put(class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short ,bool,class std::ios_base ,unsigned short,long double)const (?do_put@?$money_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@MBE?AV?$ostreambuf_iterator@GU?$char_traits@G@std@@@2@V32@_NAAVios_base@2@GO@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::_Locinfo::~_Locinfo(void) (??1_Locinfo@std@@QAE@XZ) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctchar,0::moneypunctchar,0(class std::_Locinfo const ,unsigned int) (??0?$moneypunct@D$0A@@std@@QAE@ABV_Locinfo@1@I@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::_Locinfo::_Locinfo(char const *) (??0_Locinfo@std@@QAE@PBD@Z) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::moneypunctunsigned short,0::moneypunctunsigned short,0(class std::_Locinfo const ,unsigned int) (??0?$moneypunct@G$0A@@std@@QAE@ABV_Locinfo@1@I@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: private: void __thiscall std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int) (?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z) already defined in libcpmtd.lib(locale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: private: __thiscall std::locale::_Locimp::_Locimp(class std::locale::_Locimp const ) (??0_Locimp@locale@std@@AAE@ABV012@@Z) already defined in libcpmtd.lib(locale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::moneypunctchar,0::_Getcat(class std::locale::facet const * *) (?_Getcat@?$moneypunct@D$0A@@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::moneypunctchar,1::_Getcat(class std::locale::facet const * *) (?_Getcat@?$moneypunct@D$00@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::money_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::_Getcat(class std::locale::facet const * *) (?_Getcat@?$money_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::moneypunctunsigned short,0::_Getcat(class std::locale::facet const * *) (?_Getcat@?$moneypunct@G$0A@@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::moneypunctunsigned short,1::_Getcat(class std::locale::facet const * *) (?_Getcat@?$moneypunct@G$00@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::money_putunsigned short,class std::ostreambuf_iteratorunsigned short,struct std::char_traitsunsigned short ::_Getcat(class std::locale::facet const * *) (?_Getcat@?$money_put@GV?$ostreambuf_iterator@GU?$char_traits@G@std@@@std@@@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::time_putchar,class std::ostreambuf_iteratorchar,struct std::char_traitschar ::_Getcat(class std::locale::facet const * *) (?_Getcat@?$time_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: static unsigned int __cdecl std::codecvtunsigned short,char,int::_Getcat(class std::locale::facet const * *) (?_Getcat@?$codecvt@GDH@std@@SAIPAPBVfacet@locale@2@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::locale::locale(char const *,int) (??0locale@std@@QAE@PBDH@Z) already defined in libcpmtd.lib(locale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::locale::locale(void) (??0locale@std@@QAE@XZ) already defined in libcpmtd.lib(locale0.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: __thiscall std::_Timevec::~_Timevec(void) (??1_Timevec@std@@QAE@XZ) already defined in libcpmtd.lib(xlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: void __thiscall std::_String_base::_Xran(void)const (?_Xran@_String_base@std@@QBEXXZ) already defined in libcpmtd.lib(string.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::operator=(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) already defined in SampleSubmitServiceClass.obj
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::iterator __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::end(void) (?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprt.lib(MSVCP71.dll) : error LNK2005: public: class std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::iterator __thiscall std::basic_stringunsigned short,struct std::char_traitsunsigned short,class std::allocatorunsigned short ::begin(void) (?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@XZ) already defined in libcpmtd.lib(wlocale.obj)
    libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const ,char *,int) (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
    libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol __malloc_dbg
    libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __malloc_dbg
    libcpmtd.lib(xwcsxfrm.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function __Wcsxfrm
    libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const ,char *,int) (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
    libcpmtd.lib(xwcsxfrm.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function __Wcsxfrm
    libcpmtd.lib(locale.obj) : error LNK2019: unresolved external symbol __realloc_dbg referenced in function private: void __thiscall std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int) (?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z)
    libcpmtd.lib(xmbtowc.obj) : error LNK2019: unresolved external symbol __CrtDbgReport referenced in function __Mbrtowc_lk
    C:\DEV\c\WEB\Release/SampleSubmitService.dll : fatal error LNK1120: 4 unresolved externals
     
    Thanks in advance for your help.

    DB:2.59:Linking Static Library To A Managed Dll fs

    I am linking with no entry. I haven't created my own initialization functions at this point? I believe that is what I need to do and then call them from the main. I do not know however what is considered the entry point on a webservice. Is it the Application_Start() function? What kind of initialization do I need to do in these functions when I create them? Do you have an example?
     
    Thanks,
    Michael

  • RELEVANCY SCORE 2.58

    DB:2.58:Js Calling Applet Method That Has Commons Logging p1


    I get a security error when some of my logging code is called from a method that was called by javascript. I have looked around at some of the forums but could not figure out a solution. All my jars are signed, and I even configured commons logging to only log to system.err and not the file system.

    Thanks in advance, below is a lengthy trace:

    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\myName

    ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to n
    ----------------------------------------------------

    Trace level set to 5: all ... completed.
    basic: Cached file name: nighthawk-commons.jar-4f0d3933-647855f9.zip
    basic: httpCompression = true
    network: Connecting http://myURL/java/lib/log4j-1.2.13.jar with proxy=DIRECT
    network: Connecting http://myURL/java/lib/log4j-1.2.13.jar with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Downloading http://myURL/java/lib/log4j-1.2.13.jar to cache
    basic: encoding = null for http://myURL/java/lib/log4j-1.2.13.jar
    basic: Cached file name: log4j-1.2.13.jar-6a308831-33b80160.zip
    basic: httpCompression = true
    network: Connecting http://myURL/java/lib/commons-logging-1.1.jar with proxy=DIRECT
    network: Connecting http://myURL/java/lib/commons-logging-1.1.jar with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Downloading http://myURL/java/lib/commons-logging-1.1.jar to cache
    basic: encoding = null for http://myURL/java/lib/commons-logging-1.1.jar
    basic: Cached file name: commons-logging-1.1.jar-21fe76d4-7fdf768a.zip
    basic: httpCompression = true
    network: Connecting http://myURL/java/lib/ifd-common.jar with proxy=DIRECT
    network: Connecting http://myURL/java/lib/ifd-common.jar with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Downloading http://myURL/java/lib/ifd-common.jar to cache
    basic: encoding = null for http://myURL/java/lib/ifd-common.jar
    basic: Cached file name: ifd-common.jar-2da3fb14-607effe0.zip
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Connecting http://myURL/java/commons-logging.properties with proxy=DIRECT
    network: Connecting http://myURL/java/commons-logging.properties with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/META-INF/services/org.apache.commons.logging.LogFactory with proxy=DIRECT
    network: Connecting http://myURL/java/META-INF/services/org.apache.commons.logging.LogFactory with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Connecting http://myURL/java/log4j.xml with proxy=DIRECT
    network: Connecting http://myURL/java/log4j.xml with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/log4j.xml with proxy=DIRECT
    network: Connecting http://myURL/java/log4j.xml with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/PatternLayoutBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/PatternLayoutBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/PatternLayoutBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/LayoutBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/LayoutBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/LayoutBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/java/lang/ObjectBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/java/lang/ObjectBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/RollingFileAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/RollingFileAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/RollingFileAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/RollingFileAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/FileAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/FileAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/FileAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/FileAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/WriterAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/WriterAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/WriterAppenderBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/WriterAppenderBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/AppenderSkeletonBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/AppenderSkeletonBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/org/apache/log4j/AppenderSkeletonBeanInfo.class with proxy=DIRECT
    network: Connecting http://myURL/java/org/apache/log4j/AppenderSkeletonBeanInfo.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    myURL
    Communications starting up : myURL
    network: Connecting http://myURL/java/com/ibm/uvm/tools/DebugSupport.class with proxy=DIRECT
    network: Connecting http://myURL/java/com/ibm/uvm/tools/DebugSupport.class with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    network: Connecting http://myURL/java/images/print.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/print.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: print.gif-58bd8db8-5a92d156.gif
    network: Connecting http://myURL/java/images/rotateCW.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/rotateCW.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: rotateCW.gif-45ded66c-6afa3e99.gif
    network: Connecting http://myURL/java/images/rotateCCW.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/rotateCCW.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: rotateCCW.gif-5605f4c7-28024094.gif
    network: Connecting http://myURL/java/images/fitWidth.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/fitWidth.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: fitWidth.gif-4a7c6c92-608f7a32.gif
    network: Connecting http://myURL/java/images/fitHeight.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/fitHeight.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: fitHeight.gif-3f2a3aa3-23652ab5.gif
    network: Connecting http://myURL/java/images/actualSize.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/actualSize.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: actualSize.gif-620cf7cc-6cd94237.gif
    network: Connecting http://myURL/java/images/reset.gif with proxy=DIRECT
    network: Connecting http://myURL/java/images/reset.gif with cookie "__utma=63064624.654926256.1146849106.1146849106.1146849106.1; __utmz=63064624.1146849106.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
    basic: Cached file name: reset.gif-3c79d75a-6c0eda10.gif
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: UniversalJavaPermission enabled
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://myURL
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://myURL
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://myURL
    liveconnect: JavaScript: UniversalBrowserRead enabled
    liveconnect: JavaScript: default security policy = http://myURL
    myURL : 1199
    network: Connecting socket://myURL:1199 with proxy=DIRECT
    network: Connecting socket://someURL with proxy=DIRECT
    Fax Viewer time = 4406
    fsg val = net.nighthawk.ifd.common.fax.FaxStapleGroup@1f2be27
    Exception in thread "Thread-2321" java.lang.ExceptionInInitializerError
    at net.nighthawk.ifd.client.FaxViewPanel.openFaxImages(FaxViewPanel.java:262)
    at net.nighthawk.ifd.client.FaxViewPanel.openFax(FaxViewPanel.java:217)
    at net.nighthawk.ifd.client.FaxViewApplet$FaxOpener.run(FaxViewApplet.java:66)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.apache.commons.logging.LogConfigurationException: java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader) (Caused by java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:634)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
    at net.nighthawk.ifd.common.util.TIFF60.clinit(TIFF60.java:65)
    ... 4 more
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.ClassLoader.getParent(Unknown Source)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLowestClassLoader(LogFactoryImpl.java:1250)
    at org.apache.commons.logging.impl.LogFactoryImpl.getBaseClassLoader(LogFactoryImpl.java:1170)
    at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:972)
    at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:838)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
    ... 8 more
    network: Connecting socket://someURL with proxy=DIRECT
    network: Connecting socket://someURL with proxy=DIRECT
    network: Connecting socket://someURL with proxy=DIRECT
    network: Connecting socket://someURL with proxy=DIRECT

    DB:2.58:Js Calling Applet Method That Has Commons Logging p1

    Same error here. I encountered (ExceptionInInitializerError) in an applet that uses HttpClient 3.0 and Commons Logging 1.1

    The issue is documented:

    https://issues.apache.org/jira/browse/LOGGING-106

    There should be a fix in JCL 1.1.1 (not yet available)

    I had a similar problem when trying to use
    commons-httpclient-3.1-rc1 from an applet, with with
    commons-logging-1.1. The problem is that
    commons-logging-1.1 tries to load some classes in a
    way that irks the classloader and it barfs with this
    security message:

    java.lang.ExceptionInInitializerError
    at
    t
    org.apache.commons.httpclient.HttpClient.clinit(Http
    Client.java:66)
    [snip]
    Caused by: java.security.AccessControlException:
    access denied (java.util.PropertyPermission
    org.apache.commons.logging.LogFactory.HashtableImpl
    read)
    at
    t
    java.security.AccessControlContext.checkPermission(Unk
    nown Source)
    at
    t
    java.security.AccessController.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPermission(Unknown
    n Source)
    at
    t
    java.lang.SecurityManager.checkPropertyAccess(Unknown
    Source)
    at java.lang.System.getProperty(Unknown Source)
    at
    t
    org.apache.commons.logging.LogFactory.createFactorySto
    re(LogFactory.java:320)
    at
    t
    org.apache.commons.logging.LogFactory.clinit(LogFact
    ory.java:1725)
    [snip]

    I worked it by using commons-logging-1.0.4.jar
    instead of commons-logging-1.1.jar.

    I saw a lot of solutions (via google) that
    recommended applet-jar-signing, which makes me
    totally cringe. It's not the right way to go unless
    you need something really special, like write log
    files from an applet to the local filesystem. In 99%
    of applet situations, this is not what you really
    want to do.

    Anyway... I came across your thread while trying to
    figure this out and recon the solution should be
    posted here.

  • RELEVANCY SCORE 2.58

    DB:2.58:Unsigned Applet Load Failure Via Https 11


    Java Plug-in 1.5.0_06
    MSIE 6.0

    Unsigned applet loading via HTTPS failed.

    We used a relative URL in an APPLET tag :

    APPLET CODEBASE="/TEST/" ARCHIVE="test.jar" CODE="nl.myorganisation.test"

    The plugin does not seem to reuse the browser SSL-session.
    It looks like the plugin does not find installed certificates in Explorer stores.
    The 2th and 3th connection retry use an erroneous URL.

    network: Connecting https://myorganisation.nl/TEST/test.jar with proxy=DIRECT
    security: Loading Root CA certificates from jre-home\lib\security\cacerts
    security: Loaded Root CA certificates from jre-home\lib\security\cacerts
    security: Loading SSL Root CA certificates from jre-home\lib\security\cacerts
    security: Loaded SSL Root CA certificates from jre-home\lib\security\cacerts
    security: Loading Deployment SSL certificates from user-home\Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loaded Deployment SSL certificates from user-home\Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    network: Connecting https://myorganisation.nl/CGI-BIN/nl/myorganisation/test.class with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    network: Connecting https://myorganisation.nl/CGI-BIN/nl/myorganisation/test.class with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    load: class nl.myorganisation.test not found.

    Does anybody have any suggestion ?

    Thanks and greetings,
    Marc

    DB:2.58:Unsigned Applet Load Failure Via Https 11

    i also have this problem.
    and i "Activating the option "Use certificates and keys in browser keystore"",but this didn't work.
    i use openssl to create a certificate.(is this the causation?)
    and i failed to load certificate from java control panel.

  • RELEVANCY SCORE 2.58

    DB:2.58:Wrong Std::Min Is Picked With Enum Use For Constant p1


    Hello, I have a problem with the wrong std::min is picked for the following code:
     

    #include algorithm
    int f()
    {
    enum { buffer_size = 128 };
    std::stsize_t max_size = std::numeric_limitsstd::size_t::max();
    std::size_t pend = std::minstd::size_t(max_size, buffer_size);
    }

    DB:2.58:Wrong Std::Min Is Picked With Enum Use For Constant p1

    Hello, I have a problem with the wrong std::min is picked for the following code:
     

    #include algorithm
    int f()
    {
    enum { buffer_size = 128 };
    std::stsize_t max_size = std::numeric_limitsstd::size_t::max();
    std::size_t pend = std::minstd::size_t(max_size, buffer_size);
    }

  • RELEVANCY SCORE 2.58

    DB:2.58:Link Errors On Helloworld 1m


    Can someone please help. I tried to install VS 2010 premium on top of 2010 pro and am now getting the following link errors from a simple helloworld application (Note that I have VS 2008 and 2012 installed): I removed and reinstalled everything
    and still get the same error
    Configuration:
    C-Code Generation-RuntimeLibrary set to Multi-threaded Debug DLL (/MDd)
    C/C Command line:
    /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /GS /fp:precise /Zc:wchar_t /Zc:forScope /FpDebug\t2.pch /FaDebug\ /FoDebug\
    /FdDebug\vc100.pdb /Gd /analyze- /errorReport:queue
    Linker command Line:
    /OUT:F:\dist\dev_20140102A_vs2010\src\vs2008\Debug\t2.exe /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
    ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:Debug\t2.exe.intermediate.manifest /ALLOWISOLATION /MANIFESTUAC:level='asInvoker' uiAccess='false'
    /DEBUG /PDB:F:\dist\dev_20140102A_vs2010\src\vs2008\Debug\t2.pdb /SUBSYSTEM:CONSOLE /PGD:F:\dist\dev_20140102A_vs2010\src\vs2008\Debug\t2.pgd /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE

    Source:
    #include iostream
    using namespace std;
    int main()
    {
    cout Hello World endl;
    }

    1------ Build started: Project: t2, Configuration: Debug Win32 ------
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: int __thiscall std::ios_base::width(int) (__imp_?width@ios_base@std@@QAEHH@Z) referenced in function class std::basic_ostreamchar,struct std::char_traitschar
    __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: int __thiscall std::basic_streambufchar,struct std::char_traitschar ::sputn(char const *,int) (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
    referenced in function class std::basic_ostreamchar,struct std::char_traitschar __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar
    ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: static bool __cdecl std::char_traitschar::eq_int_type(int const ,int const ) (__imp_?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) referenced
    in function class std::basic_ostreamchar,struct std::char_traitschar __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char
    const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: static int __cdecl std::char_traitschar::eof(void) (__imp_?eof@?$char_traits@D@std@@SAHXZ) referenced in function class std::basic_ostreamchar,struct
    std::char_traitschar __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: int __thiscall std::ios_base::width(void)const (__imp_?width@ios_base@std@@QBEHXZ) referenced in function class std::basic_ostreamchar,struct std::char_traitschar
    __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: static unsigned int __cdecl std::char_traitschar::length(char const *) (__imp_?length@?$char_traits@D@std@@SAIPBD@Z) referenced in function class
    std::basic_ostreamchar,struct std::char_traitschar __cdecl std::operatorstruct std::char_traitschar (class std::basic_ostreamchar,struct std::char_traitschar ,char const *) (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: void __thiscall std::basic_streambufchar,struct std::char_traitschar ::_Lock(void) (__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
    referenced in function public: __thiscall std::basic_ostreamchar,struct std::char_traitschar ::_Sentry_base::_Sentry_base(class std::basic_ostreamchar,struct std::char_traitschar ) (??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z)
    1b.obj : error LNK2019: unresolved external symbol __declspec(dllimport) public: void __thiscall std::basic_streambufchar,struct std::char_traitschar ::_Unlock(void) (__imp_?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
    referenced in function public: __thiscall std::basic_ostreamchar,struct std::char_traitschar ::_Sentry_base::~_Sentry_base(void) (??1_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ)
    1F:\dist\dev_20140102A_vs2010\src\vs2008\Debug\t2.exe : fatal error LNK1120: 8 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    DB:2.58:Link Errors On Helloworld 1m

    Hello Sunny,
    With the aid of a collegue I have resolved this issue. I was pulling in an incorrect version of iostream due to a build include build path. Thanks for your help.

  • RELEVANCY SCORE 2.58

    DB:2.58:Initialization Of Std::Function With Lambda With Capture List In The Struct Without Constructor With Unified Initialization Syntax 1s


    Hi. I have a question about initialization of struct with unified syntax of initialization. Is it legal to initialize the struct with the next
    syntax in C11? Or POD is still actual?
    #include functional
    #include iostream
    #include string
    #include memory

    //
    // Basic types
    //
    class dispatcher_t
    {
    public :
    virtual ~dispatcher_t()
    {}

    virtual void
    say() = 0;
    };

    typedef std::unique_ptr dispatcher_t dispatcher_unique_ptr_t;

    class binder_t
    {
    public :
    virtual ~binder_t()
    {}

    virtual void
    say() = 0;
    };

    typedef std::unique_ptr binder_t binder_unique_ptr_t;

    //
    // Basic types implementations.
    //

    class first_dispatcher_t : public dispatcher_t
    {
    public :
    virtual void
    say() override
    {
    std::cout first dispatcher std::endl;
    }
    };

    class first_binder_t : public binder_t
    {
    public :
    virtual void
    say() override
    {
    std::cout first binder std::endl;
    }
    };

    dispatcher_unique_ptr_t
    create_first_dispatcher()
    {
    return dispatcher_unique_ptr_t( new first_dispatcher_t() );
    }

    binder_unique_ptr_t
    create_first_binder()
    {
    return binder_unique_ptr_t( new first_binder_t() );
    }

    class second_dispatcher_t : public dispatcher_t
    {
    public :
    virtual void
    say() override
    {
    std::cout second dispatcher std::endl;
    }
    };

    class second_binder_t : public binder_t
    {
    public :
    virtual void
    say() override
    {
    std::cout second binder std::endl;
    }
    };

    dispatcher_unique_ptr_t
    create_second_dispatcher()
    {
    return dispatcher_unique_ptr_t( new second_dispatcher_t() );
    }

    binder_unique_ptr_t
    create_second_binder()
    {
    return binder_unique_ptr_t( new second_binder_t() );
    }

    //
    // Test infrastructure
    //

    struct factories_t
    {
    std::function dispatcher_unique_ptr_t() m_disp_factory;
    std::function binder_unique_ptr_t() m_bind_factory;
    };

    void
    test( const factories_t factories )
    {
    std::cout creating dispatcher... std::flush;
    auto d = factories.m_disp_factory();
    std::cout ok std::endl;
    d-say();

    std::cout creating binder... std::flush;
    auto b = factories.m_bind_factory();
    std::cout ok std::endl;
    b-say();
    }

    factories_t
    create_factories( const std::string name )
    {
    if( first == name )
    return {
    []() { return create_first_dispatcher(); },
    [name]() { return create_first_binder(); }
    };

    return {
    []() { return create_second_dispatcher(); },
    []() { return create_second_binder(); }
    };
    }

    int main()
    {
    try
    {
    test( create_factories( second ) );
    test( create_factories( first ) );

    return 0;
    }
    catch( const std::exception x )
    {
    std::cerr Exception: x.what() std::endl;
    }

    return 2;
    }

    In this code I receive exception: bad function call, when use factories_t with the next return value:
    if( first == name )
    return {
    []() { return create_first_dispatcher(); },
    [name]() { return create_first_binder(); }
    };

    The problem is that that lambda has a capture list. And in this case std::function object doesn't initialized properly.
    Is it a bug?

    DB:2.58:Initialization Of Std::Function With Lambda With Capture List In The Struct Without Constructor With Unified Initialization Syntax 1s

    On 7/30/2014 8:32 AM, Igor Mironchik wrote:

    This is exactly a bug of MSVC 2013. How to report it?

    http://connect.microsoft.com/visualstudio
    Igor Tandetnik

  • RELEVANCY SCORE 2.58

    DB:2.58:Problem Compiling Jwsmtp To Send Email. 97


    Hi guys i seem to be having a bit of trouble with the below code. I am trying to send an e-mail but for some reasons i get some errors using the code posted below. I have made a win 32 app instead of a console app, could this be the problem?
    #include iostream
    #include jwsmtp.h
    #includestring.h
    using namespace std;

    void Usage( ) {
    cout jwSMTP library demo program\n
    maildemo email toaddress email fromaddress smtpserver\n
    e.g.\n
    maildemo EMAIL REMOVED EMAIL REMOVED mail.here.com\n;
    }

    int main(int argc, char* argv[ ]) {
    if(argc != 4) {
    Usage( );
    return 0;
    }

    cout jwSMTP library demo program\n\n;
    string to(argv[1]);
    string from(argv[2]);
    string smtpserver(argv[3]);

    char str[1024];
    cout Please enter the subject of the mail\n;
    cin.getline(str, 1024);
    string subject(str);
    strcpy(str, );

    cout Please enter the message body\n;
    cin.getline(str, 1024);
    string mailmessage(str);

    // This is how to tell the mailer class that we are using a direct smtp server
    // preventing the code from doing an MX lookup on 'smtpserver'
    jwsmtp::mailer mail(to.c_str( ),
    from.c_str( ),
    subject.c_str( ),
    mailmessage.c_str( ),
    smtpserver.c_str( ),
    jwsmtp::mailer::SMTP_PORT,
    false);

    // using a local file as opposed to a full path.
    mail.attach(attach.png);

    // boost::thread thrd(mail);
    // thrd.join( ); // optional
    // or:-
    mail.operator ( )( );
    cout mail.response( ) \n;

    return 0;
    }

    The errors i get are.
    Error 3 error LNK2019: unresolved external symbol public: __thiscall jwsmtp::mailer::~mailer(void) (??1mailer@jwsmtp@@QAE@XZ) referenced in function _main t.obj
    Error 4 error LNK2019: unresolved external symbol public: class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const __thiscall jwsmtp::mailer::response(void)const (?response@mailer@jwsmtp@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function _main t.obj
    Error 5 error LNK2019: unresolved external symbol public: void __thiscall jwsmtp::mailer::operator()(void) (??Rmailer@jwsmtp@@QAEXXZ) referenced in function _main t.obj
    Error 6 error LNK2019: unresolved external symbol public: bool __thiscall jwsmtp::mailer::attach(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar const ) (?attach@mailer@jwsmtp@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main t.obj
    Error 7 error LNK2019: unresolved external symbol public: __thiscall jwsmtp::mailer::mailer(char const *,char const *,char const *,char const *,char const *,unsigned short,bool) (??0mailer@jwsmtp@@QAE@PBD0000G_N@Z) referenced in function _main t.obj
    Error 8 fatal error LNK1120: 5 unresolved externals C:\Users\Adil\Documents\Visual Studio 2008\Projects\testing\Debug\testing.exe

    DB:2.58:Problem Compiling Jwsmtp To Send Email. 97

    Under Configuration Properties, Linker, Input, Additional Dependencies, add "jwsmtp.lib"

  • RELEVANCY SCORE 2.58

    DB:2.58:Cant Compile With Boost::Log (Visual Studio 2013 Preview) d8


    I can't compile my program, which uses boost::log. I'm using the Microsoft Visual Studio 2013 Preview.

    I can compile this same code (I'm developing on linux, mac, and windows) on Linux with g without issues.

    During compilation, I get this error:

    C:\Program Files (x86)\Boost\include\boost-1_54\boost/log/utility/formatting_ost
    ream.hpp(664) : error C2678: binary '' : no operator found which takes a left-
    hand operand of type 'std::basic_ostreamchar,std::char_traitschar' (or there
    is no acceptable conversion)
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    98): could be 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_streambufchar,std::char
    _traitschar *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    78): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (const void *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    58): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (long double)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    38): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (double)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    18): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (float)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    97): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned __int64)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    77): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (__int64)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    56): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned long)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    36): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (long)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    16): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned int)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    91): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (int)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    71): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned short)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    37): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (short)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    17): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::_Bool)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    10): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::ios_base (__cdecl *)(std::ios
    _base ))'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    03): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_ioschar,std::char_trait
    schar (__cdecl *)(std::basic_ioschar,std::char_traitschar ))'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    97): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_ostreamchar,std::char_t
    raitschar (__cdecl *)(std::basic_ostreamchar,std::char_traitschar ))'
    C:\Program Files (x86)\Boost\include\boost-1_54\boost/log/attributes/att
    ribute_name.hpp(175): or 'std::basic_ostreamchar,std::char_traitschar
    boost::log::v2s_mt_nt5::operator char,std::char_traitschar(std::basic_ost
    reamchar,std::char_traitschar ,const boost::log::v2s_mt_nt5::attribute_name
    )'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(6
    99): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,
    const char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    46): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,
    char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    84): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(8
    31): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,char)
    '
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    57): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    signed char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    64): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,signe
    d char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    71): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    unsigned char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    78): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,unsig
    ned char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    88): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar,T(std::basic_ostreamchar,std::char_traitschar
    ,const _Ty )'
    with
    [
    T=std::stringstream
    , _Ty=std::stringstream
    ]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    026): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar
    ,const std::error_code )'
    while trying to match the argument list '(std::basic_ostreamchar,std::c
    har_traitschar, const std::stringstream)'
    src\BasicSceneManager.cpp(46) : see reference to function template insta
    ntiation 'boost::log::v2s_mt_nt5::basic_formatting_ostreamchar,std::char_traits
    char,std::allocatorchar boost::log::v2s_mt_nt5::operator char,std::char
    _traitschar,std::allocatorchar,std::stringstream(boost::log::v2s_mt_nt5::ba
    sic_formatting_ostreamchar,std::char_traitschar,std::allocatorchar ,const
    T )' being compiled
    with
    [
    T=std::stringstream
    ]
    scons: *** [build\BasicSceneManager.obj] Error 2
    C:\Program Files (x86)\Boost\include\boost-1_54\boost/log/utility/formatting_ost
    ream.hpp(664) : error C2678: binary '' : no operator found which takes a left-
    hand operand of type 'std::basic_ostreamchar,std::char_traitschar' (or there
    is no acceptable conversion)
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    98): could be 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_streambufchar,std::char
    _traitschar *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    78): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (const void *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    58): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (long double)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    38): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (double)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(4
    18): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (float)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    97): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned __int64)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    77): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (__int64)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    56): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned long)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    36): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (long)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(3
    16): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned int)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    91): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (int)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    71): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (unsigned short)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    37): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (short)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    17): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::_Bool)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    10): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::ios_base (__cdecl *)(std::ios
    _base ))'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(2
    03): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_ioschar,std::char_trait
    schar (__cdecl *)(std::basic_ioschar,std::char_traitschar ))'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    97): or 'std::basic_ostreamchar,std::char_traitschar std::basic_ostre
    amchar,std::char_traitschar::operator (std::basic_ostreamchar,std::char_t
    raitschar (__cdecl *)(std::basic_ostreamchar,std::char_traitschar ))'
    C:\Program Files (x86)\Boost\include\boost-1_54\boost/log/attributes/att
    ribute_name.hpp(175): or 'std::basic_ostreamchar,std::char_traitschar
    boost::log::v2s_mt_nt5::operator char,std::char_traitschar(std::basic_ost
    reamchar,std::char_traitschar ,const boost::log::v2s_mt_nt5::attribute_name
    )'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(6
    99): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,
    const char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    46): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,
    char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(7
    84): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(8
    31): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,char)
    '
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    57): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    signed char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    64): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,signe
    d char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    71): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,const
    unsigned char *)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    78): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    std::char_traitschar(std::basic_ostreamchar,std::char_traitschar ,unsig
    ned char)'
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(9
    88): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar,T(std::basic_ostreamchar,std::char_traitschar
    ,const _Ty )'
    with
    [
    T=std::stringstream
    , _Ty=std::stringstream
    ]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\ostream(1
    026): or 'std::basic_ostreamchar,std::char_traitschar std::operator
    char,std::char_traitschar(std::basic_ostreamchar,std::char_traitschar
    ,const std::error_code )'
    while trying to match the argument list '(std::basic_ostreamchar,std::c
    har_traitschar, const std::stringstream)'
    src\GlrProgram.cpp(74) : see reference to function template instantiatio
    n 'boost::log::v2s_mt_nt5::basic_formatting_ostreamchar,std::char_traitschar,
    catorchar boost::log::v2s_mt_nt5::operator char,std::char_traits
    char,std::allocatorchar,std::stringstream(boost::log::v2s_mt_nt5::basic_for
    matting_ostreamchar,std::char_traitschar,std::allocatorchar ,const T )'
    being compiled
    withstd::allo
    [
    T=std::stringstream
    ]
    scons: *** [build\GlrProgram.obj] Error 2
    scons: building terminated because of errors.

    Has anyone had any issues like this before?

    DB:2.58:Cant Compile With Boost::Log (Visual Studio 2013 Preview) d8

    Thanks David and Mike.

    Mike, you were absolutely right! Converting the sstreams into string with str() solved the issue. Thanks so much! The project now compiles fully.

  • RELEVANCY SCORE 2.57

    DB:2.57:How To Replace Allocators Of Stl With Actual Source Code? 7d



    Hello,
    I need to replace allocators with their original source code. I am extracting exported methods from PE export table and facing strange lengthy allocators where STL containers were used in original source code . for example if source code was
    typedef std::liststd::basic_string_TCHAR TokenList;
    EXPORTS_API const TokenList getLiteralList();

    from export table i am getting
    std::listclass std::basic_stringunsigned short, std::char_traitsunsigned short,class std::allocatorunsigned short ,class std::allocatorclass std::basic_stringunsigned short,struct std::char_traitsunsigned short,class
    std::allocatorunsigned short const __thiscall CExpressionTokenizer::getLiteralList(void)

    DB:2.57:How To Replace Allocators Of Stl With Actual Source Code? 7d

    Hello,
    Thanks for your post!
    Depending on your question, would you please check
    if below forum is the proper place to post ?
    http://social.msdn.microsoft.com/Forums/en-US/category/visualcsharp

    Hope this helps you.
    Have a great day!
    Thanks,
    Jundan

  • RELEVANCY SCORE 2.57

    DB:2.57:Error Lnk2019: Unresolved External Symbol __Declspec(Dllimport) Public: Class Std::_String_Iterator... a3


    This link error was related to a vendor library.  The full error is this:Linking...1alcommon.lib(altools.obj) : error LNK2019: unresolved external symbol __declspec(dllimport) public: class std::_String_iteratorchar,struct std::char_traitschar,class std::allocatorchar __thiscall std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ::erase(class std::_String_iteratorchar,struct std::char_traitschar,class std::allocatorchar ) (__imp_?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V32@@Z) referenced in function class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar __cdecl ALTools::removeNonAlphabeticCaracters(class std::basic_stringchar,struct std::char_traitschar,class std::allocatorchar ) (?removeNonAlphabeticCaracters@ALTools@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z)1C:\Code\C2M\NaoQi_modules\babbleHead\build\src\Release\babbleHead.exe : fatal error LNK1120: 1 unresolved externalsLooks like iostreams, but I don't know of anything special I have to link to get that resolved.  I saw some web chat that related this to the Boost iostreams, so I added libboost_iostreams-vc80-mt-1_34_1.lib to the link, but that didn't have any effect.  Both Release and Debug versions have this problem.Can anyone tell me what DLL or lib should be added to define this?This is in Visual C++ 2008 Express on WinXP.

    DB:2.57:Error Lnk2019: Unresolved External Symbol __Declspec(Dllimport) Public: Class Std::_String_Iterator... a3

    Well, thanks for the reply.  I recompiled with Visual Studio 2005 Pro, and the same settings, and it compiled without a problem.  So at least I can avoid the problem by using the older version of Visual Studio. That was a good idea to look into what the vendor used to compile their lib.  I actually didn't pursue that because I got it compiled with VS 2005.  But other people with this problem who can't downgrade VS might look into it.  I'd still like to understand the problem, but don't have time to pursue it.

  • RELEVANCY SCORE 2.57

    DB:2.57:[Vc8 Sp1] A Bug And A Problem With Std::Codecvt dz


    Hi,below is a small program that shows two issues with std::codecvt.  I usecl -MD -Zi -EHsc -FAs -DBUG_ON filenameto build it.1) std::codecvt:ut doesn't return std::codecvt_base:artial when it needs more output buffer.  This seems to violate [lib.locale.codecvt.virtuals].4.2) If you don't define BUG_ON, std::codecvt:ut returns an error when it encounters the surrogate (\U00010002 in this case).  Even worse, std::wcout garbles the output (no cr/lf).  Does VC8 support any (preferably portable) way to cleanly handle surrogates when transforming native wchar_t - native char (and vice versa)?TIA,aacode#include iostream#include locale#include string#include cstring#include stdexceptnamespace{    std:ize_t const magic_out_len = 10;    typedef std::codecvtwchar_t, char, std::mbstate_t native_codecvt;    std::locale global_loc;    std:tring to_native_string(wchar_t const* in, std:ize_t in_len)    {        std:tring res;        char out[magic_out_len];        std::mbstate_t state;        char *out_next = out            , *out_end = out + magic_out_len;        wchar_t const *in_next = in            , *in_end = in + in_len;        native_codecvt::result cvt_res;        do        {            cvt_res = std::use_facetnative_codecvt(global_loc).out(state                                                                     , in_next                                                                     , in_end                                                                     , in_next                                                                     , out                                                                     , out_end                                                                     , out_next);            if (native_codecvt::error == cvt_res)            {                throw std::runtime_error(to_native_string:  Error converting wide char string to std:tring.);            }            res.append(out, out_next - out);        }#if BUG_ON        while (native_codecvt:artial == cvt_res);#else        while (in_next != in_end);#endif        return res;    }}int main(){    int res = 0;    wchar_t const* test_str = LThis is Linear B Syllable B028 I: \U00010002;    std::cout Setting the global locale to the user's configured locale ... std::endl;    std::locale::global(std::locale());    global_loc = std::locale();    std::cout Setting global locale on default stream objects ... std::endl;    std::cout.imbue(global_loc);    std::cin.imbue(global_loc);    std::cerr.imbue(global_loc);    std::clog.imbue(global_loc);    std::wcout.imbue(global_loc);    std::wcin.imbue(global_loc);    std::wcerr.imbue(global_loc);    std::wclog.imbue(global_loc);    std::wcout test_str std::endl;    std::cout - to_native_string(test_str, std::wcslen(test_str)) std::endl;endlbl:    return res;}/code

    DB:2.57:[Vc8 Sp1] A Bug And A Problem With Std::Codecvt dz

    Hi,below is a small program that shows two issues with std::codecvt.  I usecl -MD -Zi -EHsc -FAs -DBUG_ON filenameto build it.1) std::codecvt:ut doesn't return std::codecvt_base:artial when it needs more output buffer.  This seems to violate [lib.locale.codecvt.virtuals].4.2) If you don't define BUG_ON, std::codecvt:ut returns an error when it encounters the surrogate (\U00010002 in this case).  Even worse, std::wcout garbles the output (no cr/lf).  Does VC8 support any (preferably portable) way to cleanly handle surrogates when transforming native wchar_t - native char (and vice versa)?TIA,aacode#include iostream#include locale#include string#include cstring#include stdexceptnamespace{    std:ize_t const magic_out_len = 10;    typedef std::codecvtwchar_t, char, std::mbstate_t native_codecvt;    std::locale global_loc;    std:tring to_native_string(wchar_t const* in, std:ize_t in_len)    {        std:tring res;        char out[magic_out_len];        std::mbstate_t state;        char *out_next = out            , *out_end = out + magic_out_len;        wchar_t const *in_next = in            , *in_end = in + in_len;        native_codecvt::result cvt_res;        do        {            cvt_res = std::use_facetnative_codecvt(global_loc).out(state                                                                     , in_next                                                                     , in_end                                                                     , in_next                                                                     , out                                                                     , out_end                                                                     , out_next);            if (native_codecvt::error == cvt_res)            {                throw std::runtime_error(to_native_string:  Error converting wide char string to std:tring.);            }            res.append(out, out_next - out);        }#if BUG_ON        while (native_codecvt:artial == cvt_res);#else        while (in_next != in_end);#endif        return res;    }}int main(){    int res = 0;    wchar_t const* test_str = LThis is Linear B Syllable B028 I: \U00010002;    std::cout Setting the global locale to the user's configured locale ... std::endl;    std::locale::global(std::locale());    global_loc = std::locale();    std::cout Setting global locale on default stream objects ... std::endl;    std::cout.imbue(global_loc);    std::cin.imbue(global_loc);    std::cerr.imbue(global_loc);    std::clog.imbue(global_loc);    std::wcout.imbue(global_loc);    std::wcin.imbue(global_loc);    std::wcerr.imbue(global_loc);    std::wclog.imbue(global_loc);    std::wcout test_str std::endl;    std::cout - to_native_string(test_str, std::wcslen(test_str)) std::endl;endlbl:    return res;}/code

  • RELEVANCY SCORE 2.57

    DB:2.57:Visual Studio 14 Ctp - C3518 Error f3


    In Visual Studio 2013 Update 3, this code works well.

    #include iostream

    using namespace std;

    int main(int argc, char* argv []) {
    int v1{ 123 };
    auto v2{ 123 };
    auto v3 = { 123 };
    auto v4{ 1, 2, 3 };
    auto v5 = { 1, 2, 3 };

    cout v1's type is typeid(v1).name() std::endl;
    cout v2's type is typeid(v2).name() std::endl;
    cout v3's type is typeid(v3).name() std::endl;
    cout v4's type is typeid(v4).name() std::endl;
    cout v5's type is typeid(v5).name() std::endl;
    }

    Result :
    v1's type is int
    v2's type is class std::initializer_listint
    v3's type is class std::initializer_listint
    v4's type is class std::initializer_listint
    v5's type is class std::initializer_listint
    However, in Visual Studio 14 CTP 3,
    error C3518: in a direct-initialization context an initializer-list can only have a single element
    at line 9 (auto v4{ 1, 2, 3 };)
    Are there any changes between VS 2013 and VS 14?

    DB:2.57:Visual Studio 14 Ctp - C3518 Error f3

    OK, after looking around, I found something even more definitive.
    The CTP implements this
    current proposal. So this is a compilation error. You should also find that v2 will be of type int instead of std::initializer_listint.

    This is a signature Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the
    major point of my posts is to aid in the learning process.

  • RELEVANCY SCORE 2.57

    DB:2.57:Workaround For A Linker Error While Using Json In Wizard Generated Projects ss


    This post is to update Casablanca users about a linker error while using Casablanca JSON library in wizard generated projects:
    Issue:
    With the latest Casablanca bits (December
    Refresh), if you are using http::json::value::field_map in wizard generated projects, you will see the below linker error while building Debug configurations:
    error LNK2019: unresolved external symbol __declspec(dllimport) public: class stdext::hash_mapclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t
    ,class http::json::value,class stdext::hash_compareclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,struct std::lessclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class
    std::allocatorwchar_t ,class std::allocatorstruct std::pairclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t const ,class http::json::value const
    __cdecl http::json::value::fields(void)const (__imp_?fields@value@json@http@@QEBAAEBV?$hash_map@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@Vvalue@json@http@@V?$hash_compare@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@stdext@@V?$allocator@U?$pair@$$CBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@Vvalue@json@http@@@std@@@2@@stdext@@XZ)
    referenced in function bool __cdecl on_initialize(class std::vectorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,class std::allocatorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class
    std::allocatorwchar_t const ,class std::vectorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,class std::allocatorclass std::basic_stringwchar_t,struct
    std::char_traitswchar_t,class std::allocatorwchar_t const ) (?on_initialize@@YA_NAEBV?$vector@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@V?$allocator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@std@@0@Z)
    The issue is specific to Debug configurations ONLY, it doesn’t happen with Release configurations.
    The linker error appears due to the wizard generated projects linking to debug Casablanca lib’s but not defining the correct DEBUG flags.
    Workaround:
    Here is a temporary workaround for Debug configurations:
    In the CasablancaService dll project, goto the Property Pages:

    Under Debugging Command: Ensure that it points to the Debug CasablancaHost110.exe instead of the Release one. i.e change the field to $(CasablancaSDKRoot)\bin\x64\Debug\CasablancaHost110.exe.For
    VS 2010, replace the path for CasablancaHost100.exe.Under C/C Preprocessor definitions: Change NDEBUG to DEBUG.Under C/C Code Generation: Change Multi threaded Dll (/MD) to Multi threaded Debug Dll (/MDd)
    The project will now build and link successfully. You will be able to run/debug the project locally.
    For deploying to Azure/emulator, please use the Release configuration builds
    We are working on providing an official fix.
    Thanks,
    Kavya

    DB:2.57:Workaround For A Linker Error While Using Json In Wizard Generated Projects ss

    This post is to update Casablanca users about a linker error while using Casablanca JSON library in wizard generated projects:
    Issue:
    With the latest Casablanca bits (December
    Refresh), if you are using http::json::value::field_map in wizard generated projects, you will see the below linker error while building Debug configurations:
    error LNK2019: unresolved external symbol __declspec(dllimport) public: class stdext::hash_mapclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t
    ,class http::json::value,class stdext::hash_compareclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,struct std::lessclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class
    std::allocatorwchar_t ,class std::allocatorstruct std::pairclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t const ,class http::json::value const
    __cdecl http::json::value::fields(void)const (__imp_?fields@value@json@http@@QEBAAEBV?$hash_map@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@Vvalue@json@http@@V?$hash_compare@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@stdext@@V?$allocator@U?$pair@$$CBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@Vvalue@json@http@@@std@@@2@@stdext@@XZ)
    referenced in function bool __cdecl on_initialize(class std::vectorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,class std::allocatorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class
    std::allocatorwchar_t const ,class std::vectorclass std::basic_stringwchar_t,struct std::char_traitswchar_t,class std::allocatorwchar_t ,class std::allocatorclass std::basic_stringwchar_t,struct
    std::char_traitswchar_t,class std::allocatorwchar_t const ) (?on_initialize@@YA_NAEBV?$vector@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@V?$allocator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@std@@0@Z)
    The issue is specific to Debug configurations ONLY, it doesn’t happen with Release configurations.
    The linker error appears due to the wizard generated projects linking to debug Casablanca lib’s but not defining the correct DEBUG flags.
    Workaround:
    Here is a temporary workaround for Debug configurations:
    In the CasablancaService dll project, goto the Property Pages:

    Under Debugging Command: Ensure that it points to the Debug CasablancaHost110.exe instead of the Release one. i.e change the field to $(CasablancaSDKRoot)\bin\x64\Debug\CasablancaHost110.exe.For
    VS 2010, replace the path for CasablancaHost100.exe.Under C/C Preprocessor definitions: Change NDEBUG to DEBUG.Under C/C Code Generation: Change Multi threaded Dll (/MD) to Multi threaded Debug Dll (/MDd)
    The project will now build and link successfully. You will be able to run/debug the project locally.
    For deploying to Azure/emulator, please use the Release configuration builds
    We are working on providing an official fix.
    Thanks,
    Kavya

  • RELEVANCY SCORE 2.57

    DB:2.57:Bug In Std::Map ? k1


    when I try to compile the following code with Workshop 6.1 or 7 I get errors - g++ 3.2 I don't....

    anduril:~/src/test/c++/map_bug$ cat map_bug.cc
    #include map
    #include string

    std::mapconst std::string, unsigned str_map;

    anduril:~/src/test/c++/map_bug$ CC -V
    CC: Forte Developer 7 C++ 5.4 Patch 111715-08 2003/06/08
    anduril:~/src/test/c++/map_bug$ CC -c map_bug.cc
    "/DIST/sun/SUNWspro/prod/include/CC/Cstd/./map", line 251: Error: Multiple declaration for std::mapconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, unsigned, std::lessconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, std::allocatorstd::pairconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, unsigned::insert(const std::pairconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, unsigned).
    "map_bug.cc", line 4: Where: While specializing "std::mapconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, unsigned, std::lessconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, std::allocatorstd::pairconst std::basic_stringchar, std::char_traitschar, std::allocatorchar, unsigned".
    "map_bug.cc", line 4: Where: Specialized in non-template code.
    1 Error(s) detected.
    anduril:~/src/test/c++/map_bug$ g++ --version
    g++ (GCC) 3.2.3
    Copyright (C) 2002 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    anduril:~/src/test/c++/map_bug$ g++ -c map_bug.cc
    anduril:~/src/test/c++/map_bug$

    Can anybody tell me wheather this is a bug? Am I doing something wrong?

    DB:2.57:Bug In Std::Map ? k1

    The code works with stlport, and it works if you remove "const" from the string parameter:

    std::mapstd::string, unsigned str_map;

    - Rose

  • RELEVANCY SCORE 2.57

    DB:2.57:Error C2664: Std::Basic_Istringstream_Elem,_Traits,_Alloc::Basic_Istringstream(Std::Basic_Istringstream_Elem,_Traits,_Alloc ) : Cannot Convert Parameter 1 From Std::String To Std::Basic_Istringstream_Elem,_Traits,_Alloc _ df


    Hi,
    When I converted VC6 code to Visual Studio 2010 I got error message:
    error C2664: 'std::basic_istringstream_Elem,_Traits,_Alloc::basic_istringstream(std::basic_istringstream_Elem,_Traits,_Alloc )' : cannot convert parameter 1 from 'std::string' to 'std::basic_istringstream_Elem,_Traits,_Alloc
    '

    How to fix this?
    Thanks in advance.

    MFC coder

    DB:2.57:Error C2664: Std::Basic_Istringstream_Elem,_Traits,_Alloc::Basic_Istringstream(Std::Basic_Istringstream_Elem,_Traits,_Alloc ) : Cannot Convert Parameter 1 From Std::String To Std::Basic_Istringstream_Elem,_Traits,_Alloc _ df

    On 4/23/2012 7:10 PM, MFC coder wrote:

    std::istringstream Runtime::read(const std::stringcommand) {
    std::string result;
    return result;
    }

    The constructor from string is explicit, and doesn't allow implicit conversion. Make it
    return std::istringstream(result);

    Igor Tandetnik