MinGW error "undefined reference to .." - fortran

I have attached an image of the errors that I have been receiving when I try to run the simplest fortran code.
I have tried running it with codeblocks as well as with the MSYS interface and both give me these same sets of errors. I have reinstalled it numerous times with no help. Does anyone know how to resolve this issue?

Related

Error: The terminal process failed to launch (exit code: -1)

I need help with VS Code errors and it's an issue with running a task with GCC and I've looked all over the internet and the only answers don't give instructions, so I'm left with an answer that doesn't tell me where to run the command, why the error happened, and how to avoid having this error occur in the future. Would be very grateful if someone could answer this question with explicit detail on how to fix this. Thanks.
I tried to run simple code, thought I could run the task no issue, got this error instead. Please help.
-Alexander
Sorry for uploading pictures, I had no idea that was prohibited. Anyways, I found a solution which was just to delete the mingw64 and msys64 files from my C:\ disk. I reinstalled them from https://winlibs.com/ and it worked when I built it. So, exit code -1 still confuses me. I think I might have accidentally messed with the files responsible for running C++ code. Again, sorry for uploading pictures.
-Alexander

VS2017 Linux C++ threads issue

I have been testing the VS2017 Linux C++ with remote debugger on Linux Ubuntu.
I have created a few example projects for C++ and everything has been working great until I got to threading examples.
I cannot seem to get the threads to compile as I keep getting "undefined reference to `pthread_create'" error. I know the solution to this is to add -lpthread or -pthread to the VS project properties command line but this does not seem to work in this case.
If anyone has got this working could you please point me in the right direction.
linker->input->library dependencies pthread

Eclipse with CDT not compiling at all

I have been trying out using Eclipse CDT for a course I am taking. Previously I have been using Visual Studio Express but since that requires me to be online and I have to use the IDE+compiler offline, I switched to Eclipse + Cygwin GCC.
Now everything was working prefectly, until I got an error about file paths in my make file. After reading some of the posts online, the issue seemed to be that Cygwin's make does not resolve absolute Windows file paths because of the ':' symbol and confuses it with a new target definition. The proposed fix was to download a fixed make file. I diligently did so and the programs would compile fine.
But after I went into the first debug session, everything froze. I aborted eclipse and tried a clean build but now the compilation wont happen AT ALL, which is very weird for me.
I can't find a post for a similar problem so I am really stuck now. I was currently working the assumption that my CDT may be corrupt or something so I downloaded Eclipse Luna just today and tried building using that, but no joy. Even a fresh project in a new workspace wont compile.
Appreciate the help in advance.
Did you try redownloading Eclipse? Sometimes Eclipse gets a fatal error glitch that makes it unable to compile anything. I've had this problem before, the only way i was able to fix it was to uninstall and re download the latest version. If this doesnt work, try switching to Bloodshed Dev C++ or codeblocks.
So it seems like an issue with the new make (v3.80). upgating it to v4.08 fixed the issue of not building.
Version 4.08 however does not fix the Windows file paths not being recognized properly and treated as a target definition. I am still getting the multiple target patterns. stop error.
EDIT: Found this on Stack overflow to solve the issue... should have searched better previously.
Very simple application fails with "multiple target patterns" from Eclipse

codeblocks permission denied

I can't seem to get my C++ project working in CodeBlocks.
The errors I'm receiving are after trying to compile:
cannot find -lmingw
cannot find -lSDL2main
cannot find C:\C++Libraries\MingW\SDL2-2.0.3\lib\64: Permission denied.
Looking at your errors, I see you are trying to include SDL2.
Are you able to compile programs without SDL2?
If not, then I'm guessing your compiler isn't setup properly, in which case this link might help you:
Setting up codeblocks & mingw
If you have codeblocks and mingw (32 or 64) working and are struggling with including SDL2, then this might help you:
Setting up codeblocks & SDL2
If you are 100% sure that both are setup correctly and you still get the exact same error, then I'm assuming something is wrong with file permissions, but I think it's one of the first two.

Eclipse c++ configuration error

Im getting the following error when i try to create a simple helloWorld C++ project in eclipse. Please note that i have MinGW, msys and my environment variables set up right. Im using Windows 7 and the 32bit Eclipse Juno.
Error:
Error 127 occurred while running autoreconf HelloWorld -1 Configure Problem
The error occurs as soon as i create the project. I had another c++ compiler on my machine (DevC++) and thought this might be causing the problem, so i removed it..However im still getting the same error. Please help
Thanks