- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sounds like you have two files or procedures named "PROGRAM"
Or, you are linking with a C/C++/other language main entry.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note, a DLL is a library. It does not have a PROGRAM procedure.
Jim

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page