Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Anytime I try to run a simple C or C++ program in CLion or emacs, no output shows up.
EDIT: Using virtual environment, C was not installed properly.
CLion doesn't ship with a C/C++ compiler. You need to install your own compiler, and then set it up with CLion.
For windows, you can install:
MinGW
Cygwin (make sure you select gcc-core and g++ during setup)
CLion will detect these environments automatically during installation if you set them up in their default locations.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
Could you guys tell me why a simple c++ file can't work and gives me errors in the terminal.Is it a simple error? Thank you.The photo is on the link:
You are invoking g++ in Windows. You must guarantee that this compiler and the relevant development tools are installed and configured correctly first.
These are the prerequisites before you start to use them:
https://code.visualstudio.com/docs/cpp/config-mingw#_prerequisites
You can refer to:
Instructions on the MSYS2 website to install Mingw-w64.
VSCode tutorial Using GCC with MinGW, this is quite clear, for example prerequisites point 4 tells you how to add the path to your Mingw-w64 bin folder to the Windows PATH environment variable carefully.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have downloaded the installation file from the link below but after finishing installation I am not seeing anything to open the application.
https://software.intel.com/en-us/fortran-compilers/choose-download
There isn't "something to open the application". You can use the compiler from a terminal or from Xcode. Instructions are at https://software.intel.com/en-us/get-started-with-fortran-compiler-macos , but in the spirit of StackOverflow I excerpt some of them here:
Before you can use this tool, you must first set the environment variables by sourcing the environment script using the initialization utility to initialize all the tools in one step:
From a terminal session, run:
source <install_dir>/bin/compilervars.sh intel64
where <install_dir> is the directory structure containing the compiler /bin directory.
By default, the path for <install_dir> isopt/intel/compilers_and_libraries_2020.<update number>.<packages number>/mac
...
Use the command below to invoke the compiler from the command line.
ifort helloworld.f90
If you want to use Xcode, see the link above for details. Keep in mind that Xcode integration is only partial - it doesn't understand module dependencies and you can't use the debugger from within Xcode.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm using an Intel Edison running Debian. I need to use mraa::uart in a C++ program, but g++ can't find the functions I use. These are the steps I followed to install MRAA:
mkdir mraa/build && cd $_
cmake .. -DBUILDSWIGNODE=OFF
make
make install
The cmake step had some errors and there was no makefile for the make step, but other C++ programs using mraa (gpio specifically) work. I tried installing cmake-3.2.2, but when following directions I got installation errors that I couldn't figure out. I don't think cmake is the issue though, because another Edison we're using worked fine with the same version of cmake.
Reinstalled cmake-3.2.2 twice. It eventually worked. Not sure how the other Edison worked without 3.2.2 or why the third attempt at installing cmake-3.2.2 worked. Once I got this working, I had to move the library files to my lib folder before things would compile
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a Linux program that I want to run on Windows. I want to compile it for Windows using Mingw?
I am new to this Mingw thingy. So, I have no idea if it will work.
I installed Mingw and I have a make file. What's next? I have a bunch of exe files in Mingw. I don't even know how to start the compiler.
So, my question is: What are the steps necessary to compile the program I have?
UPDATE:
I figured out in the end what are the steps necessary to compile a Linux program for Win using Mingw.
I posted the solution below (solution is 7 steps), maybe it will be useful to others also.
To compile a Linux program on Win:
Install MingW
Edit the c:\MinGW\msys\1.0\etc\fstab file (it should contain this line: c:/mingw /mingw )
Start Wingw shell by running c:\MinGW\msys\1.0\msys.bat
In shell go to the folder where your Make file is (use cd command for this).
Type 'make'. This will compile your program.
Put the generated EXE and the required DLLs (libgcc_s_dw2-1.dll and libstdc++-6.dll) in the same folder
Run the exe file and enjoy it....
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have a problem with libPNG, which is leading me to believe that I need a 64bit version of libPNG to run my application on a 64bit computer. The error is IMG_Load: Failed loading libpng15-15.dll: %1 is not a valid Win32 application. According to some other posts on this site, it is the fact that this is a 32bit DLL, is that the problem?
Yes, libpng works on 64-bit architectures, including x86_64.
It's an open-source library so you can compile it with your project if a precompiled binary isn't available for your platform/architecture.