- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello dear experts.
I am trying to find a simpler way to compile Fortran (ifort) executable/dll under Linux (ubuntu)
I already have a Visual Studio solution/Project that compiles a working exe/dll on Windows.
On Linux I probably can compile with the command something like:
ifort <list of compilers settings> <list ALL the f90 files here>
However, that's a big list of files, and the solution is not the smallest.
Plus all the compiler settings are already set in the project file.
Is there some tool or way to use the .sln/.vfproj file for building Fortran under Linux?
That would also help for automated builds.
Thanks in advance!
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
its for typing the code, but do they have tools to compile Fortran from the existing project file? Besides manually typing the ifort parameters?
I imagine it should be something that converts vfproj file into command line to run a compiler.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
The hardest part for me was to figure out the correct order of the fortran files to include. And that was only trial and error.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
It definitely does, but perhaps they don't have a Windows system on which to do a test build.
@Limon note that the Linux equivalent of a Windows DLL is a "shared object" (.so). There are differences in how these are built (in particular, there's no DLLEXPORT directives to use.)
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
The .vfproj file is fairly easy to decode - just open it in a text editor. Compiler options will look like this:
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" BoundsCheck="true" StackFrameCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
This translates (roughly) to -O0 -debug -warn interfaces -traceback --check bounds,stack
