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. Visual Studio
  4. Using a makefile with visual studio express 2010

Using a makefile with visual studio express 2010

Scheduled Pinned Locked Moved Visual Studio
visual-studiocsharphelptutorialquestion
6 Posts 2 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.
  • M Offline
    M Offline
    Member 9895558
    wrote on last edited by
    #1

    Hello, I'd like to use a makefile for my visual studio express project. I found a lot of documentation of the net but all of these documentation is not complete. In fact, I can see in VS that I can create a makefile project after that I configure the "make" command in properties. And next...I'm stuck here. Where do I specify the makefile file to use ? And how to compile a static library (.lib) in vs makefile format ? Regards,

    L 1 Reply Last reply
    0
    • M Member 9895558

      Hello, I'd like to use a makefile for my visual studio express project. I found a lot of documentation of the net but all of these documentation is not complete. In fact, I can see in VS that I can create a makefile project after that I configure the "make" command in properties. And next...I'm stuck here. Where do I specify the makefile file to use ? And how to compile a static library (.lib) in vs makefile format ? Regards,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      yeswescan wrote:

      I'd like to use a makefile for my visual studio express project.

      Why bother? The Express versions are designed to build projects using internally created scripts or the msbuild command (2008 and beyond). Using a Makefile offers no benefits whatsoever.

      Use the best guess

      M 1 Reply Last reply
      0
      • L Lost User

        yeswescan wrote:

        I'd like to use a makefile for my visual studio express project.

        Why bother? The Express versions are designed to build projects using internally created scripts or the msbuild command (2008 and beyond). Using a Makefile offers no benefits whatsoever.

        Use the best guess

        M Offline
        M Offline
        Member 9895558
        wrote on last edited by
        #3

        Ok you're right !! In fact I'm doing a library which use an another library. Could it be possible to compile all the things in a static way ? This is why I would like to use a makefile, because the external library is not linked statically in my own library.

        L 1 Reply Last reply
        0
        • M Member 9895558

          Ok you're right !! In fact I'm doing a library which use an another library. Could it be possible to compile all the things in a static way ? This is why I would like to use a makefile, because the external library is not linked statically in my own library.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          This has nothing to do with static or dynamic linking; Visual Studio can do all that you need. You can create static or dynamic libraries, and executables that include either, both or none.

          Use the best guess

          M 1 Reply Last reply
          0
          • L Lost User

            This has nothing to do with static or dynamic linking; Visual Studio can do all that you need. You can create static or dynamic libraries, and executables that include either, both or none.

            Use the best guess

            M Offline
            M Offline
            Member 9895558
            wrote on last edited by
            #5

            Ok, this is the problem now. When I used my static library in an application I have an error about my own library that use an external library (error LNK: foo_external.lib not found). So I think I have this error because my own lib is not compiled statically with the external lib. How can I do this ? Cheers,

            L 1 Reply Last reply
            0
            • M Member 9895558

              Ok, this is the problem now. When I used my static library in an application I have an error about my own library that use an external library (error LNK: foo_external.lib not found). So I think I have this error because my own lib is not compiled statically with the external lib. How can I do this ? Cheers,

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              yeswescan wrote:

              error LNK: foo_external.lib not found

              That just means that the linker cannot find the file foo_external.lib. The resolution is to make sure that the directory containing that library is added to the search paths in your project. Using a Makefile would not fix this.

              Use the best guess

              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