mingw-w64 | mingw-w64 Git mirror
kandi X-RAY | mingw-w64 Summary
kandi X-RAY | mingw-w64 Summary
mingw-w64 Git mirror
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mingw-w64
mingw-w64 Key Features
mingw-w64 Examples and Code Snippets
Community Discussions
Trending Discussions on mingw-w64
QUESTION
I have already brew install mingw-w64. When i check the versions its there.
gcc --version:
gcc (Homebrew GCC 11.2.0_3) 11.2.0
.
g++ --version:
g++ (Homebrew GCC 11.2.0_3) 11.2.0
I also run which gcc:
/opt/homebrew/bin/gcc
Then I run my docker-compose with image golang:latest
. No errors yet
ANSWER
Answered 2022-Apr-02 at 20:06Try and check if, as in this Dockerfile, adding binutils-gold
would allow you to use ld
.
QUESTION
I've started the process in bringing my program ideas to life. My problem is i cannot seem to get the api to work and run.
I am using visual studio code and the mingw x64 compiler.
i am simply running the sample code the from Microsoft on how to build a direct2d program,
and the base window class from managing application state,
only difference is that i got lazy and copy and pasted the basewidow class instead of including it like they did with basewin.h
The Problem:
when i run the sample code i get this error,
...ANSWER
Answered 2022-Mar-22 at 16:55The D2D1CreateFactory
can't be found because you aren't linking D2d1.lib
as specified in https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-d2d1createfactory.
Add -ld2d1
argument to command line. Maybe you need to use also -L
directive to specify directory.
For MSVC compiler pragma
directive can be used (which probably doesn't work for mingw
).
QUESTION
I am using Msys2 to run and compile c/nim programs, I cloned a repo that has a .nim
file that I want to run but didn't have ceration packages such as nimcrypto
so I used the command
ANSWER
Answered 2022-Mar-02 at 15:42Manually downloaded the cert to /usr/bin
from this link
and this seems to solve the issue
QUESTION
I am writing in C++ on a Windows machine in three environments:
- Docker Linux container with Ubuntu - g++ compiler (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
- WSL Ubuntu enviornment on Windows - g++ compiler (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
- Windows - gcc compiler (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0
I am working with enormous datasets and basically need to be able to break them down into as-large-as-possible chunks to manipulate in memory. To find the size of blocks, I imagined something like the following:
...ANSWER
Answered 2022-Feb-21 at 17:45Containers don't have complex memory management logic. What you're seeing is a result of a surprising Linux policy known as memory overcommit.
In Linux large allocations do not fail; malloc()
always succeeds. The memory isn't actually allocated until you actually attempt to use it. If the OS can't satisfy the need it invokes the OOM killer, killing processes until it frees up enough memory.
Why does this exist?
A Linux computer typically has a lot of heterogeneous processes running in different stages of their lifetimes. Statistically, at any point in time, they do not collectively need a mapping for every virtual page they have been assigned (or will be assigned later in the program run).
A strictly non-overcommitting scheme would create a static mapping from virtual address pages to physical RAM page frames at the moment the virtual pages are allocated. This would result in a system that can run far fewer programs concurrently, because a lot of RAM page frames would be reserved for nothing.
(source)
You might find this ridiculous. You wouldn't be alone. It's a highly controversial system. If your initial reaction is "this is stupid," I encourage you to read up on it and suspend judgment for a bit. Ultimately, whether you like overcommit or not, it's a fact of life that all Linux developers have to accept and deal with.
QUESTION
I use Git Bash which is based on MinGW. Around the day I often change the Windows PATH environment variable, in it are the paths to my tools, such as PHP, for example.
I use tools to change PHP versions, this tool automatically changes the PHP environment variable to a different version.
I would like to have a command that from the bash terminal itself I can run it and refresh the environment variables.
What have I tried?I have tried almost everything in this question without any success. The only thing that has worked for me is to run a new terminal with administrator privileges, but I would not want to have this as the best option.
I tried:
- the accepted answer
- #5
- #7
- Restart explorer
- Chocolatey alternative
- An alternative to the Chocolatey command that is supposed to be compatible with Bash. Here is a github issue, has a video that might help you understand what I want to do
I guess none of the above worked for me because they were not made for git bash, that's why I created this question. I have also tried all of the above with a terminal like Cygwin which is similar to Git Bash, without success.
I've come close to achieving this with this command, but I can't get it to work.
...ANSWER
Answered 2022-Feb-19 at 06:04I used a custom script created by Badr Elmers Works just as I expected and works in Git Bash, Cygwin.
More info here
QUESTION
I have installed Anaconda from its site and was working fine for sometime, however I needed to install Plotly and used the below steps mentioned in another site. I just got it up and running on spyder 3.0 using the following steps. (windows 10)
Download plotly using pip usig command line (python -m pip install plotly) this requires downloading python 3.5 separately from Spyder as well. (so far I haven’t had any conflicts) In Spyder, goto->Tools ->PYTHONPATH Manager -> addPath -> insert path to Plotly library (mine was in python\python36-32\Lib\site-packages), then synchronize Restart Spyder test it out with import plotly.plotly \n import plotly.graph_objs as go in a new .py scrypt Hope it works out for you. Cheers
After the above steps I was able to import plotly in Spyder and didn't face any issues, however after I restarted my machine I'm unable to run Anaconda navigator or Spyder. I'm able to launch Anaconda prompt but any command executed returns different kinds of errors like
"conda install anaconda-navigator"
environment variables: conda info could not be constructed. KeyError('pkgs_dirs')
"spyder"
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Python\Lib\site-packages\zmq\backend\cython_init_.py)
anaconda-navigator
ImportError: DLL load failed while importing shell: The specified module could not be found.
I tried every solution on internet like uninstalling and reinstalling, deleting all the trace files on anaconda and even the Environment variables seem to be fine
echo %PATH% command returns
...ANSWER
Answered 2022-Jan-14 at 15:34Per this github issue, you may have a conflict between dependencies of packages anaconda installed and the one you installed manually. Check your pythonpath and see if removing the pip folder from the pythonpath fixes the issue.
QUESTION
After some initial problems I was finally able to set up a self-hosted GitLab Runner on my personal laptop.
I'm now looking into how this runner works and how I can tweak it's environment to my needs. I modified the YML file to run a simple command echoing the PATH
environment variable:
ANSWER
Answered 2021-Dec-30 at 16:53There's a few reasons why environment variables may be different. Chiefly:
- The user account being used by the runner
- The powershell profile you're using locally (which will not be used by the runner)
- Any changes to environment variables made in the runner's config.toml
- environment variables changed/added through CI/CD variables.
The effective PATH
is a combination of both the system environment variables as well as user environment variables. For your runner to reflect the same environment variables that you see locally when running powershell, you must use the same user account, otherwise user environment variables you're seeing may be missing/different based on the user account.
One way to fix differences that may be caused by the user would be to change the user used by the gitlab service
To change the user used by the GitLab runner, go to services -> gitlab-runner -> (right-click) properties -> Log On tab and choose the account the runner should use.
Alternatively, specify this when installing the runner:
QUESTION
I've been making a simple app in C++/wxWidgets that just has a catalog of Garfield comix from the Internet, without the annoying ads and offers. (Don't ask me how I got access to the PNG files of each comic in the first place, because my name already explains that)
Anyway, I'm trying to make a static text with a specific font (in my case, that would be Tahoma size 8. I'm going to make it bold but for sake of simplicity I haven't done it yet). I use the following line of code to import it from the Windows internal font catalog:
...ANSWER
Answered 2021-Dec-12 at 20:44Turns out, I just made a silly mistake. 🤣🤪
The real code I should have used is:
QUESTION
I am trying to set up openGl with glfw and glew. This is the source code:
...ANSWER
Answered 2021-Nov-11 at 10:01I finally got it working. It turns out the precompiled binaries for glew and glfw do not work on my machine. I had to download both sources and compile the libraries myself. This is the makefile that finally works:
QUESTION
I'm trying to use DirectShow devices with FFmpeg in a C++ program. I'm using DLLs built with vcpkg using the command .\vcpkg install ffmpeg[nvcodec]:x64-windows
. The vcpkg log shows Enabled indevs: dshow
av_find_input_format is returning nullptr for me (no "dshow" devices found).
If I query the downloaded FFmpeg executable, I get a list of 14 "dshow" devices.
How can I get FFmpeg to return the list of "dshow" devices? Do I need to manually build FFmpeg using mingw-w64
?
ANSWER
Answered 2021-Nov-10 at 21:48You have to call avdevice_register_all()
before av_find_input_format("dshow")
.
The following code returns a valid pointer:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mingw-w64
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page