Software Archive
Read-only legacy content
17060 Discussions

mixed language compiles

Intel_C_Intel
Employee
706 Views
I had working mixed Fortran-C projects. I had to re-install both compilers due to system problems. Now the only way to compile the Fortran is to put it all in one file or I get LNK2001 errors during the compile (not the link). I carefully returned all my project settings to the previous values and I know these all worked before.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
706 Views
What seems to have happened is that Fortran lost the setting that says that the Fortran files should be compiled separately. We've seen this happen sometimes with projects created with one of the C++ wizards.

Select Project..Settings..Fortran In the Project Options box, type the switch /compile_only

That SHOULD fix it. If it doesn't, please send a ZIP file of the project to us at vf-support@compaq.com and we'll take a look.

Steve
0 Kudos
Reply