1 | These directories contain the Visual Studio version of Ipopt. They |
---|
2 | have been created with Microsoft Visual C++ .NET 2003 and Intel |
---|
3 | Fortran 8.0. |
---|
4 | |
---|
5 | Before opening the files in your Visual Studio, first make sure that |
---|
6 | the following third party source files are present (after you got them |
---|
7 | from netlib and Harwell): |
---|
8 | |
---|
9 | trunk/Extern/HSL/ma27ad.f |
---|
10 | trunk/Extern/HSL/mc19ad.f |
---|
11 | trunk/Extern/blas/dasum.f |
---|
12 | trunk/Extern/blas/daxpy.f |
---|
13 | trunk/Extern/blas/dcopy.f |
---|
14 | trunk/Extern/blas/ddot.f |
---|
15 | trunk/Extern/blas/dnrm2.f |
---|
16 | trunk/Extern/blas/dscal.f |
---|
17 | trunk/Extern/blas/idamax.f |
---|
18 | |
---|
19 | Then open the solution file |
---|
20 | |
---|
21 | trunk/Windows/VisualStudio_dotNET/Ipopt/Ipopt.sln |
---|
22 | |
---|
23 | This solution compiles both a Fortran example problem and a C++ |
---|
24 | example problem. You should be able to base your development on one of |
---|
25 | these examples. |
---|
26 | |
---|
27 | |
---|
28 | Here are some helpful notes if you are building a new C++ project. |
---|
29 | - The project type used for the example was "Win32 Console" (Not .NET Console!) |
---|
30 | |
---|
31 | - Precompiled headers were turned off: |
---|
32 | Project Properties | C/C++ | Precompiled-Headers | Create/Use Precompiled Headers = "Not Using Precompiled Headers" |
---|
33 | |
---|
34 | - You will need to add the include directories to your C++ project |
---|
35 | you can copy these from the Ipopt project: |
---|
36 | Project Properties | C/C++ | General | Additional Include Directories = <copy from Ipopt> |
---|
37 | |
---|
38 | - You must ensure that the run-time libraries between FortranLinAlg and the C++ project are |
---|
39 | compatible. Look at the "Mixed Language" area of the Intel Fortran compiler html help for |
---|
40 | a table of compatible settings (look for something about consistent run-time libraries in help) |
---|
41 | These are set by: |
---|
42 | 1) for the C++ project |
---|
43 | Project Properties | C/C++ | Code Generation | Runtime Library |
---|
44 | 2) for the Fortran project |
---|
45 | FortranLinAlg Properties | Fortran | Libraries | Runtime Library |
---|
46 | |
---|
47 | - You must add the Fortran compiler LIB path to the C++ project |
---|
48 | This is something like "C:\Program Files\Intel\Fortran\compiler80\IA32\LIB": |
---|
49 | Project Properties | Linker | General | Additional Library Directories = <LIB path> |
---|
50 | |
---|