Comments (4)
Can you please provide full output from Step 2? You can paste it through GitHub Gist. As building on Windows with GCC/Clang, in general, is a bit tricky, the following info would be helpful:
- Which GCC packaging are you using: MinGW or MSYS.
- Which CMake are you invoking? In general, you should use one coming with MinGW/MSYS.
- Don you invoke commands from the corresponding environment shell of MinGW/MSYS?
from plibsys.
Here is the output to step 2
- I am using MinGW
- I am using just the default CMake from the installer on their website
- I am invoking the commands from a default windows cmd terminal
from plibsys.
Okay, based on the info I assume that you are using MinGW (32-bit), which was installed probably using mingw-get tool. Is this correct? At least with this version I was able to reproduce the problem. However, this version of MinGW is 10 years old, and, moreover, MinGW project is not in development anymore. Basically, the project is dead and outdated. The reason the compilation fails is due to the bugs in the header files supplied by MinGW. You can read a detailed problem explanation here. In short, the compiler does not properly include definitions of Windows error codes. You can potentially hack the headers, but there is no guarantee that you would not break something else.
I cannot fix this broken version of the compiler, but I can recommend you to switch to MinGW-w64 project which provides old and modern versions of GCC for Windows, both 32-bit and 64-bit builds. For example, if you still need GCC 6.3.0 (32-bit build), you can download a precompiled package here. This version works without any issues for me using the steps you have provided.
Another way to obtain a modern GCC (basically, MinGW-w64 builds) version on Windows is to use MSYS2 distribution which comes with a nice package manager. You can read about it also at the local Wiki.
from plibsys.
Thank you! Switching to MinGW-w64 fixed the issue, I hadn't realised how old that MinGW version was
from plibsys.
Related Issues (20)
- [p_hash_table_remove] Twice calc/search was performed HOT 1
- Missing AF_INET definition on Windows HOT 4
- how to create only .a library HOT 1
- Problems compiling with static library HOT 1
- How about using C STD uint32_t instead of puint32 and so on? HOT 1
- bug in pp_shm_buffer_get_free_space function HOT 1
- If possible, raw sockets?
- New Data Structures? HOT 1
- Possible *small* memory leak? HOT 4
- Check state of plibsys library initalization HOT 1
- pmacros_test fails HOT 3
- Header files not using relative includes. HOT 1
- CMAKE 2.8.0 is getting deprecated HOT 1
- A weirded error: ld.exe: final link failed: Permission denied HOT 1
- Question: is AArch64 supported ? HOT 1
- shmem test fails on Fedora 37 HOT 2
- Hash table not able to hash string HOT 1
- Major performance improvement question HOT 4
- Unable create share memory more than 4GB on windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plibsys.