Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
I'm learning opengl using c++.I am using ubuntu and used i586-mingw32msvc-g++ -o output1 openWindow.cpp to build the file it is building without error but when executable file opened it is giving error : An error occurred while loading the archive. Can anyone help me to start with openGL using cpp.
You are using a cross-compiler for Windows, and you are trying to run the binary on Linux (I assume ubantu is a linux distribution).
Just use normal g++ from apt-get install g++.
Here's a GLFW usage example, if you'd like to see some code. GLFW is cross-OS, so it will still work when compiled on windows (by appropriate compiler, obviously). It also has build instructions.
Related
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 4 years ago.
Improve this question
I'm trying to work on an OpenGL project at home on my Linux PC.
I got this error when launching my OpenGL project with "./executable"
I have already installed libglew-dev package, and also I can't find the file "libGLEW.so.1.10" in my directories.
I don't know how I could install it in the right place.
The dev package provides headers and source for you to, well, develop with.
Now, on the target machine, you need to install the normal package that provides the shared libraries.
The Ubuntu package list has some candidates: from your question it looks like you're using v1.10, so libglew1.10.
The documentation has some ways to do it manually without a package manager.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
Screenshot
I did use <iostream> as recommended in some answers, but it still says iostream is missing.
Console says: "No such files or directory" and "Compiler Unknown".
The missing header iostream is delivery by any compiler package. So, probably, you do not installed it or you configured it badly.
1.you have created the project as c program please select c++ in code blocks
(ref screen shot)
2.Download and install only the file with name
codeblocks mingw-setup.exe.(since mingw complier will be installed automatically).
3.try reinstalling code:blocks
and you need not use std before cout
since you have used the using namespace std; statement
see the screen shot
hope it works!
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am using eclipse gcc on windows7, with intel core i5 cpu. i tried building the project. however, it end up with an error, saying #error "SSE instruction set not enabled". The location pointed to c:\mingw\x32-4.8.1-posix-dwarf-rev5\mingw32\lib\gcc\i686-w64-mingw32\4.8.1\include\xmmintrin.h
I wonder if anybody can provide some help. Thanks.
the problem was due to the fact that i was using MinGW x32 instead of MinGW x64
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 9 years ago.
Improve this question
Have you had success installing ANN recently? (http://www.cs.umd.edu/~mount/ANN/)
In my computer and using the latest version available on the website, I seem to be able to install it from running make. But I can't correctly compile a program that uses it. According to the official manual you just have to compile with g++ a.cpp -Iann/include -Lann/lib -lANN but my compiler returns:
fatal error: ANN/ANN.h: No such file or directory
Has anybody been able to install it in Fedora or other linux system? Or do you have any idea of how to get it to work?
Thanks!
I just managed to solve it by changing "ann" by the path to the library root directory in "g++ a.cpp -Iann/include -Lann/lib -lANN".
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.