Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DEBUG to RELEASE

DEBUG to RELEASE

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++cssdebuggingquestion
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eli15021979
    wrote on last edited by
    #1

    Hi, I'm facing some problem when trying to build my solution in Release mode(building in debug mode works fine). My solution contains several project(10 of them are static libraries and one is the executable which uses those libraries). One of the static libraries is the GUI implementation(MFC). I've configured the properties of each project in release mode(e.g. use MFC as a shared DLL , use runtime library as Multi-Threaded DLL[\Md] etc.). I've managed to compile the entire solution,but failed to link the executable. I'm getting the following error Linking... GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification mfcs80.lib(nolib.obj) : warning LNK4098: defaultlib 'nafxcw.lib' conflicts with use of other libs; use /NODEFAULTLIB:library HmiLib.lib(h_windsp_formMng.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@PAVIlvGadgetContainer@@HU?$less@PAVIlvGadgetContainer@@@std@@V?$allocator@U?$pair@QAVIlvGadgetContainer@@H@std@@@3@$0A@@std@@@std@@QBE_NABV012@@Z) HmiLib.lib(h_utils_studio_attrGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_enumGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_egGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo .\Release/link.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe (tool returned code: 1120) Newlink - 5 error(s), 68 warning(s) I've trying to google a little bit but didn't find an explanation for the above error. Anyone? :doh: With best regards, Eli

    D N 2 Replies Last reply
    0
    • E eli15021979

      Hi, I'm facing some problem when trying to build my solution in Release mode(building in debug mode works fine). My solution contains several project(10 of them are static libraries and one is the executable which uses those libraries). One of the static libraries is the GUI implementation(MFC). I've configured the properties of each project in release mode(e.g. use MFC as a shared DLL , use runtime library as Multi-Threaded DLL[\Md] etc.). I've managed to compile the entire solution,but failed to link the executable. I'm getting the following error Linking... GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification mfcs80.lib(nolib.obj) : warning LNK4098: defaultlib 'nafxcw.lib' conflicts with use of other libs; use /NODEFAULTLIB:library HmiLib.lib(h_windsp_formMng.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@PAVIlvGadgetContainer@@HU?$less@PAVIlvGadgetContainer@@@std@@V?$allocator@U?$pair@QAVIlvGadgetContainer@@H@std@@@3@$0A@@std@@@std@@QBE_NABV012@@Z) HmiLib.lib(h_utils_studio_attrGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_enumGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_egGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo .\Release/link.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe (tool returned code: 1120) Newlink - 5 error(s), 68 warning(s) I've trying to google a little bit but didn't find an explanation for the above error. Anyone? :doh: With best regards, Eli

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      eli15021979 wrote:

      GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification ... I've trying to google a little bit but didn't find an explanation for the above error.

      Did you look here?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      E 2 Replies Last reply
      0
      • E eli15021979

        Hi, I'm facing some problem when trying to build my solution in Release mode(building in debug mode works fine). My solution contains several project(10 of them are static libraries and one is the executable which uses those libraries). One of the static libraries is the GUI implementation(MFC). I've configured the properties of each project in release mode(e.g. use MFC as a shared DLL , use runtime library as Multi-Threaded DLL[\Md] etc.). I've managed to compile the entire solution,but failed to link the executable. I'm getting the following error Linking... GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification mfcs80.lib(nolib.obj) : warning LNK4098: defaultlib 'nafxcw.lib' conflicts with use of other libs; use /NODEFAULTLIB:library HmiLib.lib(h_windsp_formMng.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@PAVIlvGadgetContainer@@HU?$less@PAVIlvGadgetContainer@@@std@@V?$allocator@U?$pair@QAVIlvGadgetContainer@@H@std@@@3@$0A@@std@@@std@@QBE_NABV012@@Z) HmiLib.lib(h_utils_studio_attrGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_enumGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_egGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo .\Release/link.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe (tool returned code: 1120) Newlink - 5 error(s), 68 warning(s) I've trying to google a little bit but didn't find an explanation for the above error. Anyone? :doh: With best regards, Eli

        N Offline
        N Offline
        norish
        wrote on last edited by
        #3

        This explains the fact.

        error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo

        This means program calls invalid_parameter_noinfo() but no symbols around libraries. If you did not call this function directly, some libraries (guess MFC?) call it. You can try goole with keyword by invalid_parameter_noinfo.

        E 2 Replies Last reply
        0
        • N norish

          This explains the fact.

          error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo

          This means program calls invalid_parameter_noinfo() but no symbols around libraries. If you did not call this function directly, some libraries (guess MFC?) call it. You can try goole with keyword by invalid_parameter_noinfo.

          E Offline
          E Offline
          eli15021979
          wrote on last edited by
          #4

          Hi norish. Thanks for your help. I know that this is my problem...I just can't find the call for invalid_parameter_noinfo. According to MSDN:

          When compiling with /MD, a reference to "func" in your source becomes a reference "__imp__func" in the object since all the run-time is now held within a DLL. If you try to link with the static libraries LIBC.lib or LIBCMT.lib, you will get LNK2001 on __imp__func. If you try to link with MSVCxx.lib when compiling without /MD you will not always get LNK2001, but you will likely have other problems.

          All the libraries in the solution,as well as the executable, are being compiled with /Md option(i.e runtime library is a multhi-threaded DLL). In the linker option I specified the linker to ignore LIBC,LIBCMT and MSVCRT default libraries. But still,I get those errors... Anything? Thanks again, Best regards, Eli

          1 Reply Last reply
          0
          • D David Crow

            eli15021979 wrote:

            GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification ... I've trying to google a little bit but didn't find an explanation for the above error.

            Did you look here?

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            E Offline
            E Offline
            eli15021979
            wrote on last edited by
            #5

            Hi David. Thanks for your help,but this warning is not my problem... I know that my problem is the errors below(LNK2001)...I just can't find the call for invalid_parameter_noinfo. According to MSDN(relating LNK2001):

            When compiling with /MD, a reference to "func" in your source becomes a reference "__imp__func" in the object since all the run-time is now held within a DLL. If you try to link with the static libraries LIBC.lib or LIBCMT.lib, you will get LNK2001 on __imp__func. If you try to link with MSVCxx.lib when compiling without /MD you will not always get LNK2001, but you will likely have other problems.

            All the libraries in the solution,as well as the executable, are being compiled with /Md option(i.e runtime library is a multhi-threaded DLL). In the linker option I specified the linker to ignore LIBC,LIBCMT and MSVCRT default libraries. But still,I get those error... Anything? Thanks again, Best regards, Eli

            1 Reply Last reply
            0
            • D David Crow

              eli15021979 wrote:

              GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification ... I've trying to google a little bit but didn't find an explanation for the above error.

              Did you look here?

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              E Offline
              E Offline
              eli15021979
              wrote on last edited by
              #6

              Hi David, I removed MSVCRT.lib from default libraries ignore list and it's working just fine. Thanks again, Eli

              H 1 Reply Last reply
              0
              • N norish

                This explains the fact.

                error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo

                This means program calls invalid_parameter_noinfo() but no symbols around libraries. If you did not call this function directly, some libraries (guess MFC?) call it. You can try goole with keyword by invalid_parameter_noinfo.

                E Offline
                E Offline
                eli15021979
                wrote on last edited by
                #7

                Hi norish, I removed MSVCRT.lib from default libraries ignore list and it's working just fine. Thanks again, Eli

                1 Reply Last reply
                0
                • E eli15021979

                  Hi David, I removed MSVCRT.lib from default libraries ignore list and it's working just fine. Thanks again, Eli

                  H Offline
                  H Offline
                  hyperpontia
                  wrote on last edited by
                  #8

                  Your post was helpful for me too!! Thank you!!!

                  J 1 Reply Last reply
                  0
                  • H hyperpontia

                    Your post was helpful for me too!! Thank you!!!

                    J Offline
                    J Offline
                    JackyGee
                    wrote on last edited by
                    #9

                    很好!!!good,thx

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups