View Full Version : Mixed Language Project???
Is it possible in Visual Studio .NET to build ONE project with Fortran files AND C++ files into one application (or library) ???
tzeis
03-17-2004, 06:36 PM
We do have an example of creating a mixed language application using a solution with two projects, a VC project and a Fortran project. The solution is in the"~\Win32\Examples\VisualStudio\CcallF95static" directory.
If you really want to do it with one project, you will have to create a VC project, add the Fortran source file to the project and create a custom build step for the Fortran file, using the options '-ml MSVC -staticlink -c "$(InputPath)" -o "$(OutDir)"\"$(InputName)".obj'. You will also have to point the linker to the needed Fortran runtime libraries. It is a lot easier on you to use the two project method, where Visual Studio manages the build tasks.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.