Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Adder Example

JohnNichols
Valued Contributor III
690 Views
Dear Steve:

I entered the code from the Fortran Manual Adder Com example.

I read through the program creation guide several times and as far as I can see followed the coding requirements.

I get the following error code. This is a new on on me?

Error1 error PRJ0019: A tool returned an error code from "Registering output..."Project

I enclose the complete code file as a zip file, could you tell me what this error means and what mistake I made.



0 Kudos
5 Replies
Steven_L_Intel1
Employee
691 Views
PRJ0019 is a generic error that comes when any external tool fails for some reason. But in this case it was where the build tried to register the DLL. If you are on Vista or Windows 7 and did not start VS as an administrator, you can get this error as the regsvr32 command would fail.

Exit VS, right click on the VS icon and select "Start as Administrator". It should work then. You only need to do the registration once.
0 Kudos
JohnNichols
Valued Contributor III
691 Views
Steve:

Thanks.

JMN
0 Kudos
JohnNichols
Valued Contributor III
691 Views
Steve:

Ok, I got that to work, thanks. I now have an Adder.lib

I have not used routines in libraries since 1994, before Powerstation.

How do I add in this library to a program so I can use the module?

I had a good look in the help files but I was lost.

Thanks

JMN
0 Kudos
lklawrie
Beginner
691 Views
I've added it directly to the project or my current one adds the libraries as an input to the linker. (specifies the full path to the .lib file in the IVF/IDE)

Linda
0 Kudos
Steven_L_Intel1
Employee
691 Views
The simplest way is to just add the .lib as if it were a source file to the executable project. Or if the project was one that created the .lib, make it a dependent of the executable project in the same solution. You do this by right clicking on the executable, selecting Dependencies, and checking the box for the library subproject.

0 Kudos
Reply