version 1.1, 2001/10/02 11:16:55 |
version 1.2, 2002/09/11 07:26:38 |
Line 6 compiler under WIN32. |
|
Line 6 compiler under WIN32. |
|
|
|
1. Unzip the archive, preserving folder names so that the directory |
1. Unzip the archive, preserving folder names so that the directory |
structure is correct. I use WinZip to do this, and I put the files on my D: |
structure is correct. I use WinZip to do this, and I put the files on my D: |
drive, so that the files for pari-2.0.16.beta for example will be stored |
drive, so that the files for pari-2.1.0 for example will be stored under |
under D:\pari-2.0.16.beta. Note that the archive as downloaded, pari.tgz, |
D:\pari-2.1.0. Note that the archive as downloaded, pari.tgz, is an archive |
is an archive of an archive. Winzip doesn't know how to unzip pari.tgz, so |
of an archive. Winzip doesn't know how to unzip pari.tgz, so I use Aladdin |
I use Aladdin Expander to do this, which will create for example the file |
Expander to do this, which will create for example the file pari-2.1.0.tar in |
pari-2.0.16.beta.tar in the same directory as pari.tgz. Unfortunately, |
the same directory as pari.tgz. Unfortunately, Aladdin Expander doesn't know |
Aladdin Expander doesn't know how to unzip this file, so I use Winzip to do |
how to unzip this file, so I use Winzip to do it. Isn't Windows wonderful? |
it. Isn't Windows wonderful? |
|
|
|
2. MSVC doesn't like names of the form "pari-2.0.16.beta", so rename the |
2. MSVC doesn't like names of the form "pari-2.1.0", so rename the base |
base directory to something like "pari216b". Now the files are stored under |
directory to something like "pari210". Now the files are stored under |
D:\pari216b. |
D:\pari210. |
|
|
3. Start MSVC (I use version 6, but earlier versions will probably work the |
3. Start MSVC (I use version 6, but earlier versions will probably work the |
same way). |
same way). |
|
|
4. Select "File\New..." and pick the "Project" tab to create a new project. |
4. Select "File\New..." and pick the "Project" tab to create a new project. |
Select "Win32 Console Application" as the project type, and specify the |
Select "Win32 Console Application" as the project type, and specify the |
project name as "pari216b". Make sure that the "Location" of the files is |
project name as "pari210". Make sure that the "Location" of the files is |
D:\pari216b. Click "OK", then select "An empty project" (should be the |
D:\pari210. Click "OK", then select "An empty project" (should be the |
default anyway) and click "Finish". |
default anyway) and click "Finish". |
|
|
5. Select "Project\Add to project\Files..." to add files to the project. |
5. Select "Project\Add to project\Files..." to add files to the project. |
Line 35 and rect.h in src\graph.c; and the file src\kernel\non |
|
Line 34 and rect.h in src\graph.c; and the file src\kernel\non |
|
|
|
6. Select "Project\Settings" and pick the "C/C++" tab. Select |
6. Select "Project\Settings" and pick the "C/C++" tab. Select |
"Preprocessor" from the "Category" menu, and enter |
"Preprocessor" from the "Category" menu, and enter |
"D:\pari216b\src\headers,D:\pari216b\win32" into the "Additional include |
"D:\pari210\src\headers,D:\pari210\Odos" into the "Additional include |
directories" box. (I also select the "Code Generation" category and change |
directories" box. (I also select the "Code Generation" category and change |
the "Struct member alignment" to "1 byte", but this may not be necessary.) |
the "Struct member alignment" to "1 byte", but this may not be necessary.) |
It is usually convenient for debugging to select the "Debug" tab and |
It is usually convenient for debugging to select the "Debug" tab and |