Difference between revisions of "Visual Studio"

From Eigen
Jump to: navigation, search
(Created page with "Here are some hints on using Eigen with Microsoft Visual Studio. This page is written using the 2010 Express version by somebody who is not familiar with Visual Studio, so feel f...")
 
(Replaced content with "Moved to IDE/Visual Studio.")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Here are some hints on using Eigen with Microsoft Visual Studio. This page is written using the 2010 Express version by somebody who is not familiar with Visual Studio, so feel free to correct and improve!
+
Moved to [[IDEs#Visual_Studio|IDE/Visual Studio]].
 
+
== Compiling a simple Eigen program ==
+
 
+
# First you need to download Eigen. Using the TortoiseHg Workbench, select ''Clone Repository'' in the ''File'' menu, and use the URL  https://bitbucket.org/eigen/eigen/ as source. Alternatively, download and unpack the zip file. I will denote by <tt>EIGENDIR</tt> the folder in which you store the Eigen library; this folder contains other folders like ''bench'', ''blas'', ''cmake'' and ''Eigen''.
+
# In Visual Studio, make a new project (''File'' | ''New'' | ''Project'') using the ''Empty Project'' template.
+
# Add a C++ file to the project (''Project'' | ''Add New Item'', choose the ''C++ File'' template).
+
# Write your program in the file. For instance, copy and paste the first program at the [http://eigen.tuxfamily.org/dox/GettingStarted.html Getting Started] guide. To prevent the console window from closing immediately after the program finishes, add something like "std::cin.get();" at the end.
+
# Open the project properties page (''Project'' | ''Properties''), in the ''C++'' folder open the ''General'' page, and after ''Additional Include Directories'' put <tt>EIGENDIR</tt> (the folder in which you store the Eigen library).
+
# Compile the program (''Debug'' | ''Build Solution'', or press F7).
+
# Run the program (''Debug'' | ''Start debugging'', or press F5).
+

Latest revision as of 13:37, 21 December 2016

Moved to IDE/Visual Studio.