Is there a libPNG 64-Bit? [closed] - c++

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.

Related

The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program [closed]

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.

cant run any c/c++ program [closed]

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.

Call native function from file without /clr [closed]

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 7 years ago.
Improve this question
I have a C++ Windows Forms Project in Visual Studio but I need some functions that cannot be compiled using the Common Language Runtime Support /clr
So I added a new cpp file with native code and set to compile it without /clr.
Assume that I have a function called getNativeData() which returns a std::string, how can I call this function from my Windows Forms header file?
It's apparently some kind of bug in Visual Studio, i excluded the files from the project and added them again. This solved it.

C++ program not running on other computers [closed]

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

first program of OpenGL using c++ [closed]

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.