Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Important Update: Community Platform Migration​. Learn more​>

error: duplicate symbol: MAIN

Soniya
Beginner
1,962 Views

i compiled Fortran code for dll and i am getting error: duplicate symbol: MAIN. 

i am using only one main function. what could be the issue? can anyone help into it?

 

0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
1,939 Views

Sounds like you have two files or procedures named "PROGRAM"

Or, you are linking with a C/C++/other language main entry.

 

Jim Dempsey

GVautier
New Contributor III
1,930 Views

A source code for a dll must only contains functions or subroutines (or data). So if there is a program statement or code not embedded in subroutine/end subroutine or function/end function sections, it will produce an error.

jimdempseyatthecove
Honored Contributor III
1,929 Views

Note, a DLL is a library. It does not have a PROGRAM procedure.

Jim

 

Reply