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. Static Linking

Static Linking

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioquestion
6 Posts 4 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.
  • H Offline
    H Offline
    hyling
    wrote on last edited by
    #1

    I'm trying to statically link some libraries(Xerces) into my application with VS 2003 .Net. I'm trying to do this by adding the libraries to the "Additional Dependencies" field under the "Linker" section of the project properties. After rebuilding the application with these settings, the application still tries to link to the dynamic versions of the libraries. Did I miss something? :confused: Thanks Hua-Ying

    A M U 3 Replies Last reply
    0
    • H hyling

      I'm trying to statically link some libraries(Xerces) into my application with VS 2003 .Net. I'm trying to do this by adding the libraries to the "Additional Dependencies" field under the "Linker" section of the project properties. After rebuilding the application with these settings, the application still tries to link to the dynamic versions of the libraries. Did I miss something? :confused: Thanks Hua-Ying

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      wrong library? Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      • H hyling

        I'm trying to statically link some libraries(Xerces) into my application with VS 2003 .Net. I'm trying to do this by adding the libraries to the "Additional Dependencies" field under the "Linker" section of the project properties. After rebuilding the application with these settings, the application still tries to link to the dynamic versions of the libraries. Did I miss something? :confused: Thanks Hua-Ying

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Check the docs, some libraries (like id3lib) require you to #define a symbol differently when you use a static LIB build versus a DLL build. Also make sure you're not picking up a #pragma comment(lib,"...") in a Xerces header file. -- I'm Michael Dunn and I approve this post. Vote Trogdor in oh-four!

        H 1 Reply Last reply
        0
        • H hyling

          I'm trying to statically link some libraries(Xerces) into my application with VS 2003 .Net. I'm trying to do this by adding the libraries to the "Additional Dependencies" field under the "Linker" section of the project properties. After rebuilding the application with these settings, the application still tries to link to the dynamic versions of the libraries. Did I miss something? :confused: Thanks Hua-Ying

          U Offline
          U Offline
          Uwe Keim
          wrote on last edited by
          #4

          After having had a look ad Xerces several month ago, too, I recommend to just drop Xerces and just use the much-easier-to-use MSXML3/MSXML4. Should be able to do all the things, Xerces does, too. -- Affordable Windows-based CMS: www.zeta-producer.de/enu

          H 1 Reply Last reply
          0
          • U Uwe Keim

            After having had a look ad Xerces several month ago, too, I recommend to just drop Xerces and just use the much-easier-to-use MSXML3/MSXML4. Should be able to do all the things, Xerces does, too. -- Affordable Windows-based CMS: www.zeta-producer.de/enu

            H Offline
            H Offline
            hyling
            wrote on last edited by
            #5

            Unfortunately I need a cross platform parser. I don't believe MSXML is cross platform. :(

            1 Reply Last reply
            0
            • M Michael Dunn

              Check the docs, some libraries (like id3lib) require you to #define a symbol differently when you use a static LIB build versus a DLL build. Also make sure you're not picking up a #pragma comment(lib,"...") in a Xerces header file. -- I'm Michael Dunn and I approve this post. Vote Trogdor in oh-four!

              H Offline
              H Offline
              hyling
              wrote on last edited by
              #6

              Interesting, I'll check. Thanks Hua-Ying

              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