- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I get a declaration conflicts with previous declaration on the first line of code? ...
Build Log
Build started: Project: TestBayer, Configuration: Debug|Win32
Output
Deleting intermediate files and output files for project 'TestBayer', configuration 'Debug|Win32'.
Compiling with Intel Visual Fortran 11.0.074 [IA-32]...
ifort /nologo /debug:full /Od /gen-interfaces /debug-parameters:used /warn:truncated_source /warn:noalignments /warn:nouncalled /warn:interfaces /Qauto /Qzero /Qfp-stack-check /module:"..\modules" /object:"..\intermed/" /traceback /check:bounds /check:uninit /check:arg_temp_created /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:\Program Files\Microsoft Visual Studio 8\VC\bin" "C:\Dev\TestBayer\testdll.for"
C:\Dev\TestBayer\testdll.for(1): error #5508: Declaration of routine 'TESTDLL' conflicts with a previous declaration
PROGRAM TESTDLL
--------------^
compilation aborted for C:\Dev\TestBayer\testdll.for (code 1)
TestBayer - 2 error(s), 0 warning(s)
Build Log
Build started: Project: TestBayer, Configuration: Debug|Win32
Output
Deleting intermediate files and output files for project 'TestBayer', configuration 'Debug|Win32'.
Compiling with Intel Visual Fortran 11.0.074 [IA-32]...
ifort /nologo /debug:full /Od /gen-interfaces /debug-parameters:used /warn:truncated_source /warn:noalignments /warn:nouncalled /warn:interfaces /Qauto /Qzero /Qfp-stack-check /module:"..\modules" /object:"..\intermed/" /traceback /check:bounds /check:uninit /check:arg_temp_created /libs:static /threads /dbglibs /c /Qvc8 /Qlocation,link,"C:\Program Files\Microsoft Visual Studio 8\VC\bin" "C:\Dev\TestBayer\testdll.for"
C:\Dev\TestBayer\testdll.for(1): error #5508: Declaration of routine 'TESTDLL' conflicts with a previous declaration
PROGRAM TESTDLL
--------------^
compilation aborted for C:\Dev\TestBayer\testdll.for (code 1)
TestBayer - 2 error(s), 0 warning(s)
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have a function or subroutine called TESTDLL somewhere? (...which will clash with the Program TESTDLL name)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I'm not mistaken, a label should be unique... So having "PROGRAM TESTDLL" and "subroutine testdll" will cause a conflict (testdll is repeated).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a bug in 11.0.074 specifically. It will be fixed in the next update. As a workaround, turn off Diagnostics > Check Routine Interfaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
This is a bug in 11.0.074 specifically. It will be fixed in the next update. As a workaround, turn off Diagnostics > Check Routine Interfaces
Gald (!) to see that I'm not losing my Fortran marbles.

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