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