| beliavsky@aol.com 2004-11-17, 3:59 pm |
|
lorraine100@hotmail.com (lorrie) wrote:
>i get the following error in building:
>
>Linking...
>dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol _MAIN__
>Debug/ifdpar.exe : fatal error LNK1120: 1 unresolved externals
>Error executing link.exe.
>
>any ideas??
You probably do not have a main program. If source file xmain.f90 calls a
function in func.f90, you can create an executable with
df func.f90 xmain.f90
or you can create object files func.obj and xmain.obj with
df -c func.f90 xmain.f90
and then link to create an executable with
df func.obj xmain.obj
Other Windows compilers such as Lahey and Absoft also work this way.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
|