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
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
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
A simple question, I have made a program that runs on my computer perfectly but not on someone else's computer. This simple question is a big headache of mine. I have read at least thousands of topics on the internet.
I tried to copy msvcp90.dll and other dll files to the target machine but that didn't work. I read an article which says you have to copy a manifest file too. Now I don't know which manifest file to copy.
I also have created my own dll file but that didn't work either.
Can anybody please help me, I'm in a big headache (I don't want to statically link the libraries, just tell me the concept of dynamic linking). Thank you.
One other thing, I have used windows.h header file in my program and a lot more header files. I am using visual studio 2008.
First, make sure you are compiling the release version of your application - typical users never have the debug c-runtime installed.
Second, you probably want to install the full c-runtime library on the client machine that corresponds to the version of Visual Studio you are using. Here's a link for the VS 2008 runtime: C Runtime Library
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
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.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Improve this question
I want to compile this C++ project on windows using MinGW and MSYS
Project link: CPU Miner
Source tarball: CPU Miner.tar.gz
In the README file, it's says that i've to:
* Make sure you have mstcpip.h in MinGW\include
* Make sure you have libcurl.m4 in MinGW\share\aclocal
* Make sure you have curl-config in MinGW\bin
No one of this files is in the right place in my computer, and i don't know where i can find theme.
Can you give me a detailed instruction to how compile it ? (i'm a newbie)
The answer is right there in the README file you're quoting from...
Basic Windows build instructions, using MinGW:
Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
* Make sure you have mstcpip.h in MinGW\include
If using MinGW-w64, install pthreads-w64
Install libcurl devel (http://curl.haxx.se/download.html)
* Make sure you have libcurl.m4 in MinGW\share\aclocal
* Make sure you have curl-config in MinGW\bin
In the MSYS shell, run:
./autogen.sh # only needed if building from git repo
LIBCURL="-lcurldll" ./configure CFLAGS="-O3"
make
Doesn't really get more detailed than that.