Solving FORTRAN Compiling Errors with Code::Blocks

  • Fortran
  • Thread starter 600burger
  • Start date
  • Tags
    Fortran
In summary, the speaker is asking for assistance with using Code::Blocks to compile FORTRAN code. They are encountering errors and are seeking help to resolve the issue. They mention a plugin that may be helpful and provide a link for it.
  • #1
600burger
64
0
Anyone have experience with Code::Blocks? I'm trying to get it to compile some FORTRAN for me, but getting some confusing errors.

While Compiling:

Code:
Compiling: horz.f90
mingw32-g++.exe: C:\Documents and Settings\...\horz.f90: linker input file unused because linking not done
Linking console executable: C:\Documents and Settings\...\horz\Release\horz.exe
mingw32-g++.exe: Release\horz.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Usually I can work my way out of computer weirdness, but this one has me.

Thanks,
-A
 
Technology news on Phys.org
  • #2
Hi
I am developing plugin for Code::Blocks which helps to use this IDE for Fortran. It adds Fortran symbol's browser, compilation of Fortran 90 projects and more. You can try to download it from darmar.vgtu.lt .
 
  • #3


I have experience working with Code::Blocks and FORTRAN. I understand that encountering compiling errors can be frustrating and time-consuming. Based on the provided information, it seems like the issue may be related to the linker not being properly included or configured in the Code::Blocks project settings.

To solve this error, I recommend checking the project settings in Code::Blocks and ensuring that the linker is properly configured and included. You may also want to check the file paths to make sure they are correct and that there are no typos. Additionally, it may be helpful to consult online resources or forums for specific troubleshooting steps related to Code::Blocks and FORTRAN.

Overall, my advice is to carefully review and double-check the project settings and file paths, and if needed, seek assistance from other experienced FORTRAN and Code::Blocks users. With some patience and problem-solving, you should be able to successfully compile your FORTRAN code using Code::Blocks. Good luck!
 

1. What is Code::Blocks and how does it relate to FORTRAN compiling errors?

Code::Blocks is an open-source integrated development environment (IDE) used for programming in various languages, including FORTRAN. It provides a user-friendly interface for writing, compiling, and debugging code. When using Code::Blocks to write FORTRAN code, you may encounter compiling errors that need to be resolved before the code can be successfully compiled and executed.

2. How do I solve FORTRAN compiling errors using Code::Blocks?

To solve FORTRAN compiling errors using Code::Blocks, you can follow these steps:

  1. Review the error messages and identify the specific error(s) that need to be addressed.
  2. Check your code for any syntax errors, such as missing or incorrect punctuation, misspelled keywords, or undeclared variables.
  3. Make sure all necessary libraries and header files are included in your code and properly linked in the project settings.
  4. Ensure that your code follows the correct FORTRAN syntax, as Code::Blocks may have different default settings for different versions of FORTRAN.
  5. If you are still unable to resolve the error(s), try searching online for solutions or seeking help from fellow programmers or online forums.

3. Can I use Code::Blocks to compile and run FORTRAN code on any operating system?

Yes, Code::Blocks is a cross-platform IDE and can be used to compile and run FORTRAN code on various operating systems, including Windows, Linux, and macOS.

4. How can I prevent FORTRAN compiling errors in the first place?

To prevent FORTRAN compiling errors, you can follow these best practices:

  1. Thoroughly test your code before attempting to compile it.
  2. Follow proper coding conventions and use descriptive variable names to make your code more readable.
  3. Regularly save your code and create backups to prevent loss of work.
  4. Stay updated on the latest FORTRAN standards and syntax.
  5. Utilize debugging tools and techniques to identify and fix errors in your code.

5. Are there any alternatives to using Code::Blocks for solving FORTRAN compiling errors?

Yes, there are other IDEs and compilers that can be used for writing and compiling FORTRAN code, such as Eclipse with the Photran plugin, Visual Studio with the Intel Fortran compiler, and gfortran. However, Code::Blocks is a popular and user-friendly option that is suitable for beginners and experienced programmers alike.

Similar threads

  • Programming and Computer Science
Replies
4
Views
602
  • Programming and Computer Science
Replies
22
Views
2K
  • Programming and Computer Science
Replies
17
Views
4K
  • Programming and Computer Science
Replies
8
Views
3K
  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
7
Views
649
  • Nuclear Engineering
Replies
6
Views
1K
  • Programming and Computer Science
Replies
4
Views
3K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
5
Views
4K
Back
Top